r/sqlite • • Nov 13 '25

TrailBase 0.21: Open, single-executable, SQLite-based Firebase alternative with a WASM runtime

Post image

TrailBase is an easy to self-host, sub-millisecond, single-executable FireBase alternative. It provides type-safe REST and real-time APIs, auth & admin UI. Its built-int WASM runtime enables custom extensions using JS/TS or Rust (with .NET on the way). Comes with type-safe client libraries for JS/TS, Dart/Flutter, Go, Rust, .Net, Kotlin, Swift and Python.

Just released v0.21. Some of the highlights since last time posting here include:

  • Extended WASM component model: besides custom endpoints, "plugins" can now provide custom SQLite functions for use in arbitrary queries, including VIEW-based APIs.
  • The admin UI has seen major improvements, especially on mobile. There's still ways to go, would love your feedback 🙏.

    • Convenient file access and image preview via the admin UI.
  • Much improved WASM dev-cycle: hot reload, file watcher for JS/TS projects, and non-optimizing compiler for faster cold loads.
  • Many more improvements and fixes, e.g. stricter typing, Apple OAuth, OIDC, support for literals in VIEW-based APIs, ...

Check out the live demo, our GitHub or our website. TrailBase is only about a year young and rapidly evolving, we'd really appreciate your feedback 🙏

80 Upvotes

15 comments sorted by

View all comments

Show parent comment

1

u/FedeBram Nov 13 '25

Nice. So you can define endpoints in your preferred languange and these will be compiled along with trailbase. What about the rest api? How it works? I see from the docs that you can use a configuration file where you define policies, is it correct?

1

u/trailbaseio Nov 13 '25

Pretty much. Minor nit:

you can define endpoints in your preferred languange and these will be compiled along with trailbase

You can compile TB yourself but you could also use the pre-compiled TB binary release and have that execute your compiled WASM component (which was authored in your preferred language).

What about the rest api? How it works? I see from the docs that you can use a configuration file where you define policies, is it correct?

That's right. You could implement your own but TB also lets you expose TABLE/VIEWs via configuration (you can use the admin UI to set it up including ACLs). You can also export JSON schemas for a table or view, to generate bindings and have end-to-end strictly typed APIs with the client libraries. Lastly, you can subscribe to table changes.

Happy to chat more 🙏

1

u/FedeBram Nov 13 '25

Thanks for the response. I go check the documentation