SaaS Boilerplate

Build SaaS products faster
in React, Django and AWS

A complete SaaS starter kit based on a battle-tested stack with out-of-the-box features every SaaS should have. Supercharge your SaaS development and focus on innovation from day one.

$npm init saas-boilerplate NAME

replace NAME with your project name

Introduction to SaaS Boilerplate

Introduction to SaaS Boilerplate

Supercharge your SaaS development

Our comprehensive starter kit is designed to accelerate your project and save you valuable time and resources. Our battle-tested boilerplate eliminates the need for extensive configuration and development work, allowing you to focus on innovation from day one.

Complete Stack

Frontend, backend API, admin panel, and workers with a scalable AWS-based architecture and continuous deployment.

Ready-to-Use Features

Essential features every SaaS requires, eliminating weeks of setup and coding so you can focus on innovation.

Proven Stack

Battle-tested technologies with specific versions for optimal compatibility and reliability.

Multiple Environments

Easily deploy multiple environments representing different stages in your pipeline.

Getting started

Get up and running quickly with our CLI starter kit or manual setup

Requirements

  • Install Docker
  • Install Node.js version 20 or above (check with node -v)
  • Install pnpm version 9 or above (check with pnpm --version)
  • (Windows only) Install WSL 2

Optional:

  • • Python 3.11 and PDM 2.3+ (for running backend/workers outside Docker)
  • • Use nvm or n for managing multiple Node versions
  • • Use pyenv for managing multiple Python versions

Fresh Installation

Setup using CLI starter kit:

Run the following command in the directory where you would like to create a new project:

npm init saas-boilerplate NAMEpnpm create saas-boilerplate NAMEyarn create saas-boilerplate NAME

Replace NAME with your desired project directory name (e.g., my-saas-app). The target directory must be empty or non-existent!

Manual setup:

Clone the repository and follow the steps in the Getting started guide.

Run Existing Project

Install dependencies:

pnpm install

The project uses pnpm workspaces, so a single command installs node_modules for all packages.

Start the app:

pnpm saas uppnpm saas backend uppnpm saas webapp uppnpm saas docs up

What's Running Locally?

Web App:http://localhost:3000
Backend API:http://localhost:5001
Admin Panel:http://admin.localhost:5001
Mailcatcher:http://localhost:1080
Docs:http://localhost:3006
Workers:http://localhost:3005

Built on top of modern
and reliable tech_

Battle-tested technologies with specific versions for optimal compatibility

Front-end stack

React19.2.x
TypeScript5.4.x
GraphQL
Apollo Client4.x
React Router7.x
Vite6.x
tailwindcss3.4.x
shadcn/ui
jest
Storybook10.x

Tailwind CSS is the primary styling solution. Use Tailwind utility classes with the cn() helper for conditional styling. styled-components is included for internal theme infrastructure and email template rendering, but developers should use Tailwind CSS for all new component styling.

Back-end stack

Python3.11.x
Django5.2.x
Django REST Framework3.15.x
Graphene Django3.2.x
Celery5.4.x
Sentry SDK2.0.x
dj-stripe
Postgres14+
Redis7+

Infrastructure

NX19.x
AWS CDK2.x
DockerLatest
pnpm9+
GitHub
Bitbucket

3rd party services

Stripe
Contentful
Sentry
SonarCloud
OpenAI

Build with confidence_

SaaS Boilerplate includes plenty of ready-to-use features that you can adjust to your needs

Authentication and authorization

Authentication and authorization

Comprehensive authentication system with modern security standards. Support for traditional methods, passwordless authentication, and enterprise SSO to meet any security requirement.

  • User registration and login, including Facebook and Google OAuth
  • WebAuthn/Passkeys for passwordless authentication
  • Enterprise SSO (SAML 2.0, OIDC) with SCIM 2.0 directory sync
  • Basic user data like name, surname, and user role for authorization
  • User email address verification via a transactional email
  • Password change and password recovery within the app flow
  • User management panel in Django admin
  • Two-factor authentication (2FA)
  • Active session management across devices
Emails

Emails

Build beautiful, responsive email templates in React. Schedule emails, test them in Storybook, and communicate with your users professionally.

  • A set of ready-to-send transactional emails (new user verification, password recovery, subscription renewals, errors, etc.)
  • Ability to schedule emails at a given time
  • Sending test emails directly from a Storybook
  • Internationalization support out of the box
Subscriptions & Payments

Subscriptions & Payments

Complete payment and subscription management system with Stripe integration. Support multiple payment methods, set up recurring payments, free trials, grace periods, and manage customer subscriptions from your admin panel.

  • Integration with Stripe services and its dashboard
  • No customer payment method data is stored locally
  • Support for multiple payment methods and their management (storing for future use and removal)
  • Ability to charge users immediately or to set up recurring payments
  • Subscription plans support and ability to freely modify current plans
  • Free trial subscription plan, a grace period for credit card issues
  • Superadmin panel enables customer management (i.e. refunds) without the Stripe dashboard
Multi-tenancy

Multi-tenancy

Built-in multi-tenant architecture with role-based access control. Manage multiple entities within a single account with secure data isolation.

  • Start immediately with a default tenant provided upon account creation
  • Add new tenants as needed to manage multiple entities within a single account
  • Utilize three default roles "Owner, Admin, and Member" to control tenant activities and collaboration
  • Securely invite and manage new members within each tenant
CMS integration (Contentful)

CMS integration (Contentful)

Seamlessly integrate with Contentful for content management. Pre-built content models and example implementations to accelerate your content strategy.

  • Integration with Contentful service
  • Example content model (image, title, and description)
  • Ready to use CMS with a free plan
Notifications

Notifications

Real-time in-app notifications with WebSocket support. Keep users engaged with instant updates and a comprehensive notification center.

  • Real-time in-app notifications with WebSocket support
  • Notification center UI with unread indicators
  • Mark all as read functionality
  • Easy to add new notification types
AI Integration

AI Integration

OpenAI integration ready for building AI-powered features. Example implementation included with easy extension to other AI providers.

  • OpenAI integration ready for building AI-powered features
  • Example implementation included
  • Easy to extend with other AI providers
CRUD Generator

CRUD Generator

Plop-based generators for quickly scaffolding new features. Generate forms, tables, and GraphQL operations automatically with tenant-scoped data isolation.

  • Plop-based generators for quickly scaffolding new features
  • Example CRUD module included
  • Tenant-scoped data isolation
  • Generate forms, tables, and GraphQL operations automatically
Management Dashboard

Management Dashboard

Complete financial management module with AI-powered features. Track projects, iterations, revenue & costs with intelligent CSV import and forecasting.

  • Complete financial management module (example module)
  • Projects, iterations, revenue & cost tracking
  • AI-powered CSV import with intelligent column mapping
  • Financial forecasting with backtesting and scenarios
  • Multi-currency support with FX rate management
  • Excel-like timesheet with copy/paste and fill handle
  • CFO Command Center with KPI dashboards
RBAC Permissions

RBAC Permissions

Fine-grained role-based access control system. Create custom organization roles with color coding and enforce permissions on both frontend and backend.

  • Fine-grained role-based access control
  • Custom organization roles with color coding
  • Permission categories (organization, members, security, billing, features)
  • Frontend and backend permission enforcement
Activity Logs

Activity Logs

Comprehensive audit trail for all actions. Track field-level changes, multiple actor types, and export to CSV for compliance.

  • Comprehensive audit trail for all actions
  • Field-level change tracking (old value → new value)
  • Multiple actor types (User, AI Agent, System)
  • Export to CSV for compliance
AI Agent (MCP)

AI Agent (MCP)

Model Context Protocol integration for AI assistants. Natural language data queries and mutations with RBAC-aware tool execution.

  • Model Context Protocol integration for AI assistants
  • Natural language data queries and mutations
  • RBAC-aware tool execution
  • WebSocket streaming for real-time responses
Session Management

Session Management

Advanced session management with cross-origin support. Safari/iOS authentication fallback and multi-device session tracking.

  • Cross-origin cookie support for separate frontend/backend domains
  • Safari/iOS authentication fallback with Authorization headers
  • Multi-device session tracking and remote revocation
  • Activity logging for authentication events
Storage Backends

Storage Backends

Flexible file storage with multiple backend options. Dynamic backend selection, public and private storage separation, and CDN integration.

  • Flexible file storage with AWS S3, Cloudflare R2, Backblaze B2
  • Dynamic backend selection based on environment
  • Public and private storage separation
  • CDN integration for translations and assets
Kwame Nyanning - CEO, blkbx

Kwame Nyanning - CEO, blkbx

"The Saas Boilerplate was a huge reason we were so successful, because all these little seemingly unrelated tasks and integrations needed to happen. If we had been working with anybody else, It would have probably taken months to do the same work."

KWAME NYANNING

CEO, blkbx.

blkbx logo

Let our experts help you

Get professional onboarding and support to accelerate your SaaS development

Starter

Ideal for solo devs or small teams

$199

2-hour session with Senior Backend Developer

  • 2- hours live walkthrough
  • Docker setup
  • CLI usage & deployment
  • Environment configuration

You'll receive:

Setup notes and checklist

_> MOST POPULAR

Pro

Perfect for teams building core modules

$699

Full day (8 hours) session with Principal Engineer

  • In-depth onboarding
  • AWS & CDK walkthrough
  • Branching strategies
  • Stripe/ CMS setup

You'll receive:

Recorded sessions, Setup documentation

Enterprise

Designed for full production SaaS

$2,999

One week sprint with our Senior Expert

  • Architecture review
  • Advanced customization
  • CI/CD fine-tuning
  • Performance review

You'll receive:

Recorded sessions, Custom documentation, Technical recommendations

Custom

Best for customized implementations

$120/hour

Dedicated support from our Senior Backend Developer

  • Debugging complex issues
  • Third-party integrations
  • Multitenancy
  • Stripe customization

You'll receive:

Quick kickoff, Flexible work, Weekly updates, Pause anytime

FAQs

Ready to speed up your SaaS development?

Get started with SaaS Boilerplate today and focus on what matters - your business logic.