AI-Powered Micro App Platform — Generate, customize, and run intelligent micro-applications using natural language.
SuperApp is a modern SaaS platform that enables users to create custom micro-applications through conversational AI. Simply describe what you want, and SuperApp generates fully functional apps with UI, logic, and data storage capabilities.
- 🤖 AI-Powered App Generation — Create apps from natural language prompts
- 💬 Conversational Builder — Iterate and refine apps through chat
- 🎨 Dynamic UI Rendering — Beautiful, responsive app interfaces
- 📊 Built-in Data Storage — Flexible JSON storage for app data
- 🔐 OAuth Authentication — Google SSO + email/password login
- 🔌 Multi-Provider AI — Support for OpenAI, Google Gemini, Anthropic, Mistral, Groq, and DeepSeek
- 📱 Responsive Design — Works on desktop and mobile
- 🌙 Dark/Light Mode — Beautiful theme support
| Category | Technology |
|---|---|
| Framework | Next.js 16 (App Router) |
| Frontend | React 19, TypeScript 5 |
| Styling | TailwindCSS 4, Framer Motion |
| Database | PostgreSQL + Prisma ORM |
| Auth | NextAuth.js (OAuth + Credentials) |
| AI | Vercel AI SDK with multi-provider support |
| State | Zustand |
| Validation | Zod |
src/
├── app/ # Next.js App Router
│ ├── (auth)/ # Authentication pages (login, signup)
│ ├── (dashboard)/ # Dashboard pages
│ ├── api/ # API routes
│ ├── builder/ # App builder interface
│ └── run/ # App execution runtime
├── components/ # React components
│ ├── ui/ # Reusable UI components
│ ├── builder/ # Builder-specific components
│ ├── providers/ # Context providers
│ └── settings/ # Settings dialog components
├── lib/ # Core libraries
│ ├── ai/ # AI provider integrations
│ ├── auth/ # Authentication utilities
│ ├── db/ # Database client
│ ├── engine/ # App execution engine
│ └── utils/ # Helper utilities
├── stores/ # Zustand state stores
├── schemas/ # Zod validation schemas
└── types/ # TypeScript type definitions
- Node.js 18+
- PostgreSQL database (local or cloud)
- AI provider API key (Google Gemini, OpenAI, etc.)
-
Clone the repository
git clone <repository-url> cd spt_project_code_01
-
Install dependencies
npm install
-
Configure environment variables
cp .env.example .env
Edit
.envwith your credentials:# Database DATABASE_URL="postgresql://user:password@localhost:5432/superapp" # NextAuth NEXTAUTH_URL="http://localhost:3000" NEXTAUTH_SECRET="your-secret-key" # AI Provider (at least one required) GOOGLE_GENERATIVE_AI_API_KEY="your-gemini-key" # OAuth (optional) GOOGLE_CLIENT_ID="your-client-id" GOOGLE_CLIENT_SECRET="your-client-secret" # API Key Encryption API_KEY_ENCRYPTION_SECRET="your-32-byte-hex-key"
-
Set up the database
npm run db:generate npm run db:push
-
Start the development server
npm run dev
-
Open your browser
Navigate to http://localhost:3000
For local PostgreSQL development:
docker-compose up -d| Script | Description |
|---|---|
npm run dev |
Start development server |
npm run build |
Build for production |
npm run start |
Start production server |
npm run lint |
Run ESLint |
npm run db:generate |
Generate Prisma client |
npm run db:push |
Push schema to database |
npm run db:migrate |
Run database migrations |
npm run db:studio |
Open Prisma Studio |
Key models:
- User — User accounts with OAuth support
- App — AI-generated applications with config and code
- AppConversation — Chat history for app creation
- AppData — Flexible JSON storage for app data
- ApiKey — User's LLM provider API keys
- ConnectorTemplate — Integration templates (Gmail, Notion, etc.)
Configure your preferred AI provider by adding API keys in Settings:
| Provider | Model Examples |
|---|---|
| Gemini 2.0, Gemini Pro | |
| OpenAI | GPT-4o, GPT-4 Turbo |
| Anthropic | Claude 3.5, Claude 3 |
| Mistral | Mistral Large, Mistral Medium |
| Groq | Llama 3, Mixtral |
| DeepSeek | DeepSeek Chat |
For detailed guides and documentation, see:
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is private and proprietary.
Built with ❤️ using Next.js, React, and the power of AI.