FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

CiphersLab/SaaSPilot: ๐Ÿš€ SaaSPilot - The most AI-coding-agent-friendly SaaS boilerplate for Next.js. Build faster with 120KB of AI-optimized docs, credit-based billing, and production-ready patterns. Perfect for AI SaaS apps! ยท GitHub

Latest commit

ย 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ SaaSPilot - AI-Ready SaaS Starter Kit

The Most AI-Coding-Agent-Friendly SaaS Boilerplate for Next.js

Quick Start โ€ข AI Ready โ€ข Features โ€ข Tech Stack โ€ข Documentation


SaaSPilot is a production-ready, full-stack SaaS boilerplate for Next.js - crafted with great attention to both front-end and back-end functionality. Built with developer experience in mind, it comes with all essential integrations and features, plus comprehensive AI-agent documentation for seamless AI-assisted development.

Perfect for launching AI SaaS applications with credit-based billing! ๐ŸŽฏ


โœจ What's New: AI-Coding-Agent Optimized! ๐Ÿค–

SaaSPilot now includes 120KB of comprehensive documentation specifically designed for AI coding assistants:

  • ๐Ÿ“š 13 documentation files covering every aspect
  • ๐ŸŽฏ 3 ready-to-use prompt templates for common tasks
  • ๐Ÿ” Pattern-based code examples for consistency
  • ๐Ÿ›ก๏ธ Security-first patterns built-in
  • โšก 5-minute codebase understanding for AI agents

AI agents (Claude, Cursor, GitHub Copilot) can now understand and modify the codebase autonomously!


๐Ÿš€ Quick Start

# 1. Clone the repository
git clone https://github.com/your-repo/saaspilot.git
cd saaspilot

# 2. Install dependencies
npm install

# 3. Set up environment variables
cp .env.example .env.local
# Edit .env.local with your credentials

# 4. Set up the database
npx prisma generate
npx prisma db push

# 5. Run the development server
npm run dev

Visit http://localhost:3000 ๐ŸŽ‰

For AI Agents

๐Ÿ‘‰ Start here: CLAUDE.md - Complete guide for AI coding assistants


๐Ÿค– AI Coding Agent Ready

SaaSPilot is optimized for AI-assisted development with comprehensive documentation designed specifically for AI assistants like Claude, Cursor, and GitHub Copilot.

๐Ÿ“š Documentation Structure

/
โ”œโ”€โ”€ CLAUDE.md                        โ†’ Quick start for AI agents
โ”œโ”€โ”€ /docs/                           โ†’ Comprehensive technical docs
โ”‚   โ”œโ”€โ”€ ai-instructions.md          โ†’ Core instructions & conventions โญ
โ”‚   โ”œโ”€โ”€ architecture.md             โ†’ System architecture & diagrams
โ”‚   โ”œโ”€โ”€ coding-patterns.md          โ†’ Standard patterns & best practices
โ”‚   โ”œโ”€โ”€ database-schema.md          โ†’ Complete schema reference
โ”‚   โ”œโ”€โ”€ component-map.md            โ†’ Component relationships
โ”‚   โ”œโ”€โ”€ api-documentation.md        โ†’ API reference & server actions
โ”‚   โ””โ”€โ”€ troubleshooting.md          โ†’ Common issues & solutions
โ””โ”€โ”€ /prompts/                        โ†’ Task templates for AI agents
    โ”œโ”€โ”€ add-new-feature.md          โ†’ Feature addition template
    โ”œโ”€โ”€ create-api-endpoint.md      โ†’ API endpoint template
    โ””โ”€โ”€ modify-database-schema.md   โ†’ Schema modification guide

๐ŸŽฏ What AI Agents Can Do

With this documentation, AI coding agents can:

โœ… Understand the codebase structure in < 5 minutes โœ… Add new features following established patterns โœ… Create API endpoints without breaking conventions โœ… Modify database schema safely โœ… Navigate components and understand relationships โœ… Troubleshoot issues independently โœ… Generate consistent, production-ready code

๐Ÿš€ Getting Started with AI Agents

For Claude/Cursor/Copilot:

  1. Read CLAUDE.md for quick context
  2. Review docs/ai-instructions.md for conventions
  3. Reference docs/coding-patterns.md when writing code
  4. Use templates in /prompts for specific tasks

Example AI Prompt:

"Add a new task management feature to SaaSPilot following the patterns
in /docs/coding-patterns.md and using the template in /prompts/add-new-feature.md"

๐ŸŽ› Tech Stack

Frontend:

  • โš›๏ธ React 18 - UI library
  • ๐Ÿ”ท Next.js 14 - Full-stack framework (App Router)
  • ๐Ÿ“˜ TypeScript - Type safety
  • ๐ŸŽจ Tailwind CSS - Styling
  • ๐Ÿงฉ Shadcn/ui - Component library

Backend:

  • ๐Ÿ” NextAuth.js v5 - Authentication
  • ๐Ÿ—„๏ธ Prisma ORM - Database toolkit
  • ๐Ÿƒ MongoDB - Database
  • ๐Ÿ’ณ Stripe - Payments (credit-based)
  • ๐Ÿ“ง Resend/SendGrid - Email service

Developer Experience:

  • โœ… TypeScript - Full type safety
  • ๐Ÿ“ฆ Zod - Schema validation
  • ๐ŸŽฃ React Hook Form - Form management
  • ๐ŸŒ next-intl - Internationalization
  • ๐ŸŽญ Framer Motion - Animations

โšก Features

๐Ÿค– AI-Ready Documentation

  • Comprehensive guides for AI coding agents
  • Pattern-based development with code examples
  • Ready-to-use prompt templates for common tasks
  • 5-minute onboarding for AI assistants

๐Ÿ’ณ Payments & Credits System

  • Stripe integration for credit purchases
  • Credit-based billing (perfect for AI SaaS)
  • Purchase history tracking
  • Webhook handling for payment events
  • 3 pricing tiers (Free, Starter, Pro)

๐Ÿ”’ Authentication

  • Email/Password authentication with bcrypt
  • Social login (Google, GitHub OAuth)
  • Email verification system
  • Password reset functionality
  • Two-factor authentication (2FA) support
  • Role-based access (User/Admin)

๐Ÿ“ง Email System

  • Transactional emails via Resend or SendGrid
  • React email templates for beautiful emails
  • Verification emails
  • Password reset emails
  • Purchase confirmation emails

๐Ÿ› ๏ธ Database

  • MongoDB with Prisma ORM
  • 8 production-ready models
  • Type-safe queries
  • Easy schema migrations
  • Optimized relationships

๐Ÿ‘ค User Dashboard

  • Credit balance display
  • Purchase history
  • Account settings
  • Profile management
  • Email/username change

๐ŸŒ Internationalization

  • Multi-language support (English, German, Arabic)
  • RTL/LTR support automatic detection
  • Translation management
  • Locale switching

๐ŸŽจ UI Components

  • 20+ Shadcn/ui components included
  • Responsive design (mobile-first)
  • Dark mode support with next-themes
  • Accessible components (Radix UI)
  • Landing page templates
  • Marketing pages (About, Contact, Pricing)

๐Ÿ‘ฉโ€๐Ÿ’ผ Admin Features

  • Admin role detection via environment variable
  • Admin-only API endpoints
  • User management (Pro version)
  • Analytics dashboard (Pro version)

๐Ÿ“œ Documentation

Official Docs

๐Ÿ“– Full Documentation: https://cipherslab.gitbook.io/saas-pilot-docs

AI-Ready Docs (New!)

Start with these for AI-assisted development:

Document Purpose Size
CLAUDE.md Quick start for AI agents 8 KB
docs/ai-instructions.md Core instructions & conventions 6 KB
docs/architecture.md System architecture 8 KB
docs/coding-patterns.md Standard code patterns 10 KB
docs/database-schema.md Database reference 10 KB
docs/component-map.md Component relationships 11 KB
docs/api-documentation.md API reference 6 KB
docs/troubleshooting.md Common issues 7 KB

๐Ÿ“ View all documentation


๐Ÿ’ป Demo

๐ŸŽฌ Live Demo (Pro version): https://saas-pilot-demo.vercel.app/

๐ŸŒ Website: https://saas-pilot.vercel.app

๐Ÿ”ฅ Pricing & FAQ: https://saas-pilot.vercel.app/#pricing

Note: Certain features are disabled in the free version or can't be included in the public repo.


๐Ÿ†š Free vs Pro Comparison

Feature Free Pro
User Dashboard โœ… โœ…
Full Authentication (Email + OAuth) โœ… โœ…
User Profile Management โœ… โœ…
Landing & Pricing Pages โœ… Single โœ… Multiple
Marketing Pages (About, Contact) โœ… โœ…
Multi-Language Support (i18n) โœ… โœ…
Stripe Credit Purchases โœ… โœ…
Stripe Subscriptions โŒ โœ…
Admin Dashboard โŒ โœ…
Fully Featured Blog โŒ โœ…
Event-Based Analytics โŒ โœ…
AI-Ready Documentation โœ… โœ…

๐Ÿ—‚๏ธ Project Structure

saaspilot/
โ”œโ”€โ”€ app/                          # Next.js App Router
โ”‚   โ”œโ”€โ”€ (marketing)/             # Public pages
โ”‚   โ”œโ”€โ”€ (protected)/             # Auth-required pages
โ”‚   โ”œโ”€โ”€ auth/                    # Authentication pages
โ”‚   โ””โ”€โ”€ api/                     # API routes & webhooks
โ”œโ”€โ”€ components/                   # React components
โ”‚   โ”œโ”€โ”€ ui/                      # Shadcn/ui components
โ”‚   โ”œโ”€โ”€ auth/                    # Auth components
โ”‚   โ””โ”€โ”€ Common/                  # Shared components
โ”œโ”€โ”€ actions/                      # Server actions
โ”œโ”€โ”€ lib/                         # Utilities & services
โ”œโ”€โ”€ prisma/                      # Database schema
โ”œโ”€โ”€ docs/                        # AI-ready documentation โญ
โ”œโ”€โ”€ prompts/                     # AI prompt templates โญ
โ”œโ”€โ”€ hooks/                       # React hooks
โ”œโ”€โ”€ types/                       # TypeScript types
โ”œโ”€โ”€ schemas/                     # Zod validation schemas
โ”œโ”€โ”€ translations/                # i18n translations
โ””โ”€โ”€ config/                      # Configuration files

๐Ÿ› ๏ธ Development

Available Scripts

# Development
npm run dev              # Start dev server (http://localhost:3000)
npm run build           # Create production build
npm run start           # Start production server

# Database
npx prisma studio       # Open Prisma Studio (visual database)
npx prisma generate     # Regenerate Prisma client
npx prisma db push      # Push schema changes to database
npx prisma migrate dev  # Create and apply migration

# Code Quality
npm run lint            # Run ESLint
npm run type-check      # TypeScript type checking

Environment Variables

Copy .env.example to .env.local and configure:

# Database
DATABASE_URL="mongodb://..."

# Authentication
NEXTAUTH_SECRET="your-secret"
NEXTAUTH_URL="http://localhost:3000"

# OAuth Providers
GITHUB_CLIENT_ID="..."
GITHUB_CLIENT_SECRET="..."
GOOGLE_CLIENT_ID="..."
GOOGLE_CLIENT_SECRET="..."

# Stripe
STRIPE_SECRET_KEY="sk_test_..."
STRIPE_WEBHOOK_SECRET="whsec_..."

# Email
RESEND_API_KEY="re_..."

# App Configuration
NEXT_PUBLIC_APP_URL="http://localhost:3000"
ADMIN_EMAILS="admin@example.com"
INITIAL_CREDITS_FOR_NEW="20"

๐ŸŽฏ Use Cases

Perfect for building:

  • ๐Ÿค– AI SaaS Applications (ChatGPT-style apps, AI tools)
  • ๐Ÿ’ผ B2B SaaS Platforms
  • ๐Ÿ“Š Analytics Dashboards
  • ๐ŸŽจ Creative Tools
  • ๐Ÿ“ Content Management Systems
  • ๐Ÿ”ง Developer Tools
  • ๐Ÿ“ฑ Mobile-First Web Apps

The credit-based billing system is especially suited for AI/ML applications with usage-based pricing.


๐Ÿš€ Deployment

Vercel (Recommended)

  1. Push your code to GitHub
  2. Import project in Vercel
  3. Add environment variables
  4. Deploy! โœจ

Other Platforms

SaaSPilot works on any platform supporting Node.js:

  • Railway
  • Render
  • DigitalOcean App Platform
  • AWS (Amplify, ECS)
  • Google Cloud Run

๐ŸŽ“ Learning Resources

Documentation

SaaSPilot Specific


๐Ÿค Contributing

Contributions are welcome! Here's how:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Contribution Guidelines

  • Follow the established coding patterns (see docs/coding-patterns.md)
  • Add tests for new features
  • Update documentation
  • Keep commits clean and descriptive

๐Ÿ› Issues & Support


๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


โญ Show Your Support

If you find SaaSPilot helpful:

  • โญ Star this repository to show your support
  • ๐Ÿฆ Tweet about it and tag us
  • ๐Ÿ“ Write a blog post about your experience
  • ๐ŸŽฅ Create a video tutorial
  • ๐Ÿ’ฌ Share with your network

Every star helps! ๐ŸŒŸ


๐ŸŽ‰ Credits

Built with โค๏ธ by the SaaSPilot team

Special Thanks:

  • Next.js team for the amazing framework
  • Vercel for hosting and deployment
  • Shadcn for the beautiful components
  • The open-source community

๐Ÿ”— Links


Built for developers, optimized for AI agents ๐Ÿค–

Get Started โ€ข AI Guide โ€ข Documentation

Made with โค๏ธ for the developer community

About

๐Ÿš€ SaaSPilot - The most AI-coding-agent-friendly SaaS boilerplate for Next.js. Build faster with 120KB of AI-optimized docs, credit-based billing, and production-ready patterns. Perfect for AI SaaS apps!

Topics

Resources

Stars

12 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages


Back | FazBrowse Home | New Git URL