HarmoniQ is an AI-powered music and lyrics generation platform that enables users to create studio-quality songs without musical experience. Built with a modern tech stack and featuring a sleek synthwave aesthetic.
- Dual AI Engines: Choose between OpenAI (fast) or Google Gemini (comprehensive song concepts)
- Smart Generation: Generate verses, choruses, bridges with proper structure
- Genre-Aware: Lyrics adapt to selected genre and mood
- Song Concepts: Gemini provides full song concepts including BPM, key, and energy analysis
- Instrumental Generation: Create AI-powered instrumental tracks up to 3 minutes
- Sample-First Workflow: Generate 15-second previews before committing to full tracks
- Singing Vocals: Generate AI singing vocals with Bark integration
- Mix Tab: Combine instrumentals and vocals with volume/delay controls
- Music Theory Tools: Chord progression generator, scale finder, production tips
- Interactive audio visualizer with synthwave aesthetic
- Circular equalizer, frequency spectrum, and waveform displays
- Upload and play your own audio files
- Personal Library: Save and manage your generated songs
- Public Explore: Browse and like publicly shared songs
- Playlist Management: Create and organize song playlists
- PWA Support: Install as a progressive web app with offline caching
- React 18 with TypeScript
- Vite for fast development and builds
- Tailwind CSS with custom synthwave theme
- shadcn/ui component library (Radix UI)
- Framer Motion for animations
- TanStack React Query for data fetching
- Wouter for routing
- Node.js with Express.js
- TypeScript (ES modules)
- PostgreSQL database with Drizzle ORM
- Passport.js with OpenID Connect (Replit Auth)
- OpenAI API for fast lyrics generation
- Google Gemini for comprehensive song concepts
- Replicate API for short audio clips (MusicGen)
- Stable Audio (fal.ai) for extended duration tracks
- Bark for AI singing vocals
- Node.js 18+
- PostgreSQL database
- API keys for AI services
# Database
DATABASE_URL=postgresql://...
# Authentication
SESSION_SECRET=your-session-secret
ISSUER_URL=your-replit-issuer-url
REPL_ID=your-repl-id
# AI Services (via Replit integrations)
AI_INTEGRATIONS_OPENAI_API_KEY=...
AI_INTEGRATIONS_OPENAI_BASE_URL=...
AI_INTEGRATIONS_GEMINI_API_KEY=...
AI_INTEGRATIONS_GEMINI_BASE_URL=...
# Audio Generation
REPLICATE_API_KEY=your-replicate-key
FAL_API_KEY=your-fal-key# Install dependencies
npm install
# Push database schema
npm run db:push
# Start development server
npm run devThe application will be available at http://localhost:5000.
harmoniq/
├── client/ # Frontend React application
│ ├── src/
│ │ ├── components/ # Reusable UI components
│ │ ├── hooks/ # Custom React hooks
│ │ ├── lib/ # Utilities and helpers
│ │ ├── pages/ # Page components
│ │ └── replit_integrations/ # Client-side integrations
│ └── index.html
├── server/ # Backend Express application
│ ├── routes.ts # API route definitions
│ ├── storage.ts # Database operations
│ ├── index.ts # Server entry point
│ └── replit_integrations/ # Server-side integrations
├── shared/ # Shared types and schemas
│ ├── schema.ts # Drizzle database schema
│ └── routes.ts # API route contracts
└── drizzle/ # Database migrations
npm run dev- Start development servernpm run build- Build for productionnpm run db:push- Push schema changes to databasenpm run db:studio- Open Drizzle Studio
MIT License - See LICENSE file for details.
See CONTRIBUTING.md for development guidelines.