A professional Digital Audio Workstation (DAW) built with React, TypeScript, Tone.js, and Go for interactive music production education. Features both real-time browser-based audio synthesis and high-quality backend rendering.
- TypeScript Refactoring: Complete type safety overhaul (Gates 4-5)
- Eliminated all TypeScript errors (62 β 0)
- Proper type definitions for Tone.js integration
- Removed legacy components and type mismatches
- State Management: Migrated to Zustand from React hooks
- Code Quality: Isolated side effects into dedicated hooks and services
- MCP Support: Enhanced Model Context Protocol integration
- Dual Rendering Modes:
- Frontend (Tone.js): Real-time browser-based synthesis for instant playback
- Backend (Go): Professional 96kHz rendering with DSP processing
- Professional mixer with multi-track STEM control
- Advanced production controls (frequency management, dynamics, stereo imaging)
- Visual spectrum analyzer and meters
- A/B comparison mode
- Production presets (Amateur, Balanced, Vintage, Modern, Electronic)
- Song architecture visualization and editing
- Progressive tutorial system
- Interactive quizzes
- Achievement system with points
- Production challenges
- Theory tooltips
- Real-time parameter change indicators
- Frontend: React 18 + TypeScript + Vite
- Audio Engine: Tone.js (frontend) / Custom DSP (backend)
- Backend: Go + hyperserve framework
- Styling: Tailwind CSS
- Data Model: Unified MusicProject structure
- Deployment: Single binary with embedded assets
HF_DAW/
βββ src/ # Frontend source
β βββ App.tsx # Main application
β βββ components/ # React components
β βββ hooks/ # Custom React hooks
β βββ types/ # TypeScript definitions
β βββ data/ # Music projects and presets
β βββ utils/ # Utility functions
βββ pkg/audio/ # Go audio processing
β βββ models.go # Data models (golden source)
β βββ production_renderer.go # Backend renderer
β βββ handler.go # Audio file handling
βββ internal/ # Go internal packages
β βββ handlers/ # HTTP handlers
β βββ router/ # Route configuration
βββ docs/ # Documentation
β βββ hf_ds.md # Data structure specs
β βββ hf_mbb.md # Music business blueprint
βββ audio_output/ # Backend rendered files
- Node.js 18+ and npm
- Go 1.24+
- Modern web browser with Web Audio API support
# Clone the repository
git clone https://github.com/osauer/HF_DAW.git
cd HF_DAW
# Install all dependencies
make setup
# Start development servers
make dev- Frontend (Vite): http://localhost:5173
- Backend (Go): http://localhost:8080
- Access app at: http://localhost:8080/daw
# Build everything
make build
# Run production server
./hf-daw- Linux/macOS/Windows with Go runtime
- 512MB+ RAM recommended
- 100MB disk space for binary and assets
-
Build the production binary:
make build
-
Create required directories (automatically created on first run):
audio_output/- For backend-rendered audio filesuploads/- For user audio uploadsuploads/recordings/- For in-app recordings
-
Environment Variables (optional):
HF_DAW_MCP_TOKEN- Secure MCP endpointsPORT- Change default port (8080)
-
Run the server:
./hf-daw
FROM golang:1.24-alpine AS builder
WORKDIR /app
COPY . .
RUN apk add --no-cache make nodejs npm
RUN make build
FROM alpine:latest
RUN apk add --no-cache ca-certificates
WORKDIR /root/
COPY --from=builder /app/hf-daw .
RUN mkdir -p audio_output uploads/recordings
EXPOSE 8080
CMD ["./hf-daw"][Unit]
Description=HitFactory DAW Server
After=network.target
[Service]
Type=simple
User=www-data
WorkingDirectory=/opt/hf-daw
ExecStart=/opt/hf-daw/hf-daw
Restart=on-failure
Environment="HF_DAW_MCP_TOKEN=your-secret-token"
[Install]
WantedBy=multi-user.targetSwitch between instant browser playback and professional backend rendering:
- Browser Mode: Low latency, real-time synthesis
- Server Mode: 96kHz, professional mastering chain, downloadable files
Comprehensive data model supporting:
- Core Musical DNA (tempo, harmony, dynamics, timbre)
- Song Architecture (sections, arrangements, transitions)
- STEM Collection (individual tracks with processing)
- Production metadata and technical specs
- Core Musical DNA: BPM, groove, harmony, dynamics
- Mixer Panel: Per-STEM volume, pan, mute, solo
- Production Nuances: Frequency separation, compression, stereo imaging
- Advanced Controls: Transient shaping, automation, multi-band processing
make dev # Start dev servers (frontend + backend)
make build # Build for production
make test # Run tests
make lint # Run linters
make clean # Clean build artifacts
make kill # Stop all servers
make setup # Install all dependenciesnpm run dev # Start Vite dev server
npm run build # Build frontend
npm run type-check # TypeScript checkinggo run main.go # Run backend server
go test ./... # Run Go tests
go build # Build binaryGET /- Landing pageGET /daw- Main DAW application
POST /api/daw/render- Simple audio renderPOST /api/daw/production/render- Production quality renderGET /api/daw/production/status?jobId={id}- Check render statusGET /api/daw/production/stream?jobId={id}- Stream rendered audioPOST /api/daw/production/preview- Quick preview renderWS /ws/daw/production/render?jobId={id}- WebSocket progress
GET /mcp- MCP tools and capabilities
- Frontend: Modern React with hooks, TypeScript for type safety
- Audio Processing: Dual engine (Tone.js client-side, Go server-side)
- State Management: React hooks with proper separation of concerns
- Backend: Zero-dependency hyperserve framework
- Deployment: Single binary with embedded frontend assets
- Data Model: Unified MusicProject structure (see
pkg/audio/models.go)
- Read
CLAUDE.mdfor AI-assisted development guidelines - Check
KANBAN_BOARD.mdfor current tasks - Follow the existing code style and patterns
- Ensure all tests pass before submitting
- Auto-commit is enabled - commits happen automatically
MIT License - see LICENSE file for details
- Built with hyperserve framework
- Audio synthesis powered by Tone.js
- Inspired by professional DAWs and music education needs