Skip to content

About

🎵 A Simple Music Player Web App built using ▲ Next.js, shadcn/ui, TailwindCSS, DrizzleORM and more...

Topics

Resources

Stars

363 stars

Watchers

1 watching

Forks

Latest commit

 

History

240 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

infinitunes

[WIP] A Simple Music Player Web App made with Next.js + Tailwind.

infinitunes


 Live Demo 

Building from Source

This is a Bun monorepo. The web app lives in apps/web.

Prerequisites

Quick Start

  1. Clone repository and install dependencies:
git clone https://github.com/rajput-hemant/infinitunes
cd infinitunes
bun install
  1. Configure environment:
cp .env.example .env
  1. Start local infrastructure (PostgreSQL 18 & Redis):
bun run db:up
  1. Run migrations and seed deterministic local data:
bun run db:migrate
bun run db:seed
  1. Start the development server on host:
bun run dev

Open 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.

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)
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).

Deploy with Vercel

Star History

Star History Chart

Disclaimer

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.

About

🎵 A Simple Music Player Web App built using ▲ Next.js, shadcn/ui, TailwindCSS, DrizzleORM and more...

Topics

Resources

Stars

363 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages