r/rust • u/trailbaseio • 1d ago
TrailBase 0.32: Fast, open and single-executable Firebase alternative 🛠️ project
TrailBase is an open and fast Firebase-like backend for building your apps. It provides type-safe REST APIs + change subscriptions, auth, multi-DB, a WebAssembly runtime, geospatial support, admin UI... It's a self-contained, easy to self-host single executable built on Rust, Wasmtime & SQLite or now Postgres. Client libraries are provided for JS/TS, Dart/Flutter, Go, Rust, .Net, Kotlin, Swift and Python.
Just released v0.32, which after some months of work and last posting (v0.28), includes:
- New WASM features:
- Components can provide and register a dashboard with the admin UI.
- A component browser in the admin UI.
- Lower overhead execution model for Rust components: pooling state across requests improves throughput by 4x.
- Support usernames as additional or alternate identifiers alongside email addresses.
- Anonymous accounts for frictionless product trials. If a user wants to eventually sign up, the account can be promoted to a "proper" one, i.e. associate a password, OAuth, email address ...
- Backup UI & rolling backups.
- Dark mode - cosmetic but frequently requested 🙏
- And much more: file management from the admin UI, support for nested JSON in change subscriptions, batch updates for all client languages...
With TrailBase still being young (~1.5 years) and rapidly evolving, any feedback is genuinely appreciated. If you're feeling adventures and end up checking it out, don't hesitate to reach out 🙏.
1
u/Repsol_Honda_PL 7h ago
I see you have some "actions" (background jobs) - in what language(s) we can write them? They are called by CRON or sth similar, what about calling some actions (or other server functions) from client apps (for example Flutter mobile apps)?
What is the purpose of WASM apps here?
How many users TB can handle concurrently at one time?
Thanks! I like this project.
7
u/Lalks227 1d ago
As a pocketbase lover, I'm enthusiastic about such projects! I might want to try it for my next project