Skip to content
Search

Trailbase

lastmod 2024-12-11created 2024-12-112 edits

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

Single-file open-source app server based on Rust/SQLite/V8

Features

  • TrailBase is a fast, open-source application server built on Rust, SQLite, and V8
  • Type-Safe CRUD API, built-in JS/ES6/TS runtime
  • Provides Auth (password and social/OAuth, JWT-based) and Admin UI
  • Makes it easy to self-host a single-file, scalable backend for mobile, web, and desktop applications
  • Sub-millisecond latency, so no dedicated cache is needed
  • 10x faster than PocketBase, 20x faster than SupaBase
  • Provided as free software under the OSL-3.0 license
    • Has a narrower definition of derivative works than similar copyleft licenses such as AGPLv3
    • Using TrailBase as a framework does not impose license requirements on the original work

Hacker News comments

  • Trailbase: Fast, single-file, open-source app server built using Rust and SQLite | Hacker News
  • GG's careful attention to Pocketbase's security is impressive
    • Questions whether direct string interpolation into SQL in the getting-started docs is safe
    • The function seems to take a parameter but not use it
  • Trailbase docs only explain the differences from Pocketbase and Supabase, which makes it hard to understand
    • Pocketbase docs get to the point quickly
  • The term "Application server" is broad, and the docs don't explain it clearly
    • Claims to be fast enough to need no cache, but only supports SQLite, so it seems suited to simple applications
  • The project seems similar to Redbean, but supports more languages and has no universal executable
  • Comparison articles describe the projects that inspired it very positively
  • The docs don't properly explain the purpose of an "Application server"
  • The examples consist of a single file, but the server itself is not a single file
  • The difference from application servers for JVM programs such as TomCat is unclear
    • Wonders what applications it supports and whether it uses a specific runtime
  • The project looks great, but who is the target audience?
    • Doubts whether it suits a solo developer supporting millions of users
  • The demo of Pocketbase developed in Rust makes a good impression
    • Would like to try the project when there's time

See also

Favorite site

author Zer0 sitemap