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.
Complete Video Walkthrough
📹 Visual companion to this documentation - Our video guide follows these exact instructions step-by-step, covering the entire process from start to finish. Use both together for the best experience.
This video covers all the steps you'll find in this documentation, providing a visual companion to the written instructions. You can watch the entire video first to understand the complete process, then follow along step-by-step using both the video and written guide.
Video Timestamps:
- 00:03 - Prerequisites Setup
- 08:28 - Configuration (AWS CDK Bootstrap)
- 15:24 - Core Deployment Process
- 17:05 - Verifying Core Deployment
- 19:37 - Third-Party Integrations (Stripe Setup)
- 28:15 - Google OAuth Setup
- 34:44 - AWS Bedrock Setup
- 36:48 - OpenAI API Setup
- 38:14 - YouTube API Setup
- 40:09 - Verification Testing
- 49:00 - Local Development Setup
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.