• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
Ermd33s

Ermd33s

ContentGen

Public
Like
ContentGen
Home
Code
4
frontend
2
shared
1
README.md
H
index.ts
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
6/2/2025
README.md

Jeropay Social Media Caption Generator

A beautiful web application that generates creative social media captions for the Jeropay team using OpenAI's GPT-4o-mini model.

Features

  • 🎨 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

Project Structure

├── 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

Usage

Web Interface

  1. Visit the application URL
  2. Enter any topic for your social media campaign
  3. Click "Generate Captions" or press Enter
  4. Copy your favorite captions with one click
  5. Use them for Jeropay's social media posts!

API Endpoints

Generate Captions

POST /api/generate

{ "topic": "your topic here" }

Legacy Endpoint (Backward Compatibility)

POST /

{ "topic": "your topic here" }

Example API Usage

curl -X POST https://your-val-url.web.val.run/api/generate \ -H "Content-Type: application/json" \ -d '{"topic": "summer productivity tips"}'

Technical Details

  • 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

Content Guidelines

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

Error Handling

  • Input validation with user-friendly messages
  • Loading states during generation
  • Graceful error recovery
  • Copy-to-clipboard feedback
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.