GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com β€” GitHub - hexsyro/Phonq: A open source music platform that specified in Phonk genre music

BranchesTags
Open more actions menu

Latest commit

 

History

51 Commits
51 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
docs
docs
 
 
prisma
prisma
 
 
scripts
scripts
 
 
src
src
 
 
test
test
 
 
.env.example
.env.example
 
 
.env.test
.env.test
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
ARCHITECTURE.md
ARCHITECTURE.md
 
 
CLAUDE.md
CLAUDE.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
DESIGN.md
DESIGN.md
 
 
LICENSE
LICENSE
 
 
PRODUCT.md
PRODUCT.md
 
 
README.md
README.md
 
 
ROADMAP.md
ROADMAP.md
 
 
SECURITY.md
SECURITY.md
 
 
TODO.md
TODO.md
 
 
commit.sh
commit.sh
 
 
eslint.config.mjs
eslint.config.mjs
 
 
files_to_restore.txt
files_to_restore.txt
 
 
next.config.ts
next.config.ts
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
postcss.config.mjs
postcss.config.mjs
 
 
prisma.config.ts
prisma.config.ts
 
 
tsconfig.json
tsconfig.json
 
 
vercel.json
vercel.json
 
 
vitest.config.ts
vitest.config.ts
 
 

Repository files navigation

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 β€” The free home of phonk

MIT License CI Next.js TypeScript Neon Discussions

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.


What is Phonq?

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.


Screenshots

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
App Landing Page

Short GIFs of the live waveform / queue help too β€” see Contributing β†’ Screenshots.

Tech Stack

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)

Project Structure

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.

Prerequisites

  • 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

Setup

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_KEY to 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/ffmpeg download 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.

Scripts

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

Deploying to Vercel

One-click deploy (prompts for the required env vars):

Deploy with Vercel

Or manually:

  1. Push this repo to GitHub and import it in Vercel.
  2. Add the same env vars as .env.local in Project β†’ Settings β†’ Environment Variables.
  3. Run npm run db:deploy once against the Neon database (from your shell with the Vercel env values, or from a one-off Vercel build step) to create the tables. The build script only generates the Prisma client and builds Next.js β€” it does not migrate automatically.
  4. Deploy. Use a Neon branch per Vercel preview environment if you want isolated data.

How this stays free

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:

Sponsor on GitHub

Contributing

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.

License

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

About

A open source music platform that specified in Phonk genre music

phonq.vercel.app

Topics

audio-playerfunkmusic-platformmusic-playermusic-player-appopen-sourcephonk

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity

Stars

75 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 β€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Γ—600. No cookies required.