Skip to content

Welcome to TrailBase

A blazingly fast, single-file, open-source application server with type-safe APIs, built-in JS/ES6/TS Runtime, Auth, and Admin UI built on Rust+SQLite+V8

Performance

Blazingly fast thanks to its constituents:

  • Rust: one of the lowest overhead languages,
  • Axum: one of the fastest HTTP servers,
  • SQLite/Libsql: one of the fastest full-SQL databases,
  • V8: one of the fastest JS engines.

TrailBase APIs are 6-7x faster than PocketBase’s and 15x faster than SupaBase’s needing only a fraction of the footprint, allowing you to serve millions of customers from a tiny box.

In terms of JS/TS performance, V8 is roughly 40x faster than goja used by PocketBase.

Total time for 100k insertions:

Admin Dashboard

TrailBase ships with a builtin admin dashboard UI that lets you quickly configure your instance and visually explore your data. Check out the live demo below. Following TrailBase’s mantra of not getting in your way, the UI is entirely optional letting you fall back to a purely config and migration-based setup for integration tests or managing a fleet of deployments.

Simple

TrailBase is a small, single file, static binary that is incredibly easy to deploy consistently across integration testing, development, pre-prod, and production environments including edge. Architecturally, TrailBase aims to be a simple, thin abstraction around standards helping full or piece-meal adoption and avoiding lock-in.

A simple architecture, both in your dependencies and your own App, will let you move faster, more confidently and pivot when necessary.

Authentication

TrailBase comes with an authentication system and UI built in supporting both password-based and Social/OAuth (Google, Discord, …) sign-ups.

TrailBase authentication system follows standards and best-practices combining short-lived, stateless JSON web tokens with long-lived stateful refresh tokens letting you easily and efficiently authenticate your users from any of your other back-ends relying on safe, asymmetric cryptography.

APIs & File Storage

Provide access to your tables and views through fast, flexible and type-safe restful CRUD APIs. Extend functionality using a fast V8 JS/ES6 runtime with built-in support for TypeScript.

Authorize users based on ACLs and SQL access rules letting you easily build higher-level access management or moderation facilities like groups or capabilities.

Integration

Straightforward integration with any stack thanks to thin abstractions, reliance on standards, and JSON Schema for type-safety allowing type-safe bindings for virtually any language.

Clients as well as code-generation examples for TypeScript, Dart/Flutter, Python, and C#/.NET are provided out of the box.

TypeScriptFlutterDotnetDotnet