π ContentForge AI
Features β’ Tech Stack β’ Getting Started β’ Screenshots β’ API Routes
- Overview
- Features
- Tech Stack
- Getting Started
- Environment Variables
- Project Structure
- Key Features in Detail
ContentForge AI is a powerful AI Content Generation SaaS platform that leverages cutting-edge AI technology to help you create high-quality content effortlessly. Whether you need blog posts, social media content, product descriptions, or creative writing, our platform has you covered.
- β‘ Lightning Fast - Generate content in seconds, not hours
- π¨ Beautiful UI - Modern, responsive design with full dark mode support
- π Secure - Enterprise-grade authentication with Clerk
- π³ Flexible Billing - Pay-as-you-go with Razorpay integration
- π Smart Analytics - Track your usage and history with advanced filters
- π― Multiple Templates - 10+ pre-built templates for various content types
- 10+ AI Templates including:
- Blog Title Generator
- Blog Content Writer
- Instagram Post Generator
- YouTube Description Creator
- Code Generator
- And more!
- Real-time Preview with rich text editor
- Copy to Clipboard with formatting preservation
- Word Count Tracking
- π Dark Mode - Full theme support across all pages
- π± Responsive Design - Works seamlessly on all devices
- β‘ Collapsible Sidebar - Maximize your workspace
- π Advanced Search & Filters - Find content instantly
- π Pagination - Browse history efficiently
- Credit System - 10,000 free credits to start
- Monthly Plan - βΉ700/month ($9.99/month)
- Yearly Plan - βΉ7,000/year ($99/year) - Save 17%!
- Razorpay Integration - Secure payment processing
- Auto-renewal - Hassle-free subscription management
- Content History - Track all generated content
- Template Filter - Filter by content type
- Date Sorting - Newest or oldest first
- Search - Full-text search across all content
- Export - Copy any previous generation
- Clerk Authentication - Secure user management
- Protected Routes - API route protection
- Server-side Validation - Enhanced security
- Environment Variables - Sensitive data protection
- Next.js 15.3.3 - React framework with App Router
- React 18 - UI library
- TypeScript - Type safety
- Tailwind CSS v4 - Utility-first CSS
- Shadcn/ui - Beautiful UI components
- Lucide Icons - Modern icon library
- Toast UI Editor - Rich text editor
- next-themes - Theme management
- Drizzle ORM - TypeScript ORM
- PostgreSQL - Relational database (via Neon)
- Clerk - Authentication & user management
- Groq API - AI content generation
- Razorpay - Payment processing
- Node.js 18+ installed
- PostgreSQL database (we recommend Neon)
- Clerk account for authentication
- Razorpay account for payments
- Groq API key
-
Clone the repository
git clone https://github.com/yourusername/contentforge-ai.git cd contentforge-ai -
Install dependencies
npm install
-
Set up environment variables
Create a
.env.localfile in the root directory:cp .env.example .env.local
Fill in your credentials (see Environment Variables)
-
Set up the database
npm run db:push
-
Run the development server
npm run dev
-
Open your browser
Navigate to http://localhost:3000
π You're all set! Start generating amazing content.
Create a .env.local file with the following variables:
# Clerk Authentication
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_key
CLERK_SECRET_KEY=your_clerk_secret_key
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
# Database (Neon PostgreSQL)
NEXT_PUBLIC_DRIZZLE_DB_URL=your_postgres_connection_string
DRIZZLE_DB_URL=your_postgres_connection_string
# Groq API
GROQ_API_KEY=your_groq_api_key
# Razorpay Payment Gateway
NEXT_PUBLIC_RAZORPAY_KEY_ID=your_razorpay_key_id
RAZORPAY_SECRET_KEY=your_razorpay_secret_key
# Razorpay Plan IDs
NEXT_PUBLIC_MONTHLY_PLAN_ID=your_monthly_plan_id
NEXT_PUBLIC_YEARLY_PLAN_ID=your_yearly_plan_id| Service | URL | Purpose |
|---|---|---|
| Clerk | clerk.com | User authentication & management |
| Neon | neon.tech | PostgreSQL database hosting |
| Groq | groq.com | AI content generation API |
| Razorpay | razorpay.com | Payment processing |
contentforge-ai/
βββ app/
β βββ (auth)/ # Authentication pages
β β βββ sign-in/
β β βββ sign-up/
β βββ (context)/ # React contexts
β β βββ TotalUsageContext.tsx
β β βββ UpdateCreditUsageContext.tsx
β β βββ UserSubscriptionContext.tsx
β βββ (data)/ # Static data
β β βββ Templates.tsx
β βββ api/ # API routes
β β βββ check-subscription/
β β βββ create-subscription/
β β βββ get-history/
β β βββ get-total-usage/
β β βββ get-user-subscription/
β β βββ save-subscription/
β βββ dashboard/ # Main app pages
β β βββ _components/ # Dashboard components
β β β βββ Header.tsx
β β β βββ SideNav.tsx
β β β βββ SearchSection.tsx
β β β βββ TemplateCard.tsx
β β β βββ TemplateListSection.tsx
β β β βββ UsageTrack.tsx
β β βββ billing/ # Subscription management
β β βββ content/ # Content generation
β β β βββ [template-slug]/
β β βββ history/ # Generation history
β β βββ setting/ # User settings
β β βββ layout.tsx
β βββ actions.ts # Server actions
β βββ globals.css # Global styles
β βββ layout.tsx # Root layout
βββ components/
β βββ ui/ # Shadcn UI components
β βββ ModeToggle.tsx # Theme toggle
βββ utils/
β βββ db.tsx # Database connection
β βββ schema.tsx # Database schemas
βββ public/ # Static assets
βββ drizzle.config.js # Drizzle ORM config
βββ next.config.ts # Next.js config
βββ tailwind.config.ts # Tailwind config
βββ package.json
- Smooth 300ms animations
- Persisted state
- Dynamic content layout adjustment
- Tooltips when collapsed
- System preference detection
- Manual toggle
- Comprehensive theme support across all components
- Optimized color palette for readability
- Search: Full-text search across templates and content
- Filter: Filter by template type
- Sort: Newest first or oldest first
- Pagination: Adjustable rows per page (5, 10, 20, 50)
- Smart pagination: Shows relevant page numbers with ellipsis
Arnav Tiwari
- GitHub: @Arnav10090
- LinkedIn: Connect with me
Made with β€οΈ by Arnav Tiwari