🚀 Futuristic AI-Powered Hook Generator for X (Twitter) Writers
A cutting-edge cyberpunk-themed SaaS platform with neon aesthetics and holographic UI
Hook Forge helps content creators write better hooks for their X posts using advanced AI. Features a unique futuristic interface with glassmorphism, neon glows, and cyber-grid backgrounds.
- 🎯 Hook Generator: AI generates 5+ viral hook variations for any topic
- 📊 Hook Analyzer: Real-time scoring (0-100) with detailed feedback
- 📚 Pattern Library: 10+ proven hook templates from viral content
- 🎨 Futuristic UI: Cyberpunk-themed interface with neon effects
- Frontend: React + TypeScript + Vite + Tailwind CSS
- Backend: Node.js + Express + TypeScript
- Database: JSON file-based storage
- AI: OpenAI GPT-5.2 API
- Deployment: Docker + Render.com
- Click the "Deploy to Render" button above
- Connect your GitHub account
- Add your
OPENAI_API_KEYenvironment variable - Click "Apply"
See DEPLOYMENT.md for detailed instructions.
- Bun 1.2+ (Recommended) or Node.js 18+
- OpenAI API key (get one here)
- Clone the repository:
git clone <your-repo-url>
cd hook-forge- Install dependencies:
bun install:all- Configure environment variables:
cd server
cp .env.example .env- Edit
server/.envand add your OpenAI API key:
OPENAI_API_KEY=sk-your-key-here
JWT_SECRET=your-random-secret-here
Start both frontend and backend:
bun run devThe app will be available at:
- Frontend: http://localhost:5173
- Backend: http://localhost:3001
- Click the "Generate Hooks" tab
- Enter your topic (e.g., "productivity tips for developers")
- Click "Generate Hooks"
- Copy your favorite hooks
- Click the "Analyze Hook" tab
- Paste your hook
- Get a score (0-100) and specific feedback
- Click the "Pattern Library" tab
- Filter by category
- Copy templates to use in your posts
hook-forge/
├── client/ # React frontend
│ ├── src/
│ │ ├── components/ # React components
│ │ ├── App.tsx # Main app component
│ │ ├── api.ts # API client
│ │ └── main.tsx # Entry point
│ └── package.json
├── server/ # Express backend
│ ├── src/
│ │ ├── routes/ # API routes
│ │ ├── services/ # Business logic
│ │ ├── db.ts # Database setup
│ │ └── index.ts # Server entry point
│ └── package.json
└── package.json # Root package.json
POST /api/hooks/generate- Generate hooks for a topicPOST /api/hooks/analyze- Analyze a hookGET /api/hooks/patterns- Get all hook patternsGET /api/hooks/history- Get hook history
bun run dev # Run both frontend and backend
bun run dev:server # Run only backend
bun run dev:client # Run only frontend
bun run build # Build both for productiondocker build -t hook-forge .docker run -p 3001:3001 \
-e OPENAI_API_KEY=your_key_here \
-e NODE_ENV=production \
hook-forgeversion: "3.8"
services:
hook-forge:
build: .
ports:
- "3001:3001"
environment:
- NODE_ENV=production
- OPENAI_API_KEY=${OPENAI_API_KEY}
- JWT_SECRET=${JWT_SECRET}
restart: unless-stoppedPORT- Server port (default: 3001)OPENAI_API_KEY- Your OpenAI API key (required)JWT_SECRET- Secret for JWT tokensNODE_ENV- Environment (development/production)
MIT