Warning
π§ Work in progress: not yet production-ready
This project is under active development by @hexsyro. Interfaces, configuration keys and the database schema may change without notice, and some acceptance criteria are not yet met (see Project status).
Feedback and issues are welcome: please open a GitHub issue, or reach out on X: @hexsyro.
Last updated: 22 November 2026
Phonq is a free, open-source music streaming platform built for the phonk community. Stream hundreds of thousands of Creative Commons tracks β legally, in full, forever free.
Phonq streams the entire Jamendo catalog (500K+ CC-licensed tracks) with:
- A real music player β full-length streaming, a live waveform visualizer (Web Audio API), a persistent queue with drag-to-reorder, shuffle, repeat and volume control
- Live discovery β trending phonk charts and fresh drops straight from the API, plus genre radios
- Full-catalog search β tracks, artists, albums, tags and BPM
- Your library β favorites, playlists and listening history that sync across devices via Google OAuth 2.0
- Artist and album pages β full discographies, bios, similar-artists recommendations and album metadata (cover art, release date) built from a live to DB to static fallback
- Personalized recommendations β tracks surfaced from your listening history, favorite subgenres and similar artists
- Zero ads, zero paywalls β and legally free downloads where the artist allows
And it's 100% open source under the MIT license. Fork it, audit it, deploy your own Vercel instance, or build on it.
The gallery below is filled with real captures from the App. Drop your own
docs/screenshots/*.png in and link them here.
| The App | Landing Page |
|---|---|
![]() |
![]() |
Short GIFs of the live waveform / queue help too β see Contributing β Screenshots.
| Layer | Technology |
|---|---|
| Framework | Next.js 16 (App Router, Turbopack) |
| Language | TypeScript 5.9 |
| Styling | Tailwind CSS 4 (OKLCH phonk-purple theme) |
| Auth | Auth.js v5 (NextAuth) + Google OAuth 2.0 (only sign-in method) |
| Database | Neon PostgreSQL via Prisma 7 (driver adapter) |
| Music | Jamendo API (primary) + ccMixter (keyless CC fallback) β cached in Postgres with a static fallback snapshot |
| Deploy | Vercel (serverless) β no self-hosted runtime |
| Testing | Vitest (unit + API route tests) |
phonq/
βββ prisma/
β βββ schema.prisma # Users, playlists, favorites, listens
β βββ seed.ts
β βββ migrations/
βββ src/
β βββ app/
β β βββ (marketing)/ # Public site: /, /login, product, resources, company, legal
β β βββ app/ # Authenticated app: /app/home, search, library, playlistsβ¦
β β βββ api/ # Route handlers (/api/tracks, /api/me/*)
β βββ components/
β β βββ ui/ # Button, Card, Dialog, DropdownMenu, Sliderβ¦
β β βββ player/ # PlayerContext, PlayerBar, QueuePanel, Waveform
β β βββ track/ # TrackCard, TrackRow, LikeButton, AddToPlaylist
β β βββ layout/ # Nav, Footer, AppSidebar, AppHeader
β βββ content/ # Marketing content (features, FAQ, legal, blogβ¦)
β βββ lib/ # jamendo client, auth, prisma, rate-limit, api helpers
β βββ generated/prisma/ # Prisma client (generated β don't edit)
See ARCHITECTURE.md for the full technical design.
- Node.js 20+ (built and tested on 24)
- A free Neon PostgreSQL database
- A free Jamendo client_id (register an app)
- A Google OAuth client ID + secret
- A free Google Form for login-gated contact submissions
Phonq runs on Vercel with a Neon database. There is no Docker image or self-hosted runtime.
# 1. Install dependencies (local preview only) npm install # 2. Configure environment (local preview uses .env.local) cp .env.example .env.local # fill in DATABASE_URL (Neon pooled URL), JAMENDO_CLIENT_ID, AUTH_SECRET, # AUTH_GOOGLE_ID, AUTH_GOOGLE_SECRET, NEXT_PUBLIC_APP_URL, # NEXT_PUBLIC_GOOGLE_FORM_URL # 3. Apply migrations to Neon once npm run db:deploy # 4. Run the local preview npm run dev # β http://localhost:3000
For deployment, set the same variables in Vercel β Project β Settings β Environment Variables instead of a local file.
Jamendo client_id: Phonq cannot ship with a working public key β Jamendo suspends shared test keys. Create your own (free, 2 minutes) at devportal.jamendo.com. Without one, the app degrades gracefully: it serves whatever is cached in Postgres, then a bundled static snapshot, and surfaces a friendly "catalog is refreshing" message instead of a raw API error.
YouTube key (optional): set one
YOUTUBE_API_KEYto enable the hybrid catalog. Jamendo stays the default (legal, direct audio, no quota), and YouTube fills genre gaps β e.g. Brazilian funk β with tracks played through the YouTube IFrame Player API. There is no key pool or rotation: the single key's ~100 searches/day budget is tracked in Redis and cached in Postgres, so seeded catalogs stay cheap. See .env.example.ccMixter (built in, no key): when a feed is still short, Phonq adds ccMixter uploads that publish a verifiable Creative Commons license URL and a direct MP3 stream. Each track links its license and uploader attribution, and ccMixter outages never affect the Jamendo catalog health status.
YouTube downloads: there is no
yt-dlp/ffmpegdownload route β Vercel serverless functions cannot rely on host-installed binaries. YouTube tracks play through the IFrame player; Jamendo downloads remain available where the artist allows them.
| Script | Description |
|---|---|
npm run dev |
Start the dev server (Turbopack) |
npm run build |
Generate Prisma client + production build |
npm run start |
Serve the production build locally (Vercel uses npm run build) |
npm run lint |
ESLint |
npm run typecheck |
tsc --noEmit |
npm test |
Run the Vitest suite |
npm run sync:featured |
Refresh the static fallback snapshot with real Jamendo data |
npm run sync:youtube |
Bulk-seed a genre from a YouTube playlist (playlistItems.list) |
npm run db:generate |
prisma generate |
npm run db:deploy |
prisma migrate deploy |
npm run db:studio |
Open Prisma Studio |
One-click deploy (prompts for the required env vars):
Or manually:
- Push this repo to GitHub and import it in Vercel.
- Add the same env vars as
.env.localin Project β Settings β Environment Variables. - Run
npm run db:deployonce against the Neon database (from your shell with the Vercel env values, or from a one-off Vercel build step) to create the tables. Thebuildscript only generates the Prisma client and builds Next.js β it does not migrate automatically. - Deploy. Use a Neon branch per Vercel preview environment if you want isolated data.
Phonq runs on free tiers and stays free forever:
- Music β the Jamendo API is free for non-commercial use; direct streams from Jamendo and ccMixter are range-forwarded through a same-origin proxy so playback works with CORS.
- Database β Neon's free tier easily covers the catalog cache and user library.
- Hosting β Vercel's free tier.
- We never sell ads or data. If you want to keep the lights on and the features coming, sponsoring is the best way to help:
Contributions are welcome β docs, translations, bug fixes, features. See CONTRIBUTING.md, the Code of Conduct, and the security policy. In short:
git clone https://github.com/hexsyro/Phonq cd Phonq && npm install # make your changes⦠npm run lint && npm run typecheck && npm test && npm run ci
Questions and ideas are welcome on GitHub Discussions.
MIT β see LICENSE. Music is licensed by its artists under Creative Commons via Jamendo and ccMixter; Phonq does not own the catalog.
Built with β€οΈ for the phonk community Β· @hexsyro

