ClashFLAC is a full-stack music platform designed for discovering, streaming, and downloading bit-perfect lossless FLAC audio. It combines a high-performance REST API backend with a responsive retro-themed web application. https://t.me/clashprojects
  • Python 75.4%
  • JavaScript 13.9%
  • CSS 7.7%
  • HTML 3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-31 21:47:14 +05:30
amazonmusic feat: ClashFLAC release v1.0.0 - Lossless Hi-Fi Streaming and Downloads 2026-08-14 19:11:10 +05:30
amzdl fix(metadata): embed full FLAC Vorbis comments and 24-bit Pillow dimension headers for Windows Explorer and MusicBee thumbnails 2026-08-16 19:59:43 +05:30
frontend Configure production backend URL for clashflac.kanjijewels.com and clashflac.pages.dev 2026-08-31 21:47:14 +05:30
qobuz Configure production backend URL for clashflac.kanjijewels.com and clashflac.pages.dev 2026-08-31 21:47:14 +05:30
tidal feat: implement SpotiFLAC ISRC gold-standard matching across Spotify, Qobuz, Tidal & Amazon 2026-08-20 10:27:16 +05:30
.gitignore feat: add Qobuz Hi-Res Lossless FLAC engine with triple priority cascade 2026-08-20 10:09:34 +05:30
Aptfile feat(deploy): ensure ffmpeg binary via nixpacks, aptfile, and imageio-ffmpeg for VPS/cloud builds 2026-08-16 22:54:54 +05:30
documentation.md docs: add legal disclaimer, remove live links, add documentation.md 2026-08-17 10:30:26 +05:30
download_progress.py refactor(frontend): remove preview downloads, add download progress polling, clean up search helpers 2026-08-16 20:37:38 +05:30
LICENSE docs: add logo & community credits and MIT license 2026-08-14 23:02:27 +05:30
nixpacks.toml fix(build): add python311 provider to nixpacks.toml and use dynamic importlib for ffmpeg 2026-08-16 23:01:24 +05:30
Procfile feat: ClashFLAC release v1.0.0 - Lossless Hi-Fi Streaming and Downloads 2026-08-14 19:11:10 +05:30
railway.json feat: ClashFLAC release v1.0.0 - Lossless Hi-Fi Streaming and Downloads 2026-08-14 19:11:10 +05:30
README.md feat: add Qobuz Hi-Res Lossless FLAC engine with triple priority cascade 2026-08-20 10:09:34 +05:30
requirements.txt feat(deploy): ensure ffmpeg binary via nixpacks, aptfile, and imageio-ffmpeg for VPS/cloud builds 2026-08-16 22:54:54 +05:30
server.py feat: implement SpotiFLAC ISRC gold-standard matching across Spotify, Qobuz, Tidal & Amazon 2026-08-20 10:27:16 +05:30
setup.md feat: add Qobuz Hi-Res Lossless FLAC engine with triple priority cascade 2026-08-20 10:09:34 +05:30
setup.py feat: integrate Tidal lossless engine, update frontend proxy & documentation 2026-08-16 18:35:52 +05:30

ClashFLAC Logo

ClashFLAC

24-bit Hi-Res Lossless FLAC Streaming & Download Platform

Instant browser audio previews, comprehensive multi-engine search across Amazon Music, Qobuz & Tidal, and bit-perfect lossless FLAC downloads with synchronized lyrics and high-resolution album artwork.

FastAPI Python Vite JavaScript FLAC Qobuz Tidal License

Documentation

Warning

  • Experimental / Educational Purpose Only: This project is developed strictly for educational, research, and personal experimental purposes.
  • No Hosted Content: This software does not host, store, or distribute any copyrighted media or audio files. All operations rely on user-supplied accounts and third-party APIs.
  • Personal Use Only: Kindly use this project for personal, non-commercial purposes only. Users are responsible for complying with the terms of service of third-party platforms.
  • No Affiliation: This project is not affiliated with, endorsed by, or associated with Amazon Music, Qobuz, TIDAL, Spotify, or any of their parent corporations.

Overview

ClashFLAC is a full-stack music platform designed for discovering, streaming, and downloading bit-perfect lossless FLAC audio. It combines a high-performance Python FastAPI REST API backend with a responsive retro-themed web application, featuring a triple lossless engine architecture:

  1. Qobuz Engine (Priority 1 / Default): Hi-Res Lossless bit-perfect FLAC (always highest Studio Master resolution up to 24-bit / 192 kHz)
  2. Amazon Music Engine (Priority 2): Ultra HD Studio Master (up to 24-bit / 192 kHz)
  3. Tidal Engine (Priority 3): Hi-Res Lossless & Master audio (up to 24-bit / 192 kHz)

Capabilities

Music Discovery & Playback

  • Multi-Engine Search: Concurrently searches across Qobuz, Amazon Music, Tidal, and Spotify catalogs.
  • Fast Browser Audio Playback & Previews: Instant browser playback with continuous queue management and shuffle/repeat modes (supports JioSaavn full streams, Qobuz 320kbps Hi-Fi streams, and Spotify 30s previews).
  • Track Metadata: View detailed track facts including album names, release years, track numbers, and high-resolution cover artwork.

Lossless Audio Downloads

  • Strict Bit-Perfect FLAC: Download uncompressed 16-bit CD Lossless and 24-bit Studio Master FLAC files (no lossy M4A/AAC conversions).
  • Triple Lossless Engines:
    • Qobuz Engine: Direct MD5-signed CDN audio stream downloading with Vorbis FLAC tagging (always fetched in maximum available studio master resolution).
    • Amazon Music Engine: Native Widevine DRM decryption with uncompressed FLAC remuxing.
    • Tidal Engine: Support for direct FLAC streams and segmented DASH Hi-Res master manifests with automatic frame remuxing.
  • Embedded Synchronized Lyrics: Synchronized lyrics (LRC format from LRCLIB and native sources) embedded directly inside Vorbis tags.
  • Embedded High-Resolution Artwork: High-resolution album covers (1280x1280+) embedded directly into each audio file.

Interface & Controls

  • Engine Priority Order: Default download priority cascade is Qobuz -> Amazon Music -> Tidal, with interactive manual engine switches in the Track Inspector and Settings dialog.
  • Audio Control Bar: Persistent playback bar with real-time progress, duration scrubbing, and volume control.
  • Play Queue & History: Manage an active playback queue and review recently played tracks.
  • Theme Customization: Toggle between high-contrast Light and Dark visual themes.

Repository Structure

ClashFLAC/
├── amzdl/                    # Amazon Music lossless download & metadata engine
├── amazonmusic/              # Amazon Music protocol models & schemas
├── qobuz/                    # Qobuz Hi-Res Lossless (16/24-bit 192kHz) engine
│   ├── api.py                # Qobuz API client & request signing
│   ├── auth.py               # Credentials loader & token storage
│   ├── config.py             # App ID, secrets & quality format maps
│   ├── downloader.py         # Lossless stream downloader & Vorbis tagger
│   └── routes.py             # Qobuz FastAPI router endpoints
├── tidal/                    # Tidal Hi-Res Lossless (16/24-bit) download & auth engine
│   ├── api.py                # Tidal REST & DASH manifest client
│   ├── auth.py               # OAuth2 & session management
│   ├── downloader.py         # Lossless segment downloader & tagger
│   └── routes.py             # Tidal FastAPI router endpoints
├── frontend/                 # Single Page Web Application
│   ├── Clash music.png       # Brand asset & favicon
│   ├── index.html            # Main markup & icon templates
│   ├── style.css             # User interface design & animations
│   ├── app.js                # Player logic, state management, & API client
│   ├── vite.config.js        # Vite build & local dev proxy configuration
│   └── dist/                 # Pre-compiled static web bundle
├── Procfile                  # Cloud web process definition
├── railway.json              # Cloud deployment configuration
├── requirements.txt          # Python backend dependencies
└── server.py                 # FastAPI backend server

Account Setup

Before running queries against the lossless catalogs, configure your credentials using the setup guides:


Local Development

1. Backend Setup

# Install Python dependencies
pip install -r requirements.txt

# Start backend server
uvicorn server:app --host 127.0.0.1 --port 8000 --reload

2. Frontend Setup

cd frontend
npm install
npm run dev

Open http://127.0.0.1:5173 in your browser.