Skip to content

Open-source full-stack AI image generation platform built with Next.js, Supabase, and Stripe. Features structured prompt building, credit system, PWA support, and a polished dark-mode UI.

License

Notifications You must be signed in to change notification settings

tenngoxars/Imago

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Imago

中文 | English

License Next.js Supabase

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.

Imago Preview

Key Features

  • 🎨 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.

Tech Stack

  • 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

Quick Start

1. Clone the Project

git clone https://github.com/tenngoxars/imago.git
cd imago

2. Install Dependencies

npm install

3. Environment Configuration

Copy .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.local

4. Start Development Server

npm run dev

Visit http://localhost:3000 to see the application.

Documentation

  • 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.

Contributing

Welcome to submit Pull Requests or Issues! Please read our Contributing Guide.

License

MIT License

About

Open-source full-stack AI image generation platform built with Next.js, Supabase, and Stripe. Features structured prompt building, credit system, PWA support, and a polished dark-mode UI.

Topics

Resources

License

Stars

Watchers

Forks