How uday-sr/producerhaven works
ProdHaven is a browser-based music toolkit for musicians and producers. The main workflow is to open the tools workspace, choose a feature, provide audio or a live microphone signal, process or analyze it, then preview or download the result. Its documented capabilities include AI stem separation, instrument tuning, platform-oriented mastering, and waveform feedback; the sampler adds pad-based slicing and preset persistence. Backend routes support mastering, sampler assets and presets, and user authentication. The Python service is documented as the Demucs separation backend, though its implementation was not shown; its connection is therefore left unverified.
Main entry points: Home.tsx Workspace shell · index.ts HTTP API server · Splitter.tsx Stem splitter · Master.tsx Track mastering
Components 20
Tools workspace
- Frontend entry
frontend/src/main.tsx - Workspace shell
frontend/src/components/Page/Home.tsx - Feature navigation
frontend/src/components/Layout/Sidebar.tsx
Audio tools
- Stem splitter
frontend/src/components/Features/Splitter.tsx - Instrument tuner
frontend/src/components/Features/Tuner/Tuner.tsx - Track mastering
frontend/src/components/Features/Master/Master.tsx - Live master preview
frontend/src/components/Features/Master/UseliveMaster.tsx - Audio sampler
frontend/src/components/Features/sampler/Sampler.tsx - Waveform player
frontend/src/components/Reuse/AudioWaveform.tsx
Backend services
- AI separation API
ai_service/app/main.py - HTTP API server
backend/src/index.ts - Mastering endpoint
backend/src/routes/services/ffmpeg/equalizer.routes.ts - Sampler endpoints
backend/src/routes/services/sampler/sampler.routes.ts - User authentication
backend/src/routes/auth/user.ts - FFmpeg processor
Persistence and identity
- Sampler file storage
backend/src/routes/services/sampler/sampler.routes.ts - MongoDB
backend/src/db/db.ts - User records
backend/src/db/model/user.model.ts - Usage records
backend/src/db/model/usage.model.ts
Other components
- Musician
Connections 22
- Musician → Frontend entry: opens tools
frontend/src/main.tsx - Frontend entry → Workspace shell: renders
- Workspace shell → Feature navigation: renders navigation
frontend/src/components/Page/Home.tsx - Workspace shell → Stem splitter: selects feature
frontend/src/components/Page/Home.tsx - Workspace shell → Instrument tuner: selects feature
frontend/src/components/Page/Home.tsx - Workspace shell → Track mastering: selects feature
frontend/src/components/Page/Home.tsx - Workspace shell → Audio sampler: selects feature
frontend/src/components/Page/Home.tsx - Stem splitter → Waveform player: renders stems
frontend/src/components/Features/Splitter.tsx - Stem splitter → AI separation API: posts audio
frontend/src/components/Features/Splitter.tsx - AI separation API → Stem splitter: returns stems
- Track mastering → Live master preview: uses preview
frontend/src/components/Features/Master/Master.tsx - Track mastering → HTTP API server: requests mastering
- HTTP API server → Mastering endpoint: routes requests
backend/src/index.ts - Mastering endpoint → FFmpeg processor: runs processing
backend/src/routes/services/ffmpeg/equalizer.routes.ts - Mastering endpoint → Track mastering: downloads master
- Audio sampler → HTTP API server: uses sampler API
- HTTP API server → Sampler endpoints: routes requests
backend/src/index.ts - Sampler endpoints → Sampler file storage: stores uploads and presets
backend/src/routes/services/sampler/sampler.routes.ts - HTTP API server → User authentication: routes requests
backend/src/index.ts - User authentication → MongoDB: uses database
backend/src/routes/auth/user.ts - MongoDB → User records: loads model
backend/src/db/db.ts - MongoDB → Usage records: loads model
backend/src/db/db.ts