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 / S3, MIME + size validation, multi-file fields, on-the-fly image thumbnails, rule-based protection (per-field rule, one-time tokens, IP-bound, audit).
Hooks
Server-side JS hooks (before/after × CRUD), custom HTTP routes under
/api/v1/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_KEYvaultbase backup --to s3://… for
direct-to-object-store snapshotsposts.create, users.update, *, …) and custom dispatches from
hooks. Retry budget, dead-letter trail, SSRF egress guard/api/v1/metrics exposition with optional bearer
auth; same data available to admins as JSON at /_/metricshelpers.http calls run
through a CIDR deny-list; internal/RFC1918 ranges blocked by defaultinstall.sh --verify-sig runs the check
before installingrequireAuth, single-use tokens, IP-bound
tokens, files.download audit row per fetch| 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) | ✅ |
| Rule-based file protection (per-field, one-time, IP-bound, audited) | ✅ |
| Encrypted fields (AES-GCM) | ✅ |
| MFA / TOTP + recovery codes | ✅ |
| Outbound webhooks (HMAC, retry, dead-letter) | ✅ |
| Feature flags + targeting + rollout (built-in) | ✅ |
| Audit log of admin actions | ✅ |
| Brute-force lockout (per-email + IP) | ✅ |
Prometheus /api/v1/metrics exposition | ✅ |
| Configurable CORS + password policy + HIBP check | ✅ |
| Signed releases (cosign) + SBOM (CycloneDX) | ✅ |
| SSRF egress guard for hooks | ✅ |
| 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.