Scrapes high-signal tweets from approved accounts via Apify, filters to 1,000+ retweets, reshapes into a 2-part self-development quote via Claude, and renders in an iPhone/Instagram mockup.
Set these in Vercel Dashboard → Project → Settings → Environment Variables:
| Variable | Value |
|---|---|
APIFY_TOKEN |
YOUR_APIFY_TOKEN |
ANTHROPIC_API_KEY |
Your Anthropic API key |
- User hits Generate Quote
/api/starttriggers Apify scraper on@orangebook_- Frontend polls
/api/pollevery 5 seconds - Once complete: tweets filtered to 1,000+ RTs, best candidate reshaped by Claude into 2-part hypothesis quote (19–25 words, self-development topic)
- Quote renders in iPhone mockup live in the browser
- Download Card saves the HTML file
Edit ACCOUNTS array in /api/start.js.