[WIP] A Simple Music Player Web App made with Next.js + Tailwind. [ Live Demo ][site] Building from Source This is a Bun monorepo. The web app lives in apps/web. Prerequisites Bun (v1.4.2) Docker Quick Start 1. Clone repository and install dependencies: 2. Configure environment: 3. Start local infrastructure (PostgreSQL 18 & Redis): 4. Run migrations and seed deterministic local data: 5. Start the…
For detailed architecture, table prefixing and configuration, see the Local Development Guide.
Useful Scripts
bun run db:up # Start PostgreSQL & Redis in Docker
bun run db:down # Stop local infrastructure
bun run db:migrate # Run database migrations
bun run db:seed # Seed local deterministic data
bun run dev # Start Next.js development server
bun run build # Production build
bun run lint # Lint with Oxlint
bun run fmt:check # Check formatting with oxfmt
bun run type-check # Type check with TypeScript
bun run test # Run tests (plain + DOM suites)
Deploy Your Own
You can deploy your own hosted version of infinitunes to Vercel.
Vercel Setup
When importing the repository into Vercel, configure the following:
Setting
Value
Framework Preset
Next.js
Root Directory
apps/web
Install Command
bun install
Build Command
bun run build
Output Directory
.next
Required Environment Variables
Set these in your Vercel project settings:
Variable
Description
AUTH_SECRET
Secret for Better Auth sessions
AUTH_URL
Your deployed app URL (for Better Auth)
NEXT_PUBLIC_APP_URL
Public app URL (optional, fallback to default)
JIOSAAVN_DES_KEY
DES key to decrypt JioSaavn media URLs
GOOGLE_CLIENT_ID
Google OAuth client ID (optional unless prod)
GOOGLE_CLIENT_SECRET
Google OAuth client secret (optional unless prod)
GITHUB_CLIENT_ID
GitHub OAuth client ID (optional unless prod)
GITHUB_CLIENT_SECRET
GitHub OAuth client secret (optional unless prod)
DATABASE_URL
PostgreSQL connection string
UPSTASH_REDIS_REST_URL
Upstash Redis URL (optional, rate limiting)
UPSTASH_REDIS_REST_TOKEN
Upstash Redis token (optional, rate limiting)
ENABLE_RATE_LIMITING
true/false rate limiting toggle (default false)
TRUSTED_PROXY
vercel, true or false: who may set client IP headers (default: vercel on Vercel, else false)
Verified sender, e.g. Infinitunes <[email protected]> (required with the key)
Password reset email./forgot-password emails a single-use link (valid 1 hour; resetting signs out every device) via Resend’s REST API. Without RESEND_API_KEY the link is printed to the server console in development; in production it fails closed: no email is sent, the error is logged (without the link) and the user still sees the generic “If an account exists…” message, so set both variables before deploying. The request endpoint is limited to 3 requests per minute per IP (Better Auth’s in-memory limiter, production only, per server instance).
This project is independent of any affiliation with JioSaavn or its associated partners. It is created solely for educational purposes. Usage is at your own discretion, and the developer disclaims responsibility for any misuse or potential damage resulting from the use of this program. Please refrain from duplicating this project for commercial purposes.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributors:
Note: It may take up to 24h for the contrib.rocks plugin to update because it’s refreshed once a day.
评论