Transform complex AI concepts into viral, educational Instagram carousels
Features · Quick Start · Architecture · Usage
saqlaindigu AI Carousel Engine is an AI-powered content creation platform that transforms complex AI topics into professionally designed Instagram carousels.
Using a sophisticated 4-agent AI pipeline, it researches, scripts, designs, and renders high-quality visual content—all automatically.
Style Inspiration: 3Blue1Brown-style deep dives meets Varun Mayya-style AI news. Educational content that makes complex AI concepts click.
|
AI-generated viral topics across 5 content categories:
Custom Input Support:
|
|
|
|
|
|
|
|
Node.js v18+
Gemini API Key (from Google AI Studio)
Supabase Project (optional, for cloud sync)
# Clone the repository
git clone <repo-url>
cd insightmatrix-ai-carousel-creator
# Install dependencies
npm install
# Configure environment
cp .env.example .env.local# Required
GEMINI_API_KEY=your_gemini_api_key
# Optional (for cloud sync)
VITE_SUPABASE_URL=your_supabase_url
VITE_SUPABASE_ANON_KEY=your_supabase_anon_keynpm run devOpen http://localhost:5173 in your browser.
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ │ │ │ │ │ │ │
│ 💡 IDEAS │ → │ 🔬 RESEARCH │ → │ ✍️ SCRIPT │ → │ 🎨 DESIGN │
│ │ │ │ │ │ │ │
│ Gemini Flash │ │ Gemini Pro + │ │ Gemini Pro │ │ Gemini Pro + │
│ │ │ Google Search │ │ │ │ Image Models │
│ │ │ │ │ │ │ │
└─────────────────┘ └─────────────────┘ └─────────────────┘ └─────────────────┘
| Agent | Model | Responsibility |
|---|---|---|
| Idea Engine | Gemini 2.5 Flash | Generate viral topics with educational hooks, avoid repetition |
| Research Engine | Gemini 3 Pro + Google Search | Deep analysis with real-time grounding, source verification |
| Script Engine | Gemini 3 Pro | Create narrative arc with layout mode selection |
| Design Engine | Gemini 3 Pro + Image | Visual direction & high-res image generation |
📦 saqlaindigu-ai-carousel-engine
├── 📄 App.tsx # Main app & routing
├── 📁 components/
│ ├── Step1_Ideas.tsx # Idea selection UI with custom input
│ ├── ProcessingView.tsx # Pipeline visualization with SSE streaming
│ ├── FinalGallery.tsx # Carousel viewer, export (ZIP/PDF), regeneration
│ ├── GalleryView.tsx # Saved carousels with delete confirmation
│ ├── TestLab.tsx # Debug & testing with JSON injection
│ ├── PromptInspector.tsx # Agent prompt viewer
│ ├── SlideLayout.tsx # Slide renderer with layout modes
│ ├── AuthModal.tsx # Authentication
│ ├── UserMenu.tsx # Account menu
│ └── ErrorBoundary.tsx # Error handling
├── 📁 services/
│ ├── geminiService.ts # AI orchestration
│ ├── supabase.ts # Supabase client
│ ├── supabaseService.ts # Auth & cloud storage
│ └── storage.ts # IndexedDB layer
├── 📄 prompts.ts # AI system prompts
├── 📄 types.ts # TypeScript interfaces
└── 📄 goldenData.ts # Test scenarios
|
1️⃣ Select Topic Browse AI ideas, filter by category, or enter custom input (URL/script/topic) |
2️⃣ Configure Choose aspect ratio (1:1, 3:4, 9:16) - slide count is AI-determined |
3️⃣ Generate Watch 4-phase AI pipeline with live progress & streaming slides |
4️⃣ Export Download ZIP/PDF, single slides, or copy captions |
Access via the Lab button in the navigation for:
- Direct JSON script injection
- Pre-loaded golden scenarios
- Quick script generation from topic
- Real-time rendering preview
- Rapid prototyping and debugging
View all agent system prompts:
- Idea Generator prompt
- Research Agent prompt
- Fact Agent prompt
- Script Agent prompt
- Script Editor prompt
- Design Agent prompt
Copy prompts for customization or analysis.
Sign in to enable:
- Cross-device access
- Image hosting with automatic upload
- Carousel cloud storage
- Background job processing (close tab, continue generating)
- Resume interrupted jobs automatically
In the Final Gallery:
←/→- Navigate between slides↑/↓- Navigate between slidesHome- Jump to first slideEnd- Jump to last slide
- ZIP Download - All slides as individual PNG files (1080px base)
- PDF Export - Complete carousel as multi-page PDF
- Single Slide - Download current slide with text overlay
- Regenerate Image - Regenerate individual slide images
- Copy Caption - Copy Instagram caption with hashtags
|
AI Purple
|
Slate Dark
|
Tech Cyan
|
Electric Blue
|
Pink
|
Green
|
Font: Poppins
Weights: Regular (400) · Medium (500) · SemiBold (600) · Bold (700) · ExtraBold (800)
|
React 19 UI Framework |
TypeScript Type Safety |
Vite 6 Build Tool |
Gemini AI AI Engine |
Supabase Auth & DB |
Tailwind Styling |
| File | What to Customize |
|---|---|
prompts.ts |
AI behavior & personality |
Step1_Ideas.tsx |
Topic categories |
geminiService.ts |
Visual style tokens |
index.html |
Brand colors & fonts |
Built-in handling includes:
- Exponential backoff (5 retries)
- Auto-fallback to Flash models
- Graceful text-only degradation
- Job expiration detection (55-minute TTL)
- Automatic cleanup of expired jobs
- Jobs run on the server, not in the browser
- Close the tab - generation continues
- Resume prompts appear when returning
- Real-time progress via Server-Sent Events (SSE)
- Live slide previews stream in as they complete
- Polling fallback if SSE unavailable
This project is private. See repository settings for license details.
Built with ❤️ by saqlaindigu
saqlaindigu AI Carousel Engine © 2025