Music Passphrase is a modern web application built to generate secure, memorable passphrases using AI technology. This project leverages the Groq API to create human-readable passphrases based on user-provided music artist names and keywords.
This project is enhanced with Task Master AI for intelligent project management and development workflow optimization.
- Music Artist-based Generation: Users input music artist names to generate contextually relevant passphrases.
- Customization Options:
- Toggle to add numbers to passphrases.
- Toggle to add special characters.
- Multiple Outputs: Generates 5 passphrases per request.
- Copy to Clipboard: One-click copying of generated passphrases.
- Responsive UI: Modern, mobile-friendly interface.
- Framework: React 18.3.1 with TypeScript
- Build Tool: Vite 5.4.1
- UI Components: shadcn/ui with Radix UI primitives
- Styling: Tailwind CSS 3.4.11
- Routing: React Router DOM 6.26.2
- State Management: React Hook Form + Zod validation
- HTTP Client: TanStack React Query 5.56.2
- AI Integration: Groq SDK
- Analytics: Vercel Analytics
- Backend: Vercel Serverless Functions
- AI-Powered Project Management: Task Master AI for intelligent task planning and execution
- Code Generation: Cursor AI integration for enhanced development workflow
- Advanced Linting: ESLint with React-specific rules
- Type Safety: Full TypeScript implementation with strict configuration
music-passphrase/
โโโ .taskmaster/ # Task Master AI project management
โ โโโ config.json # AI model configuration
โ โโโ tasks/ # Task definitions and tracking
โ โโโ reports/ # Complexity analysis reports
โ โโโ templates/ # Project templates and examples
โ โโโ docs/ # Project documentation
โโโ src/
โ โโโ api/ # API integration layer
โ โ โโโ generate.ts # Passphrase generation logic
โ โโโ components/
โ โ โโโ ui/ # shadcn/ui components
โ โโโ hooks/ # Custom React hooks
โ โโโ lib/ # Utility functions
โ โโโ pages/
โ โ โโโ Index.tsx # Main application page
โ โ โโโ NotFound.tsx # 404 page
โ โโโ App.tsx # Main app component
โ โโโ main.tsx # Application entry point
โโโ api/ # Vercel serverless functions
โ โโโ generate-passphrases.ts # Backend API endpoint
โโโ public/ # Static assets
โโโ doc/ # Project documentation
โโโ .vercel/ # Vercel deployment configuration and cache
โโโ logs/ # Application logs
- Node.js 18+ & npm (or yarn/pnpm)
- A Groq API Key
- Go to console.groq.com
- Sign up or log in
- Navigate to the API Keys section
- Create a new API key and copy it
Create a .env file in the project root:
# Groq API Configuration
GROQ_API_KEY=your_groq_api_key_here
VITE_GROQ_API_KEY=your_groq_api_key_here
# Optional: Analytics
VERCEL_ANALYTICS_ID=your_vercel_analytics_idFor Vercel Deployment:
- Go to your Vercel project dashboard
- Navigate to Settings โ Environment Variables
- Add your environment variables for all environments (Production, Preview, Development)
-
Clone the repository:
git clone https://github.com/seansoreilly/music-passphrase.git cd music-passphrase -
Install dependencies:
npm install
-
Start the development server:
npm run dev
The app will be available at
http://localhost:8080/(or the port shown in your terminal).
npm run dev: Starts the development servernpm run build: Builds the application for productionnpm run build:dev: Builds the application in development modenpm run lint: Lints the codebase using ESLintnpm run preview: Serves the production build locally for preview
This project utilizes advanced AI tools for enhanced development:
- Intelligent Task Planning: Automated task breakdown and dependency management
- Complexity Analysis: AI-powered assessment of task complexity
- Progress Tracking: Automated progress monitoring and reporting
- Research-Backed Development: Integration with AI research capabilities
To work with Task Master:
- Task definitions are stored in
.taskmaster/tasks/ - Use the integrated AI tools for task management
- Configuration is managed through
.taskmaster/config.json
- Task Planning: AI generates and organizes development tasks
- Implementation: Code generation with AI assistance
- Testing: Automated testing strategy generation
- Documentation: AI-assisted documentation updates
- Modern React application with TypeScript
- Comprehensive UI component library from shadcn/ui
- Responsive design implemented with Tailwind CSS
- Form handling and validation using React Hook Form and Zod
- Toast notifications for user feedback
- Copy-to-clipboard functionality for generated passphrases
- Vercel deployment configuration
- Integration with Groq API for passphrase generation
- Fallback to mock passphrase generation if API fails
- AI-powered project management with Task Master
- Advanced development tooling integration
Endpoint: /api/generate-passphrases
- Method: POST
- Model: Mixtral-8x7B-32768 (via Groq)
- Fallback: Mock generation on API failure
Request Format:
{
"keywords": "your music artist here",
"addNumber": true,
"addSpecialChar": false
}Response Format:
{
"passphrases": [
"Artist-inspired-passphrase-1",
"Artist-inspired-passphrase-2"
// ... up to 5 passphrases
],
"success": true
}This project is optimized for deployment on Vercel:
- Environment Variables: Set your
GROQ_API_KEYin Vercel project settings - Automatic Deployment: Connected to GitHub for automatic deployments
- Build Configuration:
- Build Command:
npm run build - Output Directory:
dist - Framework: Vite
- Build Command:
-
Enhanced AI Features:
- Multiple AI model support
- Advanced passphrase customization
- Intelligent strength analysis
-
User Experience:
- User accounts and passphrase history
- Export functionality (TXT, CSV, JSON)
- Advanced customization options
- Passphrase strength visualization
-
Backend Improvements:
- Supabase integration for data persistence
- Advanced error handling and logging
- API rate limiting and caching
-
Development Tools:
- Automated testing suite
- Performance monitoring
- Advanced analytics integration
Contributions are welcome! This project uses AI-assisted development:
- Task Management: Check
.taskmaster/tasks/for current development tasks - Code Standards: Follow the established TypeScript and React patterns
- AI Integration: Leverage the Task Master AI tools for planning and implementation
This project is under the MIT License.
Generate secure, memorable passphrases from your favorite music artists with AI-powered intelligence.