A high-performance, production-grade AI SaaS platform designed for modern creative workflows. This application serves as a comprehensive dashboard integrating multiple AI models into a single, unified interface with subscription-based access and secure authentication.
- Framework: Next.js 14+ (App Router, Server Actions)
- Styling: Tailwind CSS & Shadcn/UI (Industrial Technical Aesthetic)
- Auth: Clerk (Secure User Management & Social Auth)
- Database: PostgreSQL via Prisma ORM
- Payments: Stripe (Subscription Management & Webhooks)
- AI Engines: OpenAI API (GPT-4), Replicate API (Llama, Stable Diffusion)
- Multi-Modal Generation: - 💬 Conversation: Advanced chat interface with streaming responses.
- 🎨 Image Generation: Text-to-image synthesis using high-fidelity models.
- 🎵 Music & Video: Programmatic media generation from text prompts.
- 💻 Code Assistant: Context-aware programming support with markdown formatting.
- Subscription Lifecycle: Integrated Stripe billing portal with tiered access (Free vs. Pro).
- API Limitation: Smart server-side logic to track user usage and enforce trial limits.
- Responsive Dashboard: A mobile-first, sidebar-driven UI built for professional productivity.
The platform is architected for "System Integrity," utilizing monospaced metadata and a clean, technical UI to ensure users feel the precision of the underlying AI.
- Node.js 18.x or later
- A PostgreSQL instance (e.g., Aiven, Supabase, or local)
- API Keys for Clerk, Stripe, OpenAI, and Replicate
- Clone the repository:
- Install dependencies:
Bash npm install
Configure Environment Variables: Create a .env file in the root and add your keys (see .env.example).
Initialize Database: Bash npx prisma db push
Run the development server:
Bash npm run dev
License This project is licensed under the MIT License - see the LICENSE file for details.
Developed with focus on Scalability and Performance by Paul Nyoike.
git clone https://github.com/nyoikepaul/ai-saas-app.git cd ai-saas-app