Skip to content

Introduction

Cogworks turns a SQLite database into a full REST + realtime backend — collections, auth, file storage, rules, hooks, and an admin UI — compiled to one executable with no external services to run.

Cogworks is a fork of vaultbase-sh/vaultbase by Khalid M. Sheet. Its main divergence is a server rewrite from Elysia to Hono, plus the feature set documented here.

Every collection is a native SQLite table — fast queries, real indexes, no JSON-blob soup.

Password, TOTP, passkeys, OAuth2, email OTP, anonymous, API tokens — all built in.

WebSocket + SSE with per-record rule filtering and reconnect resume.

Hooks, custom routes, cron, and queue workers in sandboxed-ish JS with a rich helper API.