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
- Pocketbase docs get to the point quickly
- Claims to be fast enough to need no cache, but only supports SQLite, so it seems suited to simple applications
- Wonders what applications it supports and whether it uses a specific runtime
- Doubts whether it suits a solo developer supporting millions of users
- Would like to try the project when there's time
See also
- webserver
- rust
- sqlite
- v8
- PocketBase - Open-source backend in a single file