Lens / Rishit Music — Private Audio Streaming Platform

Overview

What it is

Rishit Music is a full-stack private audio streaming system built as a Turborepo. A Next.js listener/admin application talks to a modular NestJS control plane backed by MongoDB. Administrators create catalog metadata, receive short-lived presigned upload authorization, and send WAV masters directly to private S3 with byte-level progress. A persistent Node/FFmpeg worker atomically claims queued tracks, probes duration, creates multiple AAC/fMP4 HLS renditions, uploads derivative objects, and commits READY/FAILED media state. Playback is capability-based: the API authorizes master/rendition manifests with track-scoped short-lived JWTs, validates every referenced media path, and emits expiring CloudFront signed URLs with private-S3 presigned fallback so heavy media bytes bypass application compute. The same platform supports external applications through backend-only service keys with scopes, allowed origins, bounded session TTLs, per-minute rate limits, primary/secondary key rotation, irreversible HMAC authentication, separately encrypted admin reveal, revocation and usage metering. The architecture deliberately separates catalog publication from media readiness, user authentication from playback authorization, the HTTP control plane from the media byte plane, and serverless request handling from long-running transcoding.