A beautiful web application that generates creative social media captions for the Jeropay team using OpenAI's GPT-4o-mini model.
- šØ Beautiful Web Interface - Modern, responsive design with glass morphism effects
- š¤ AI-Powered Generation - Creates 5 catchy, audience-friendly captions per topic
- šÆ Targeted Content - Tailored for young professionals and creatives
- š Easy Copy-to-Clipboard - One-click copying for each caption
- ā” Real-time Generation - Fast caption creation with loading states
- š± Mobile Responsive - Works perfectly on all devices
āāā backend/
ā āāā index.ts # Hono API server
āāā frontend/
ā āāā index.html # Main HTML template
ā āāā index.tsx # React frontend application
āāā shared/
ā āāā types.ts # Shared TypeScript types
āāā README.md
- Visit the application URL
- Enter any topic for your social media campaign
- Click "Generate Captions" or press Enter
- Copy your favorite captions with one click
- Use them for Jeropay's social media posts!
POST /api/generate
{
"topic": "your topic here"
}
Legacy Endpoint (Backward Compatibility)
POST /
{
"topic": "your topic here"
}
curl -X POST https://your-val-url.web.val.run/api/generate \
-H "Content-Type: application/json" \
-d '{"topic": "summer productivity tips"}'
- Frontend: React 18.2.0 with TypeScript
- Backend: Hono framework with OpenAI integration
- Styling: TailwindCSS with custom glass morphism effects
- AI Model: GPT-4o-mini (free tier)
- Temperature: 0.8 for creative variation
- Max Tokens: 500
Generated captions are optimized for:
- Young professionals and creatives
- Engaging hooks and action-oriented copy
- Positive, helpful tone
- Avoiding generic phrases
- Social media best practices
- June 2024 campaign alignment
- Input validation with user-friendly messages
- Loading states during generation
- Graceful error recovery
- Copy-to-clipboard feedback