This is a Bun monorepo. The web app lives in apps/web.
- Clone repository and install dependencies:
git clone https://github.com/rajput-hemant/infinitunes
cd infinitunes
bun install- Configure environment:
cp .env.example .env- Start local infrastructure (PostgreSQL 18 & Redis):
bun run db:up- Run migrations and seed deterministic local data:
bun run db:migrate
bun run db:seed- Start the development server on host:
bun run devOpen http://localhost:3000 and sign in with default credentials:
- Email:
local@example.test - Password:
LocalDev123!
For detailed architecture, table prefixing and configuration, see the Local Development Guide.
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)You can deploy your own hosted version of infinitunes to Vercel.
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 |
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) |
RATE_LIMITING_REQUESTS_PER_SECOND |
Rate limit per second (default 50) |
UMAMI_WEBSITE_ID |
Umami analytics website ID (optional) |
RESEND_API_KEY |
Resend key for password-reset email (see below) |
EMAIL_FROM |
Verified sender, e.g. Infinitunes <no-reply@yourdomain.com> (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.
This project is licensed under the MIT License - see the LICENSE file for details.
Note: It may take up to 24h for the contrib.rocks plugin to update because it's refreshed once a day.