Skip to content

Gaurav77Kumar/TitleIQ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

TitleIQ

TitleIQ 🎯

AI-powered YouTube title & thumbnail optimization β€” maximize your CTR before every upload.

MIT License Node.js TypeScript React PRs Welcome

Features Β· Tech Stack Β· Getting Started Β· Deployment Β· Pricing


πŸš€ What is TitleIQ?

TitleIQ helps YouTube creators stop guessing and start optimizing. Paste your video title and thumbnail β€” and in seconds you get an AI-powered breakdown of your Click-Through Rate potential, with actionable rewrites and real competitor simulations.


✨ Features

πŸ†“ Free Tier

Feature Description
Live CTR Score Analyzer Instantly scores your title across 4 dimensions: Curiosity Gap, Keyword Strength, Emotional Pull, and Title Length
Thumbnail Analyzer AI vision analysis for text readability, face impact, color contrast, and clutter score
Analysis History View and revisit all your past title and thumbnail analyses
A/B Compare Side-by-side comparison of two past analyses to identify the stronger performer

⚑ Pro Tier

Feature Description
Keyword Gap Fixer Identifies missing high-value keywords and auto-rewrites your title to include them
CTR Simulator Places your title against 4 real competitor titles in a simulated YouTube feed and predicts viewer click behavior
Unlimited Analyses No daily cap β€” analyze as many titles as you need

πŸ›  Tech Stack

Layer Technology
Frontend React 18, TypeScript, Vite, Tailwind CSS
Backend Node.js, Express, TypeScript
Database Neon (PostgreSQL)
AI Groq β€” Llama 3.3 70B + Llama Vision
Payments Razorpay
Email Resend
Security Helmet, JWT, HttpOnly Cookies

πŸ“ Project Structure

TitleIQ/
β”œβ”€β”€ client/                  # React frontend (Vite)
β”œβ”€β”€ server/
β”‚   └── src/
β”‚       β”œβ”€β”€ routes/          # API route handlers
β”‚       β”œβ”€β”€ services/        # AI, auth, and email services
β”‚       β”œβ”€β”€ middleware/      # Auth, rate limiting, error handling
β”‚       β”œβ”€β”€ prompts/         # AI prompt builders
β”‚       β”œβ”€β”€ db/              # Database client & schema
β”‚       └── data/            # Static competitor title data
β”œβ”€β”€ shared/                  # Shared TypeScript types (client + server)
└── .env                     # Environment variables β€” never commit this!

🏁 Getting Started

Prerequisites

  • Node.js 18+
  • Neon PostgreSQL database
  • Groq API key
  • Resend API key
  • Razorpay account (test keys work for local dev)

1. Clone & Install

git clone https://github.com/Gaurav77Kumar/TitleIQ.git
cd TitleIQ
npm install        # installs dependencies for all workspaces

2. Configure Environment Variables

Create a .env file in the root directory:

# ── AI ─────────────────────────────────────────
GROQ_API_KEY=your_groq_api_key

# ── Database ────────────────────────────────────
DATABASE_URL=your_neon_postgresql_url

# ── Authentication ──────────────────────────────
JWT_SECRET=your_strong_secret_key          # min 32 characters recommended

# ── Email ───────────────────────────────────────
RESEND_API_KEY=your_resend_api_key

# ── Payments ────────────────────────────────────
RAZORPAY_KEY_ID=your_razorpay_key_id
RAZORPAY_KEY_SECRET=your_razorpay_secret
VITE_RAZORPAY_KEY_ID=your_razorpay_key_id  # exposed to the frontend via Vite



# ── Server ──────────────────────────────────────
PORT=3000
NODE_ENV=development

⚠️ Never commit .env to version control. It's already in .gitignore.

3. Run Database Migrations

cd server
npx tsx src/db/migrate.ts

4. Start Development Servers

# Backend  (runs on http://localhost:3000)
cd server && npm run dev

# Frontend (runs on http://localhost:5173, proxies API β†’ :3000)
cd client && npm run dev

☁️ Deployment

Backend β†’ Railway

Setting Value
Root directory server
Build command npm run build
Start command node dist/index.js

After deploy, set the CLIENT_URL environment variable in Railway to your Vercel frontend URL.

Frontend β†’ Vercel

Setting Value
Root directory client
Framework preset Vite

Add all VITE_* environment variables in the Vercel dashboard.


πŸ’³ Pricing

Plan Price Analyses Features
Free β‚Ή0/mo 10/day CTR Analyzer, Thumbnail Analyzer, History, A/B Compare
Pro β‚Ή99/mo Unlimited Everything in Free + Keyword Gap Fixer + CTR Simulator

πŸ” Security

  • Passwordless login via Email OTP (no passwords stored)
  • Auth tokens stored in HttpOnly Cookies (XSS-safe)
  • Helmet.js for HTTP security headers
  • Rate limiting on all API routes
  • JWT-signed sessions

🀝 Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you'd like to change.

# Fork the repo, then:
git checkout -b feature/your-feature-name
git commit -m "feat: add your feature"
git push origin feature/your-feature-name
# Open a Pull Request

πŸ“„ License

MIT Β© 2025 TitleIQ

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages