Skip to content

myolnyr/link-convert

Repository files navigation

Music Link Converter

Python Version FastAPI Uvicorn Redis HTML5 CSS3 JavaScript

A simple web application to convert Spotify music track URLs to ther YouTube Music equivalents and vice-versa. It features a Python FastAPI backend and a minimalist HTML, CSS, and JavaScript frontend.

Features

  • Bidirectional Conversion:
    • Convert Spotify track URLs to YouTube Music URLs.
    • convert Youtube Music track URLs to Spotify URLs.
  • Automatic Detection: The frontend automatically determines the conversion direction based on the input URL.
  • Copy to Clipboard: Easily copy the converted URL.

How to Use

  1. Open the web application in your browser.
  2. Paste a valid Spotify track URL (e.g., https://open.spotify.com/track/...) or a YouTube Music URL (e.g., https://music.youtube.com/watch?v=...) into the input field.
  3. Click the "Convert" button.
  4. Click the copy icon next to the URL to copy it to your clipboard.

Tech Stack

Backend:

  • Python 3.12+
  • FastAPI: For building the API.
  • Uvicorn: ASGI server to run FastAPI.
  • Redis: For rate limiting.

Frontend:

  • HTML5
  • CSS3
  • Vanilla JavaScript (ES6+)

DevOps/Tooling:

  • Docker & Docker Compose (Recommended): For local testing and simple deployments.
  • Docker Stack + GitHub Actions: For production deployments.