An open, sub-millisecond, single-executable Firebase alternative
open sourceOSL-3.0self-hostablefreeMCP
TrailBase is an open source application backend that ships as one executable, built in Rust on SQLite and Wasmtime, with PostgreSQL as an experimental option. It gives tables and views type-safe REST and realtime APIs with change subscriptions, authentication (passwords and social OAuth providers, with JWTs and refresh tokens), access control through ACLs and SQL rules, file storage, geospatial and vector search, server-side rendering, and an admin dashboard, and runs custom endpoints in a WebAssembly runtime that supports many guest languages. Client libraries cover TypeScript, Dart and Flutter, Python, C#, Rust, Swift, Kotlin and Go, and the binary includes a local MCP server for agents. Its makers position it between PocketBase and Supabase and report roughly ten times PocketBase's API speed in their benchmarks. It's licensed under OSL-3.0, with client libraries under Apache-2.0, and runs on Linux, macOS, Windows or Docker.
Ways to install
On your own server
Hosted for you
Problems it solves
- a backend for my mobile app with auth, a database and realtime updates that I can run as one binary
- self-hosted Firebase alternative that doesn't need Docker Compose with ten containers
- something like PocketBase but faster and written in Rust
- add login with Google and Discord to my app without writing an auth server
- get a REST API for my SQLite tables without writing any endpoints
- push live changes from the database to every connected client
- write custom server endpoints in TypeScript that run sandboxed next to my data
- type-safe client code generated from my database schema for a Flutter app
- a backend where access rules are just SQL instead of a custom rules language
- an admin dashboard to browse and edit tables for a small app's data
- a backend that adds no caching layer because its API latency is already under a millisecond
- store user-uploaded files alongside records without setting up S3 first
- vector search and geospatial queries in a lightweight self-hosted backend
- let a coding agent inspect and change my app's backend through MCP
- keep schema migrations for dev, test and prod databases consistent
- a backend for a desktop or offline-first app that I can ship as a single file
Features
- type-safe REST APIs for tables and views
- realtime change subscriptions pushed to clients
- authentication with email or username and password, social OAuth providers, short-lived JWTs and refresh tokens
- ACLs and SQL access rules
- file storage
- WebAssembly runtime (Wasmtime) for custom endpoints in many guest languages, plus an installable auth UI component
- geospatial support, vector search and SQLite extensions
- server-side rendering
- optional admin dashboard
- schema migrations written to the depot folder
View 5 more
- multi-database support: SQLite, PostgreSQL experimental
- client libraries for TypeScript, Dart/Flutter, Python, C#, Rust, Swift, Kotlin and Go, with code generation
- built-in local MCP server (trail mcp) for agents
- TanStack DB integration for realtime sync
- pre-built binaries for Linux, macOS and Windows and a Docker image
Limitations
- No built-in multi-node clustering: TrailBase runs as a single node on SQLite, with read replicas or Litestream as the options for now4
- PostgreSQL support is experimental: SQLite is the main database56
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Has an MCP server | plan not known |
| Takes plugins | plan not known |
| Has official SDKs | plan not known |
Alternatives
The same job
These do what TrailBase does.
- Supabase The Postgres development platform
- PocketBase Open Source backend in 1 file
- Appwrite The open-source cloud for agents & devs
- Nhost Open source Firebase alternative with GraphQL
- Convex The reactive backend platform that keeps up with you and your agents
- Firebase Google's app development platform: database, auth, hosting, functions and more