OpenSource-Hub
T

trailbase

SHA-256
5.1k stars·Developer Tools·SHA-256 checksum verified

An open-source, sub-millisecond Firebase alternative that combines REST & realtime APIs, multi-DB, WebAssembly runtime, auth, and admin UI into a single executable built on Rust, SQLite, and Wasmtime.

Smart Download

Download Download Version

v0.27.3 · 23.5 MB

A sub-millisecond, single-executable Firebase alternative with type-safe APIs, multi-DB, Wasm runtime, and built-in admin UI.

Core Features

  • Single executable, easy to deploy and self-host
  • Sub-millisecond latency, no dedicated cache needed
  • Type-safe REST and realtime APIs
  • Built-in WebAssembly runtime for custom server-side logic
  • Multi-database support, geospatial queries

What It Can't Do

  • Alpha stage: may have instability or breaking changes. License is OSL-3.0 (read carefully; it is designed to be permissive for your app code). WebAssembly component support is still maturing.

Use Cases

  • Quickly build a backend for mobile or web apps
  • Self-hosted alternative to Firebase to avoid vendor lock-in
  • Real-time applications (chat, collaboration) with low latency
  • Lightweight backend for edge computing or constrained environments

Detailed Introduction

TrailBase is a single-executable backend that replaces Firebase with faster, self-hostable infrastructure. It provides type-safe REST and realtime APIs, supports multiple databases, runs WebAssembly for custom logic, includes geospatial data, SSR, authentication, and an admin UI. Built on Rust and SQLite, it achieves sub-millisecond latencies, eliminating the need for dedicated caches. Pre-built binaries are available for Linux, macOS, and Windows, and it can be deployed with Docker or a one-line install script. Client libraries exist for JavaScript/TypeScript, Dart/Flutter, Rust, C#/.NET, Swift, Kotlin, Go, and Python.

Troubleshooting & FAQ (1)

Troubleshooting
Why does the TrailBase dashboard delete my manually added redirect_uri_allowlist entries in config.textproto?

This is a known bug where the dashboard's generated proto code strips unknown configuration fields because it lacks a UI element for redirect_uri_allowlist. A fix is being prepared and will be included in the next release. As a temporary workaround, do not save auth settings via the dashboard if you rely on manual entries, or use a file watcher to reinject the lines after each change.

GitHub Issue #231

Tags

firebase-alternativerustsqlitewasmrealtimebackendopen-source

Getting Started

1

Download installer

Click the button above to download the installer for your system

2

Install the software

Double-click the downloaded installer and follow the prompts

3

Download: from GitHub releases or run curl -sSL https://trailbase.io/install.sh | bash

4

Run: trail run (first start creates admin user and prints credentials)

5

Access admin UI: open http://localhost:4000/_/admin/ and log in

Install Guide
  1. Download: from GitHub releases or run curl -sSL https://trailbase.io/install.sh | bash
  2. Run: trail run (first start creates admin user and prints credentials)
  3. Access admin UI: open http://localhost:4000/_/admin/ and log in
File Integrity

SHA-256 checksum verified

Checksum extracted from GitHub official Release page

SHA256 Checksum

16fa50371f28d9a79acdd66d426478c1fd08d576041a5e871cca1e75987067a3

This checksum is extracted from the GitHub Release page. Verify file integrity after download.

All SHA-256 checksums on this platform are extracted from the project's official GitHub Release page, without any modification. You can independently verify them on the GitHub Releases page.

Open Source Transparency

View GitHub Source
Environment Guide

Uninstall Info

Delete the executable and the traildepot folder. If using Docker, stop the container and remove the image.

No Extra Dependencies

Ready to use after download. No additional runtime required.

Project Info
LicenseOSL-3.0
Last Updated2026-06-26 05:57:32
GitHub RepositoryOfficial Website

Having issues? Check the FAQ below

1 FAQ

Similar Projects