Collections
Per-collection real SQL tables — not JSON blobs. Fast queries, native indexes, ALTER TABLE diffs on schema edit.
A backend you can ./vaultbase and forget about. No database to provision, no
auth service to wire up, no file storage to configure. One binary does it all,
with a built-in admin UI.
Collections
Per-collection real SQL tables — not JSON blobs. Fast queries, native indexes, ALTER TABLE diffs on schema edit.
Auth
Email/password, OAuth2 (Google, GitHub, GitLab, +10 more), OTP / magic link, MFA / TOTP, anonymous sessions, admin impersonation.
Realtime
WebSocket with topic-based subscriptions — subscribe to a collection, a
specific record, or * for everything.
Files
Local FS storage, MIME + size validation, multi-file fields, on-the-fly image thumbnails, protected-URL tokens.
Hooks
Server-side JS hooks (before/after × CRUD), custom HTTP routes under
/api/custom/*, cron jobs — all editable from the admin UI.
Single binary
bun build --compile produces a self-contained binary per platform —
Linux, macOS, Windows. No native deps to ship alongside.
vb_<name> SQL tables with native indexesbase, auth, view (read-only, SQL-backed){{var}} interpolationVAULTBASE_ENCRYPTION_KEY| Feature | Vaultbase |
|---|---|
| Single binary distribution | ✅ |
| Embedded DB (SQLite, no server) | ✅ |
| Built-in admin UI | ✅ |
| Realtime (WebSocket) | ✅ |
| TypeScript stack (Bun + Elysia) | ✅ |
| Server-side JS hooks + custom routes + cron jobs | ✅ |
| OAuth2 providers (Google, GitHub, Apple, Twitter/X, generic OIDC) | ✅ |
| File storage (local + S3 / Cloudflare R2) | ✅ |
| Encrypted fields (AES-GCM) | ✅ |
| MFA / TOTP + recovery codes | ✅ |
| Self-hosted, open source | ✅ |
bun installbun run build # → ./vaultbase./vaultbase # starts on :8091# open http://localhost:8091/_/ → setup wizardThat’s it. Walk through the Quick start for your first collection.