Any2Any Content Transformation Engine - 5 Hour Hackathon Build
Transform any social media profile (LinkedIn/Twitter) into a personalized rap diss track with AI-generated lyrics, voice synthesis, and auto-generated music video. This showcases our any2any content transformation engine in the most memorable way possible.
๐ฅ Demo: video https://www.youtube.com/watch?v=xKqb1YUkMPE
Generated rap roast video with AI lyrics, custom beats, and dynamic visuals
# Clone repo
git clone https://github.com/genmini-ai/roastify
cd diss-track-generator
# Setup environment
cp .env.example .env
# Add your API keys:
# - OPENAI_API_KEY (GPT-5/GPT-4)
# - ANTHROPIC_API_KEY (Claude for backup)
# - ELEVENLABS_API_KEY (Voice synthesis)
# - REPLICATE_API_KEY (Video generation)
# - BROWSERLESS_API_KEY (Web scraping)
# Install dependencies
pip install -r backend/requirements.txt
cd frontend && npm install && cd ..
# Run everything
docker-compose up
# Or run separately
python backend/app.py
cd frontend && npm startVisit http://localhost:3000
Input (LinkedIn/Twitter URL)
โ
Profile Scraper (Playwright/Browserless)
โ
LLM Analysis (GPT-5)
โ
Lyrics Generation (GPT-5 with prompts)
โ
Parallel Processing:
โโโ Audio Generation (ElevenLabs)
โโโ Beat Selection (Pre-made)
โ
Audio Mixing (Pydub)
โ
Video Generation (Replicate/Local)
โ
Multi-format Export (Showcase any2any)
diss-track-generator/
โโโ README.md # This file
โโโ docker-compose.yml # One-click setup
โโโ .env.example # Environment template
โ
โโโ backend/
โ โโโ requirements.txt # Python dependencies
โ โโโ app.py # FastAPI server
โ โโโ scraper.py # Profile scraping (LinkedIn/Twitter)
โ โโโ analyzer.py # LLM-based profile analysis
โ โโโ generator.py # Lyrics generation pipeline
โ โโโ audio.py # Voice synthesis & mixing
โ โโโ video.py # Video generation
โ โโโ transformer.py # Any2any transformation engine
โ โโโ demo.py # Demo optimizations
โ
โโโ frontend/
โ โโโ package.json # Node dependencies
โ โโโ src/
โ โ โโโ App.jsx # Main React app
โ โ โโโ components/
โ โ โ โโโ URLInput.jsx # URL input component
โ โ โ โโโ Generator.jsx # Generation progress
โ โ โ โโโ Player.jsx # Audio/video player
โ โ โ โโโ Transformer.jsx # Format transformer
โ โ โโโ utils/
โ โ โโโ api.js # Backend API calls
โ โ โโโ demo.js # Demo helpers
โ โโโ public/
โ โโโ index.html
โ
โโโ prompts/
โ โโโ profile_analysis.md # Profile analysis prompt
โ โโโ lyrics_generation.md # Rap lyrics prompt
โ โโโ roast_angles.md # Roasting strategies
โ โโโ transformations.md # Any2any prompts
โ
โโโ assets/
โ โโโ beats/ # Pre-made instrumentals
โ โ โโโ trap_beat.mp3
โ โ โโโ boom_bap.mp3
โ โ โโโ lofi_beat.mp3
โ โโโ templates/ # Video templates
โ โโโ music_video.json
โ
โโโ cache/ # Demo cache
โ โโโ profiles/ # Pre-scraped profiles
โ โโโ outputs/ # Pre-generated content
โ
โโโ scripts/
โโโ setup.sh # Environment setup
โโโ warmup.py # API pre-warming
โโโ demo_flow.py # Demo automation
- Handles LinkedIn and Twitter URLs
- Uses Playwright for local dev
- Browserless API for production
- Extracts: bio, posts, work history, education
- GPT-5/Claude analyzes scraped content
- Extracts: personality traits, buzzwords, achievements
- Identifies roast angles
- Generates personality model for content
- GPT-5 writes personalized rap lyrics
- Follows hip-hop structure (intro/verse/hook/outro)
- Maintains rhyme schemes
- Incorporates profile-specific references
- ElevenLabs for rap voice synthesis
- Pre-made beats for different moods
- Pydub for mixing vocals + beat
- Real-time streaming for speed
- Simple but effective visualizations
- Lyrics sync with audio
- Profile images with effects
- Export in multiple formats
- Showcases our core technology
- Diss track โ LinkedIn recommendation
- Diss track โ PowerPoint presentation
- Diss track โ Academic paper
- URL โ Profile text extraction
- LLM analysis โ Roast angles
- Generate lyrics
- Basic TTS audio
- Display results
async def generate_content():
# Run simultaneously
tasks = [
analyze_profile(), # 2-3s
generate_lyrics(), # 2-3s
prepare_beat(), # 0.1s (pre-loaded)
]
results = await asyncio.gather(*tasks)- Cache scraped profiles (avoid re-scraping)
- Cache LLM responses (save API calls)
- Pre-load beats and assets
- Use CDN for static files
# Emphasize: Growth, virality, clear monetization
- Quick generation (show speed)
- Share functionality (viral potential)
- Creator economy angle ($$$)# Emphasize: Technical depth, infrastructure
- Show LLM orchestration
- Explain any2any architecture
- Discuss scaling challenges- If scraping fails: Manual text input
- If GPT-5 is slow: Use GPT-4-turbo
- If ElevenLabs fails: Pre-recorded audio
- If video gen fails: Static image + audio
- Nuclear option: Pre-recorded demo video
- Generation time: ~8 seconds
- Transformation options: 10+ formats
- Information preservation: 94%
- Potential market: 2M+ creators
- Revenue model: $50/month subscription
# LLMs
OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
# Audio/Video
ELEVENLABS_API_KEY=...
REPLICATE_API_KEY=...
# Scraping
BROWSERLESS_API_KEY=...
BRIGHT_DATA_PROXY=... # Backup for LinkedIn
# Demo Config
DEMO_MODE=true
CACHE_ENABLED=true
TARGET_AUDIENCE=yc # or 'afore'
MAX_GENERATION_TIME=10 # seconds
# Optional
REDIS_URL=redis://localhost:6379
SENTRY_DSN=... # Error tracking| Hour | Focus | Deliverable |
|---|---|---|
| 0-2 | Setup & Scraping | Working URL โ text extraction |
| 2-4 | LLM Integration | Profile analysis + lyrics generation |
| 4-6 | Audio Pipeline | TTS + beat mixing working |
| 6-8 | Basic Frontend | Input โ Results display |
| 8-9 | Video Generation | Basic video output |
| 9-10 | Transformations | Show any2any capability |
| 10-11 | Polish & Debug | Fix critical issues |
| 11-12 | Demo Practice | Rehearse, prepare backups |
-
Hook (0-15s)
- "We transform any content into any format"
- Input judge's LinkedIn URL
-
Magic (15-45s)
- Show real-time generation
- Play diss track (keep it short!)
- Audience laughs
-
Business (45-75s)
- "But watch this..."
- Transform to different formats
- "Same engine powers content for 2M creators"
-
Close (75-90s)
- "$50/month, 40% margins"
- "Already have 100 beta users"
- "This demo IS our marketing"
| Issue | Solution |
|---|---|
| LinkedIn requires login | Use cached profiles for demo |
| GPT-5 too slow | Fallback to GPT-4-turbo |
| Rate limits | Multiple API keys, rotate |
| CORS errors | Proxy through backend |
If we win:
- Polish the transformation engine
- Add more input sources (TikTok, Instagram)
- Add more output formats
- Build creator dashboard
- Launch on Product Hunt
- Sell to Adobe for $100M ๐
- Keep it simple: Better to have 3 working features than 10 broken ones
- Demo is everything: 50% coding, 50% preparing demo
- Have backups: Everything that can fail, will fail
- Energy matters: High energy presentation wins
Built with ๐ and ๐ฅ at YC Agents Hackathon "Transforming content and feelings since 2024"