Development

TrailBase

TrailBase on a VPS: REST and realtime APIs, authentication and an admin console in a single binary, on SQLite and your own server.

In validation

About TrailBase

TrailBase is an open-source application backend (OSL-3.0 licence), written in Rust, that ships as a single executable: it exposes your SQLite tables as typed REST APIs, with filtered lists, pagination and realtime subscriptions, handles sign-up and sign-in for your users, stores their files and provides an admin console to browse data, write SQL and set access rules. It is a self-hosted alternative to Firebase, built for web, mobile and desktop applications.

Installed on your VPS, TrailBase keeps your user base and their data with you: no per-request billing, no quota set by a third-party service. Client libraries exist for JavaScript and TypeScript, Dart and Flutter, Rust, Go, Python, C#, Swift and Kotlin, and a WebAssembly runtime hosts your server-side code.

The project still describes itself as alpha: it moves fast, and every update deserves a test before production. One container, about 80 to 150 MB of memory.

What gets installed

Ready when the VPS starts

Compatible OS
Choice of Linux distributions
Application
TrailBase
Tech stack
DockerRustSQLiteWebAssembly
Minimum RAM
1 GB minimum
Minimum CPU
1 vCPU
Default port
8133
Access
root over SSH

Key features

  • REST APIs generated from your SQLite tables and views: create, read, update, delete, filtered and sorted lists, cursor pagination.
  • Realtime subscriptions: your clients receive changes to a table or a record as soon as they happen.
  • Built-in authentication: sign-up, sign-in, email verification, two-factor authentication and OAuth providers, with ready-made login pages.
  • Fine-grained access control: who can read or write (public, signed-in users), refined by SQL rules — a user only edits their own records.
  • An admin console: table explorer, SQL editor, accounts, request logs and settings, with no extra tool to install.
  • Versioned SQL migrations and typed client libraries for JavaScript/TypeScript, Dart/Flutter, Rust, Go, Python, C#, Swift and Kotlin.

When to use this solution?

Give a mobile app a backend

A Flutter or React Native developer plugs their app into TrailBase: user accounts, data and files live on their VPS, and the bill does not grow with the number of requests.

Prototype a web app in a day

An agency creates its tables from the console, opens an API on each and wires its Vue, React or Svelte front end with the TypeScript library: authentication and access rules are already there.

Replace Firebase on an existing project

A team that wants to keep its data in Morocco or control its costs moves its collections to SQL tables, with a schema versioned by migrations and backups under its control.

Guide

Deploy TrailBase on your VPS

  1. Create the VPS and choose the address

    Order an Ubuntu 24.04 VPS with at least 1 GB of RAM and 1 vCPU. TrailBase requires a domain: your apps call its API at a stable HTTPS address, and authentication email links point back to it. It installs on a subdomain of one of your domains, or on the VPS's free subdomain (trailbase.{dns_slug}.servorbit-dns.com), HTTPS included. No need to buy a domain name.

  2. Install TrailBase from the Marketplace

    In your client area, select TrailBase, choose the address and click Install. The script deploys the official image, sets the administrator password and configures the nginx reverse proxy over HTTPS.

  3. Sign in for the first time

    Open https://your-domain/_/admin/ and sign in with the address admin@localhost and the password shown in your client area. You can then change this account's address and password.

  4. Create a table and open its API

    In the table explorer, create a STRICT table with an integer or UUID primary key, then declare a Record API on it and choose who can read and write. It answers right away under /api/records/v1/<api-name>.

  5. Connect your application

    Install the client library for your language (for example the trailbase npm package), point it at https://your-domain, and use it to sign users in, read and write records and subscribe to changes.

Proof

What we promise, and how to check it

  • The recommended size, for every application

    The memory required and the VPS that covers it, on every card.

    Check it: the “Recommended VPS” line of each card

  • Root access, on your server

    You administer the system over SSH; your data stays on your VPS.

    Check it: the “What is installed” section of each page

  • You pay for the VPS, not the software

    The applications are open source: your only cost is the VPS that runs them.

    Check it: in the cart, no line for the application

Frequently asked questions

Questions about TrailBase

← Back to DevelopmentAll applications
Yes. Your apps call the TrailBase API at a stable HTTPS address, and authentication emails send your users back to it. No need to buy one: every ServOrbit VPS comes with a free subdomain (trailbase.{dns_slug}.servorbit-dns.com) with an HTTPS certificate. You can also pick a subdomain of one of your domains.

Activate TrailBase on your infrastructure.

Dedicated Cloud VPS — IPv4 included, server in Europe, support included. Your data never leaves your server.

All applications

TrailBase also runs on a dedicated server, when models or data outgrow a VPS. See dedicated servers