π 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