Skip to content

FastSvelte

FastSvelte is a fullstack SaaS starter kit built with FastAPI (Python) and SvelteKit (TypeScript).

The key features are:

Fast to start: Complete authentication, multi-tenancy, and payment integration out of the box.
Type-safe: Auto-generated TypeScript client from backend OpenAPI specification.
Multi-tenant: Organization-based user management with role-based permissions.
Production-ready: Session-based auth, database migrations, containerized deployment.
Developer-friendly: Dependency injection, repository pattern, comprehensive testing setup.

Technology Stack

  • Backend: FastAPI with PostgreSQL and Sqitch migrations
  • Frontend: SvelteKit with TypeScript and TailwindCSS
  • Authentication: Session-based with HTTP-only cookies
  • Payments: Stripe integration with webhook handling
  • Deployment: Docker containers

What's Included

Four main components: - Backend API - FastAPI application with authentication, multi-tenancy, and payments - Frontend Dashboard - SvelteKit admin interface with user management - Landing Page - Marketing site template - Database Schema - PostgreSQL schema with migration system

Demo Application: AI Note Improver

FastSvelte includes a complete AI Note Improver demo application that showcases the kit's capabilities:

  • Full CRUD Operations - Create, read, update, and delete notes
  • AI Integration - OpenAI-powered note organization and improvement
  • Usage-Based Billing - Token consumption tracking with plan-based limits
  • Multi-tenant Architecture - Organization-level quotas and permissions

This demo application demonstrates how to build AI-powered SaaS features while maintaining proper authentication, authorization, and billing controls. Replace this demo with your own core functionality while keeping the underlying infrastructure.

Getting Started

  1. Getting Started - Set up your development environment
  2. Architecture Overview - Understand the system design
  3. Integrations - Configure external services