About TrailBase
TrailBase packs a backend into one executable: SQLite storage (Postgres is experimental from v0.28), type-safe REST and realtime APIs, authentication with an optional auth UI, and a WebAssembly runtime built on Wasmtime for custom logic. The server is OSL-3.0, and the client libraries are Apache-2.0.
One process with an embedded database means no database server to run on your CloudSat plan, and a backup is a copy of one directory. It fits prototypes, mobile app backends and internal tools.
After deploy TrailBase listens on port 4000, with the admin UI at /_/admin/. On first start it creates the admin admin@localhost with a random password, which our team saves in /root/app-credentials.txt.
What you get with TrailBase
- Type-safe REST and realtime APIs over SQLite
- Built-in authentication with an optional login UI
- Admin UI for tables, users and settings
- WebAssembly runtime for custom logic
- Config, data and secrets in one
traildepotfolder
TrailBase use cases
- Back a mobile or single-page app with auth and live data
- Prototype a product without running a database server
- Replace a hosted backend service for a small internal tool
After you deploy TrailBase
- When the server is Running, SSH in and read the admin email and password in
/root/app-credentials.txt. - Open
http://<server IP>:4000/_/admin/and sign in;trail user change-passwordandtrail user change-emailupdate them later. - Create tables and record APIs in the admin UI.
- Serve TrailBase over HTTPS on your domain through a reverse proxy before clients connect.
TrailBase ports
Open these in your firewall if you use one: 4000/tcp API and admin UI.
TrailBase FAQ
Where does TrailBase keep its data?
In the traildepot directory, which holds configuration, databases and secrets. Copy that folder or snapshot the server for backups.
Can TrailBase use PostgreSQL?
Experimentally, from v0.28 on. SQLite remains the default and the best-supported option.
Disclaimer. The TrailBase project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.