Skip to content

TrailBase

Single-binary Rust backend with auth and REST APIs for app developers

Copyleft (OSI) · OSL-3.0
  • Self-hosted

Listed by , founder & editor

73

Health

Active

Overview

Stars

5,777

Last commit

3 days ago

Nov 2026

Repository age

2 years

since Oct 2024

Latest version

v0.36.2

Nov 2026

Contributors

–

2 active in 90 days

Releases

25

last 12 months

Language

Rust

TrailBase is a backend for mobile, web and desktop apps, shipped as one executable. It is built on Rust, Wasmtime and SQLite, with experimental Postgres support. It provides type-safe REST and realtime APIs, authentication, an admin UI, a WebAssembly runtime, geospatial support and server-side rendering.

You download a pre-built binary for Linux, macOS or Windows, or use the Docker image. On first start it creates a traildepot folder and an admin user. The auth UI is an optional WASM component you add with one command. Client libraries exist for JavaScript/TypeScript, Dart/Flutter, Rust, C#/.NET, Swift, Kotlin, Go and Python.

The project first committed in 2024 and has had 25 releases in the last year. It is licensed under OSL-3.0. It targets developers who want a Firebase-style backend with fewer moving parts and who are happy to host it themselves.

Who it's for

Solo developers and small teams building apps

One binary with auth, APIs and an admin UI is simple to deploy.

Skip if: You need built-in push notifications or analytics.

Mobile developers using Flutter, Swift or Kotlin

Official client libraries cover those platforms.

Skip if: You need a documented offline client cache.

Rust developers who want an extensible backend

It is written in Rust and extends through WebAssembly components.

Skip if: You require a mature, large-team project, as only 2 contributors were active recently.

The problem it solves

Firebase ties your app data and auth to a hosted vendor service. TrailBase gives you a comparable backend you can run yourself as one executable.

Strengths

  • Single executable with no dependency setup
  • Client libraries for eight languages
  • Binaries for Linux, macOS and Windows, plus Docker
  • Auth, admin UI, realtime APIs and WASM runtime included
  • 25 releases in the last year

Trade-offs

  • No built-in push notifications
  • No built-in analytics
  • Postgres support is experimental
  • Only 2 contributors active in the last 90 days

TrailBase replaces

Self-host TrailBase

Self-hostable
Yes
Docker Compose
The repository ships a Compose file

Quick start

# Linux & MacOS
curl -sSL https://trailbase.io/install.sh | bash

# Windows
iwr https://trailbase.io/install.ps1 | iex

From the project's own install instructions. Check the docs for production settings.

In the community

Frequently asked questions

Is TrailBase free to self-host?

Yes. It is open source under OSL-3.0 and you run it on your own machine or server.

Does it run on Docker?

Yes. A Docker image is available, and it serves on port 4000 in the documented setup.

Which databases does it use?

SQLite by default. Postgres is supported experimentally.

Which client languages are supported?

JavaScript/TypeScript, Dart/Flutter, Rust, C#/.NET, Swift, Kotlin, Go and Python.

Other Firebase alternatives

Compare all 6 Firebase alternatives →

Similar tools in Backend as a service

Instant

Backend as a service

Real-time, offline-first client database with auth and permissions for frontend developers

11k 430 19 days ago Slowing Apache-2.0

InsForge AI

Backend as a service

Self-hostable Postgres backend with auth, storage and AI gateway for coding agents

13k 1.3k 4 days ago Thriving Apache-2.0

Conduit

Backend as a service

Self-hosted modular backend with auth, database, storage and chat for app developers

927 68 5 days ago Thriving MIT

Convex

Backend as a service

Reactive database and backend where you write server logic in TypeScript

13k 860 today Active FSL-1.1

Space Cloud

Backend as a service

Kubernetes-based serverless backend that exposes databases as GraphQL and REST APIs

4k 229 3 years ago Dormant Apache-2.0

Para

Backend as a service

Stateless, multitenant backend server with a REST API over any database for app developers

575 156 3 days ago Thriving Apache-2.0