Self-host TrailBase
v0.35.12One-binary backend with realtime APIs, auth and admin UI
curl -sSL https://trailbase.io/install.sh | bash- Stars
- 5 755
- Port
- 4000 (HTTP/HTTPS API, auth UI and admin dashboard)
trailbase/trailbaseWhat is TrailBase?
TrailBase is an open-source backend for mobile, web and desktop apps that bundles relational storage, generated CRUD and realtime APIs, user accounts, file storage and an admin dashboard into one self-contained executable. It is written in Rust on top of SQLite, with experimental Postgres support since v0.28, and its whole state lives in a single traildepot folder holding configuration, databases, secrets and migrations. Custom endpoints run in an embedded WebAssembly runtime in JavaScript, TypeScript or Rust, and the API surface is JSON-Schema typed so first-party clients in eight languages stay consistent; the binary also embeds a local MCP server for agent workflows. Authentication covers email and/or username plus passwords with verification emails, social OAuth, anonymous accounts and asymmetrically signed JWTs that other services can validate themselves, while access to data is governed by ACLs and SQL access rules. Other capabilities include geospatial and GeoJSON queries, vector search, server-side rendering, schema migrations, periodic backups, log access in the dashboard and built-in TLS. You install it by downloading a release binary, piping install.sh through bash (install.ps1 on Windows), or starting the trailbase/trailbase container; trail run then serves the dashboard at /_/admin on port 4000. It is labelled alpha, licensed under OSL-3.0 (client libraries Apache-2.0), funded by NLnet's NGI Zero Core, and its production guidance is still early-stage.
TrailBase alternatives
AppwriteThe open-source cloud for agents & devs. Including Auth, Databases, Storage, Functions, Messaging, Hosting, Realtime, WAF and moreCompareAppwrite with TrailBase
nocodbSelf-hosted open-source Airtable alternative that turns any database into a no-code platform with spreadsheet-like interface, supporting PostgreSQL, MySQL, and SQLite.Comparenocodb with TrailBase
nhostOpen-source Firebase alternative and Backend-as-a-Service: Postgres, Hasura GraphQL APIs, auth, file storage and serverless functions, self-hosted with Docker Compose.Comparenhost with TrailBase
RustrakRustrak is a self-hosted, open-source error tracker compatible with Sentry SDKs. Change one config line to send data to your own infrastructure.CompareRustrak with TrailBase
drivebaseDrivebase is a self-hosted, open-source file manager unifying Google Drive, S3, Dropbox, and local files into a desktop-like web UI with real-time transfers.Comparedrivebase with TrailBase
AptabaseOpen-source, privacy-first app analytics alternative to Firebase and Google Analytics, self-hosted with Docker Compose; it tracks sessions, not user IDs.CompareAptabase with TrailBase
instantSelf-hosted, open-source backend-as-a-service: relational queries, realtime sync, offline caching, auth, storage and permission rules on PostgreSQL.Compareinstant with TrailBase
folderhostA self-hosted, open-source cloud platform offering file sharing, real-time collaboration, and user management in a ~19MB binary as a lightweight Nextcloud alternativeComparefolderhost with TrailBase
All self-hosted alternatives to Firebase → All self-hosted alternatives to PocketBase → All self-hosted alternatives to Supabase →
Should you self-host TrailBase?
TrailBase scores 63/100 on selfhost.directory (how scoring works) and ranks #7 of 15 in Backend as a Service. It has 5 755 GitHub stars, +106 in the last 30 days.
It shipped 70 stable releases in the past year. The latest, v0.35.12, came out on 9 November 2026. New versions land roughly every 2 days.
Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is OSL-3.0-licensed and written mostly in Rust.
Its closest alternative on selfhost.directory is supabase (90/100, 114 758 stars). It scores higher overall, so compare the two before you pick. See TrailBase vs supabase side by side.
Features
- ACLs and SQL access rules
- Admin Dashboard
- Anonymous sign-inPromotion to an OAuth-backed account is not yet supported.
- Built-in authentication with auth UI
- Built-In MCP Server
- Database Migrations
- File storage and uploads
- Geospatial Support
- Health check and log accessTelemetry is described as minimalistic; richer metrics are future work.
- HTTPS / TLS supportAutomated certificate issuance and renewal are not supported yet.
- OAuth social login
- Realtime data subscriptions
- REST API
- Vector Search
- WebAssembly custom endpoints
TrailBase README
An open, sub-millisecond, single-executable Firebase alternative with type-safe REST & realtime APIs, multi-DB, WebAssembly runtime, geospatial support, SSR, auth and admin UI built on Rust, Wasmtime & SQLite (or experimentally Postgres v0.28+).
FAQ
Can I Add Features to TrailBase?
Yes: check the roadmap, open an issue, or contribute — though early on proposals are discussed first so they fit the roadmap.
How is TrailBase Different from PocketBase, Supabase and Others?
It aims to mix Supabase's flexibility and principled architecture with PocketBase's ease and low overhead, delivering a similar feature set in a single very fast executable.
Is TrailBase Ready for Production?
Partly: it is well tested but still young and has less mileage than older solutions, so the team offers hands-on support to early adopters and points to its early-stage productionization docs.
Who is TrailBase for?
Mainly developers or teams building a client-side app (mobile, PWA, desktop) that want common backend problems solved: relational storage, APIs, authentication, file uploads, realtime updates, logs and SQL analysis.
More in Backend as a Service
AnyCableOpen-source realtime server for reliable two-way WebSocket and SSE communication. Self-hosted alternative to Pusher or Reverb.
any-sync-dockercomposeDeploy your own any-sync network with Docker Compose - self-host Anytype backend
AppwriteThe open-source cloud for agents & devs. Including Auth, Databases, Storage, Functions, Messaging, Hosting, Realtime, WAF and more
bkndbknd is a self-hosted, open-source backend-as-a-service with REST APIs, admin dashboard, auth, media, and workflows — a lightweight Firebase/Supabase alternative.
clinSelf CLI provisions a production-ready backend — PostgreSQL, Hasura GraphQL, Auth, Nginx — on your own server in minutes via Docker. MIT licensed with 171 plugins.
DaptinAn open-source, self-hosted application server: model your data once and Daptin serves JSON:API and GraphQL endpoints, users, permissions, files, jobs and realtime.
directusDirectus is a self-hosted headless CMS that puts instant REST and GraphQL APIs, a no-code admin Studio, media library and an MCP server on top of your own SQL database.
EncoreOpen-source backend dev platform: declare databases, queues and cron jobs in Go or TypeScript code, and build standalone Docker images for self-hosted deploys.
Firefox Sync ServerSelf-hosted, open-source Firefox Sync storage backend in Rust, compatible with Mozilla Accounts for syncing bookmarks, history, passwords, and tabs.
FrostbaseFrostbase is a self-hosted, open-source Firebase alternative on Cloudflare Workers with auth, realtime DB, SQL, storage, and remote config.
FusioSelf-hosted, open-source API management platform: expose databases and services as REST APIs, with developer portal, SDK generation, MCP/AI agents, and monetization.
instantSelf-hosted, open-source backend-as-a-service: relational queries, realtime sync, offline caching, auth, storage and permission rules on PostgreSQL.

0 comments