TrailBase ships as one executable with SQLite or Postgres, Wasmtime extensions, auth, admin UI, and type-safe APIs for mobile, web, or desktop clients.
Overview
TrailBase is a backend server delivered as a single Rust executable with bundled admin UI and client libraries. It exposes type-safe REST and realtime APIs, authentication, multi-database support, geospatial features, SSR hooks, and a WebAssembly runtime via Wasmtime.
The project emphasizes sub-millisecond latencies on local SQLite deployments, with experimental Postgres support noted in recent versions. Prebuilt binaries and Docker images are published for Linux, macOS, and Windows, and a one-line install command is documented alongside manual unpack workflows.
On first start TrailBase bootstraps a depot folder, creates an admin user, and prints credentials for the browser dashboard on localhost. Optional WASM components extend the admin UI, and build-from-source paths exist for contributors with Rust and Node tooling.
TrailBase targets teams who want a self-contained alternative to multi-service Firebase-style stacks while keeping extensions and auth inside one deployable unit.
Key features
- Single-executable Rust backend server
- Type-safe REST and realtime APIs
- Built-in auth and admin dashboard
- WebAssembly runtime via Wasmtime
- SQLite default with Postgres experimental
- Geospatial and SSR support
- Prebuilt binaries and Docker images
- Client packages for Go, Swift, and more
Use cases
- Self-hosting a mobile or web app backend
- Prototyping APIs without many services
- Running Wasm plugins beside REST data
- Local admin-managed auth for prototypes
- Deploying a compact database-centric server
Open-source alternative to
Firebase“An open, sub-millisecond, single-executable Firebase alternative.” source