Skip to content

abhijitradhakrishnan/Thumblify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎨 Thumblify – AI Thumbnail Generator

Thumblify is a full-stack AI-powered web application that generates YouTube-style thumbnails from text prompts.

Users can log in, describe their idea, and instantly generate thumbnails using AI. Generated images are stored in the cloud and can be accessed later from the user dashboard.

This project demonstrates a real-world MERN architecture with AI integration, authentication, session management, and cloud image storage.

πŸ”— Live Demo (Frontend): https://thumblify-olive-chi.vercel.app


πŸ“Œ Table of Contents


Project Overview

Thumblify allows creators to generate professional thumbnails for YouTube videos using AI.

Users can:

  • Enter prompts
  • Choose styles
  • Select aspect ratios
  • Generate thumbnails instantly

The system stores generated thumbnails in the database and allows users to manage their generated images.


πŸš€ Features

πŸ‘€ User Features

  • πŸ” User Authentication

  • 🎨 AI Thumbnail Generation

  • ✏️ Prompt-based image generation

  • πŸ“ Aspect ratio selection

    • 16:9 (YouTube)
    • 1:1
    • 9:16 (Shorts / Reels)
  • 🎭 Thumbnail style options

  • 🌈 Color scheme customization

  • πŸ–Ό Preview generated thumbnails

  • πŸ“‚ View generation history

  • ⬇ Download thumbnails


βš™οΈ System Features

  • ☁️ Cloudinary image storage
  • πŸ€– AI image generation using Cloudflare Workers AI
  • πŸ” Session-based authentication
  • πŸ—‚ MongoDB database storage
  • ⚑ Async thumbnail generation tracking
  • 🌐 Production-ready CORS configuration

🧰 Tech Stack

Frontend

  • React
  • TypeScript
  • Vite
  • Tailwind CSS
  • React Router
  • Axios
  • React Hot Toast

Backend

  • Node.js
  • Express.js
  • TypeScript
  • MongoDB
  • Mongoose
  • Express Session
  • Connect Mongo

AI & Cloud Services

  • Cloudflare Workers AI
  • Cloudinary

Deployment

  • Vercel (Frontend)
  • MongoDB Atlas (Database)

πŸ—οΈ System Architecture

React (Frontend)
        ↓ Axios
Express API (Backend)
        ↓
MongoDB (Database)
        ↓
Cloudflare Workers AI
        ↓
Generated Image
        ↓
Cloudinary (Image Storage)

πŸ“Έ Screenshots

Generate Thumbnail Page

Generate Page

Generated Thumbnail Preview

Preview 1

Preview 2

My Generations Dashboard

My Generations


πŸ€– AI Generation Flow

User Prompt
     ↓
Frontend sends request
     ↓
Backend API
     ↓
Cloudflare Workers AI
     ↓
Image Generated
     ↓
Upload to Cloudinary
     ↓
Save metadata in MongoDB
     ↓
Return image URL to user

πŸ”‘ Environment Variables

Backend (.env)

MONGODB_URI=
SESSION_SECRET=

CLOUDFLARE_ACCOUNT_ID=
CLOUDFLARE_API_TOKEN=

CLOUDINARY_CLOUD_NAME=
CLOUDINARY_API_KEY=
CLOUDINARY_API_SECRET=

πŸ“¦ Folder Structure

Thumblify
β”‚
β”œβ”€β”€ client/                 # React Frontend
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ context/
β”‚   β”‚   β”œβ”€β”€ configs/
β”‚   β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   └── App.tsx
β”‚
└── server/                 # Express Backend
    β”œβ”€β”€ configs/
    β”œβ”€β”€ controllers/
    β”œβ”€β”€ middleware/
    β”œβ”€β”€ models/
    β”œβ”€β”€ routes/
    β”œβ”€β”€ services/
    β”‚   └── providers/
    └── server.ts

πŸ§ͺ API Endpoints

Auth

Method Endpoint Description
POST /api/auth/register Register user
POST /api/auth/login Login user
GET /api/auth/logout Logout user

Thumbnail

Method Endpoint Description
POST /api/thumbnail/generate Generate AI thumbnail
GET /api/thumbnail/my Get user thumbnails
DELETE /api/thumbnail/:id Delete thumbnail

User

Method Endpoint Description
GET /api/user/profile Get user profile

πŸ› οΈ Installation & Setup

Clone repository

git clone https://github.com/abhijitradhakrishnan/Thumblify.git
cd Thumblify

Install dependencies

Frontend

cd client
npm install

Backend

cd ../server
npm install

Run the project

Backend

npm run dev

Frontend

cd client
npm run dev

πŸš€ Future Enhancements

AI Improvements

  • More thumbnail styles
  • Prompt suggestions
  • AI text overlays

Product Features

  • User credit system
  • Thumbnail templates
  • Public gallery
  • Image editing tools

Performance

  • Background generation queue
  • Redis caching
  • Rate limiting

πŸ‘¨β€πŸ’» Author & Contact

Abhijit Peringadan

MERN Stack Developer

πŸ“§ Email: peringadanabhijit@gmail.com
πŸ”— LinkedIn
πŸ”— Portfolio


About

AI-powered thumbnail generator for creators. Generate high-CTR thumbnails using modern design + AI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages