中文 | English
Imago is an open-source full-stack AI image generation application architecture, designed for building high-performance, modern generative AI products.
Born from a mature commercial project, it provides a complete solution from User System, Credit Payment to Prompt Building, and Image/Video Generation.
The prompt module has been open-sourced separately as Imago Portrait Prompt.
- 🎨 Multi-Mode Capability: Supports three core modes: Fantasy (Styled Presets), Freeform (Open Canvas), and Flow (Video Generation).
- 🔐 Complete User System: Powered by Supabase Auth, supporting email and social logins.
- 💰 Credits & Payment: Integrated Stripe payment flow, including full recharge modal, webhook callbacks, and credit deduction logic.
- 🧠 Smart Prompting: Built-in complex prompt construction and cleaning logic (Humanizer), supporting autocomplete for preset words and negative prompts.
- ⚡️ High-Performance Architecture: Next.js App Router + Tailwind CSS + Supabase, optimized for production.
- 📱 Responsive Design: Polished experience for both mobile and desktop, with a premium dark mode UI.
- Frontend: Next.js 14+ (App Router), Tailwind CSS
- Backend/Database: Supabase (PostgreSQL, Auth, Edge Functions)
- Payment: Stripe
- State Management: React Hooks + URL State
- Types: 100% TypeScript Coverage
git clone https://github.com/tenngoxars/imago.git
cd imagonpm installCopy .env.local.example to .env.local and fill in the configuration. For detailed instructions, please refer to the Setup Guide.
cp .env.local.example .env.localnpm run devVisit http://localhost:3000 to see the application.
- Deploy Guide: Step-by-step instructions to deploy Imago to production.
- Setup Guide: Detailed instructions on configuring Supabase, Stripe, and R2 Storage.
- Architecture: Insights into Prompt flow, Payment callbacks, and Core data flow.
Welcome to submit Pull Requests or Issues! Please read our Contributing Guide.
