AI SaaS Boilerplate Documentation
Comprehensive guide for the serverless, all-in-one AI services platform built on AWS.
Welcome to AI SaaS Boilerplate
This documentation will guide you through setting up, deploying, and customizing your own AI services platform built on AWS serverless architecture.
What is AI SaaS Boilerplate?
AI SaaS Boilerplate is a production-ready starter kit for building an AI services platform with a credit-based subscription model. It provides a complete solution with frontend, backend, and infrastructure code that can be deployed with minimal configuration.
Key Features
Multiple AI Services
Pre-built AI services including OCR, image generation, PDF chat, YouTube video summarization, and more
Serverless Architecture
Highly scalable AWS Lambda and API Gateway infrastructure with pay-as-you-go pricing
Subscription & Payment
Fully integrated Stripe subscription management and payment processing
Credits System
Usage management through a flexible credits system for AI service consumption
Modern Frontend
Responsive UI built with Next.js 14+ and Tailwind CSS for an excellent user experience
Infrastructure as Code
AWS CDK for reliable, one-command deployment of the entire platform
Architecture Overview
The AI SaaS Boilerplate follows a modern, serverless architecture:
- Frontend: Server-Side Rendered (SSR) Next.js application deployed on AWS Amplify
- Backend Services: Python AWS Lambda functions with API Gateway and AppSync
- Authentication: AWS Cognito with Google OAuth integration
- Payments: Stripe integration for subscription and payment handling
- Storage: S3 buckets for file storage and DynamoDB for structured data
- Infrastructure: AWS CDK with Python for infrastructure as code
Deployment Roadmap
Here's the overall process for deploying your AI SaaS platform:
1. Prerequisites
Set up AWS account and install necessary development tools
2. Configuration
Configure AWS with CDK bootstrap and prepare basic environment variables
3. Core Deployment
Deploy the basic infrastructure using AWS CDK with placeholder values and verify that core components are working
4. Integration Setup
Configure Stripe for payments and Google OAuth for authentication, then update your deployment
5. Complete Verification
Test the complete platform including authentication, subscriptions, and AI services
Tech Stack
The AI SaaS Boilerplate uses the following technologies:
Frontend:
- Next.js 14+
- React
- Tailwind CSS
- AWS Amplify hosting
Backend:
- AWS Lambda (Python)
- Amazon API Gateway
- AWS AppSync
- AWS Cognito
- Amazon S3
- Amazon DynamoDB
- AWS Parameter Store (Secure String Parameter)
Infrastructure:
- AWS Cloud Development Kit (CDK)
- Python
External Services:
- Stripe for payment processing
- Google OAuth for authentication
- Various AI service providers
Getting Started
Ready to build your AI SaaS platform? Start with the Prerequisites section to ensure you have everything you need, or jump directly to Deployment if you're ready to launch.