Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
F

fastabase

> 数据库
Open source

A solution to self-host Supabase on AWS and use PlanetScale Postgres as the database provider.

195 stars0 likes2 views
WebsiteGitHub

About

A solution to self-host Supabase on AWS and use PlanetScale Postgres as the database provider.

Fastabase

Fastabase is a solution to self-host Supabase on AWS and use PlanetScale Postgres as the database provider.

Overview

Fastabase is built using several components:

  • SST to orchestrate the deployment to AWS
  • OpenNext to deploy Supabase Studio as a serverless component
  • Supabase components like Storage, Auth, etc.

Architecture

  • Most of the Supabase components are deployed as Docker containers to ECS Fargate
  • Entrypoint for Supabase API is an Application Load Balancer behind a CloudFront distribution
  • Amazon SES SMTP servers are used for sending emails
  • Supabase Studio is deployed using OpenNext
    • Studio is protected by user/password auth via a CloudFront function

Prerequisites

  1. Install Node.js 22 and pnpm
  2. PlanetScale:
    1. Go to Cluster configuration -> Extensions and enable pg_stat_statements and pg_cron extensions.
    2. Go to Cluster configuration -> Parameters and set max_client_conn to at least 50.

Deployment

  1. Clone this repository and cd into it.

  2. Init Git submodules:

    bash
    git submodule update --init
  3. Create a config.yaml configuration file:

    bash
    cp config.yaml.example config.yaml
  4. Fill in the values in config.yaml.

  5. Install the dependencies:

    bash
    pnpm i
  6. Set up the AWS credentials:

    bash
    export AWS_PROFILE=

    [!TIP] To learn how to set up the AWS credentials in your terminal, please refer to the AWS documentation.

  7. Run the deployment:

    bash
    pnpm run deploy

    [!WARNING] SST deploys resources to a certain stage. This allows you to deploy multiple copies of your app in the same account.

    By default, the stage name is set to the username on your local machine. You can specify a different stage name with pnpm run deploy --stage .

Removal

To remove a deployed Fastabase instance, run:

bash
pnpm run remove

[!NOTE] If you used a non-default stage name during deployment, you also need to provide it here with pnpm run remove --stage .

Roadmap

Core Supabase components

  • Auth
  • Storage
  • PostgREST
  • Imgproxy
  • Pg-meta
  • Logs
  • Realtime
  • Edge functions

Customization

  • OpenAI API key
  • External auth providers
  • Custom domain

Improvements

  • Show real DB credentials in the Studio's "Connect" dialog (currently hardcoded to localhost in Supabase's codebase)

Notes

  • By default, Amazon SES is in sandbox mode, which means you can only send emails from and to verified email addresses. Make sure to exit the sandbox mode before sending emails to real users.

  • Logs and Realtime components currently do not support connecting to Postgres with SSL, so they are connecting to PlanetScale via Envoy that serves as an SSL proxy. Envoy is deployed as an ECS service. Once the SSL support is implemented in Logs and Realtime components, the Envoy service will be removed.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptawsplanetscalepostgrespulumi

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库