qmetrics.net

TrailBase

Single-binary extensible backend with REST and realtime APIs

TrailBase screenshot

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 with type-safe APIs, built-in WebAssembly runtime, realtime subscriptions, auth, MCP and admin UI built on Rust, SQLite (PG) & Wasmtime.” source

Tags

Compare TrailBase

Similar software

Supabase

Open-source Postgres platform with auth, APIs, and storage

Supabase bundles a dedicated Postgres database with authentication, auto-generated REST and GraphQL APIs, realtime, functions, file storage, and vector tooling.

★ 115.6k⟳ todayApache-2.0
Open Source Alternative to:FirebaseFirebase Realtime Database

GORM

Feature-rich ORM library for Go applications

GORM maps Go structs to SQL databases with migrations, associations, hooks, and a fluent query API. It targets developer-friendly access patterns for common CRUD and relationship modeling.

★ 40k⟳ 1 month agoMIT
Frameworks & PlatformsDesktop/CLI app

TypeORM

TypeScript and JavaScript ORM for many SQL and NoSQL databases

TypeORM maps objects to relational and document databases from Node.js, browsers, and mobile shells. It supports TypeScript and JavaScript with both Data Mapper and Active Record styles.

★ 36.7k⟳ 3 days agoMIT
Frameworks & PlatformsDesktop/CLI app

MyBatis 3

Java SQL mapper with XML or annotation config

MyBatis links Java objects to SQL and stored procedures via XML or annotations. It trims repetitive JDBC parameter and result handling.

★ 20.4k⟳ yesterdayApache-2.0

Node Redis

High-performance Redis client for Node.js

node-redis connects Node.js applications to Redis with typed commands, clustering, pub/sub, transactions, and optional client-side caching.

★ 17.6k⟳ yesterdayMIT
Frameworks & PlatformsDesktop/CLI app

MyBatis-Plus

Enhanced MyBatis toolkit for Java database access

MyBatis-Plus extends MyBatis with code generation, conditional query builders, and pagination helpers. It stays compatible with MyBatis while adding convenience APIs for common CRUD work.

★ 17.5k⟳ todayApache-2.0
Frameworks & PlatformsDesktop/CLI app