Dashboard
The built-in studio at /dashboard: tables, SQL, auth, storage, agents, approvals, jobs and logs.
/dashboard/ is built into the binary. Open http://127.0.0.1:8000/dashboard/ and sign in with the
service_role key (forkbase keys), or with a team member's own key (below). The key stays in that browser tab
unless you tick Remember.
| Page | What you do there |
|---|---|
| Overview | tables, users, buckets, runs waiting for review; requests, errors, latency and agent runs over the last hour, day or week; database and storage size; recent runs; connect a coding agent |
| Table editor | browse rows with several filters; edit a cell in place (double-click) or a whole row; JSON values in a viewer; follow a foreign key to its row; drag a column's edge to size it; import and export CSV. Structure: make, change and delete tables and columns without SQL, open or close a table to the API |
| API docs | each table's REST calls in JavaScript, Python and curl with the project's URL and keys; auth and storage; turn realtime on per table |
| SQL editor | run SQL as the database owner; a result per statement; snippets kept in the browser; ⌘↵ runs |
| Database | a schema diagram (tables, their keys and the foreign keys between them); indexes, views, functions, triggers, enums and roles per schema, each with its definition |
| Database, Backups | chronos mode: checkpoints, restore main to a checkpoint or a time, back up the engine's folder while it serves. postgres mode: download a pg_dump |
| Database, Connection | the database URL (with where its password is, never the password), host, port, pooler; the HTTP URLs and keys |
| Auth, Users | people: make, invite, confirm, disable, sign out, delete |
| Auth, Policies | row level security per table: turn it on, write policies from templates, see the SQL |
| Auth, Sign-in methods / URLs / Google and GitHub / Email / Email templates | the auth settings, saved in the database over forkbase.toml's and applied without a restart |
| Storage | buckets and files: upload, download, signed links |
| Realtime | connected clients and what each listens to, open channels, the last 200 messages (where they went, never what they said), which tables send changes |
| Agents, Approvals | the inbox of held runs, the oldest open beside the list: the rows it changes (before and after, the changed columns only), the reasons, SQL and counts; approve or reject |
| Agents, Runs | every run and its outcome |
| Agents, Worlds | open worlds; undo a merged run |
| Agents, Agents / Webhooks | agents and their tokens, webhook endpoints |
| Agents, Policies | the merge policies: edit their files, try one against an open or held run before saving, delete |
| Agents, Connected apps | MCP clients that were granted access; disconnect them |
| Jobs | jobs with each attempt's output (live while it runs) and a timeline of its steps; functions (deploy, run); schedules; triggers |
| Logs | API requests (time range, status and method facets, a histogram, each request's detail, live tail), sign-in events, agent events |
| Settings | API keys, signing keys; Team (members and roles); Audit log |
⌘K searches pages and tables.
The OAuth consent page for MCP clients is a dashboard page too (/dashboard/oauth/).
Team
Give each person who uses the dashboard a key of their own, with a role, so approvals and changes name who made them. Settings, Team adds a member (an email, a role) and shows their key once; send it to them privately. The service key stays for your servers and acts as the owner.
| Role | May |
|---|---|
| viewer | read every page, and try a merge policy against a run; change nothing |
| operator | a viewer who also approves, rejects, undoes and discards agents' runs, and cancels, retries and runs jobs |
| admin | everything the service key does, the team included |
Members below admin never see the service key. SQL, the team, pg_dump, signing keys and MCP are admin-only, reads
included. A member key (fbtm_...) works on every API the dashboard calls, as apikey or Authorization: Bearer.
A new key, turning a member off or removing them takes effect within 5 seconds on every server (at once on the one that
made the change). An admin can't lower, turn off or remove themself.
Audit log (Settings) lists every write a member made, with what their role refused, and the service key's changes to the team, backups, policies, approval links, auth settings and runs: who, when, the route, the result.
/platform/v1
What the dashboard calls besides the public APIs. Service key or a member key.
| Route | |
|---|---|
GET /platform/v1/project | mode, versions, instance, uptime, counts |
GET /platform/v1/tables | served tables, columns, primary and foreign keys |
POST /platform/v1/sql | {"query": "..."}: runs as the database owner, up to 1,000 rows a statement, 60 s, on its own connection; errors keep Postgres's code and position |
GET /platform/v1/logs?after=&limit= | the last 5,000 requests, from memory: method, path, status, time, size, user agent (no query strings, no bodies) |
GET /platform/v1/stats?range=1h|24h|7d | requests, 4xx, 5xx and latency (median, p95) by time, counted a minute at a time for a week in memory; agent runs by outcome; database and storage size |
GET /platform/v1/database?schema= | a schema's indexes, views, functions, triggers and enums, and the database's roles (each with its definition) |
GET /platform/v1/connection | mode, the HTTP URLs, the database URL with its password left out, host, port, pooler |
GET /platform/v1/backups | chronos: checkpoints and the backups in <data>/backups; postgres: whether pg_dump is here |
POST /platform/v1/backups | chronos: back up the engine's folder into <data>/backups/<time> while it serves |
POST /platform/v1/backups/checkpoints | chronos: {"name"} marks main as it is |
POST /platform/v1/backups/restore | chronos: {"checkpoint"} or {"at": "10 minutes ago"}, with "confirm": true. main and Forkbase's own tables go back; history keeps what it replaced |
GET /platform/v1/backups/dump | postgres: a pg_dump --format=custom of the database, streamed (admin) |
GET /platform/v1/me | who is calling: a member (id, email, role) or the service key |
GET, POST /platform/v1/members; PATCH, DELETE /members/{id}; POST /members/{id}/key | the team (admin). A new key is shown once |
GET /platform/v1/audit?limit=&before=&actor= | the audit log, newest first |
GET /realtime/v1/inspect | connected clients, channels, recent messages (metadata only), tables sending changes |
Safety
The pages hold no data of their own, send a strict Content-Security-Policy, and call only this origin. Anyone with
the service key or an admin's key has full control: don't expose /dashboard to the internet without a reason, and keep the key out of
shared machines.
Building it
From source, build the dashboard before the binary (Node 20+):
cd dashboard && npm ci && npm run build && cd ..
cargo build --profile dist -p forkbaseA binary built without it serves a page saying so. FORKBASE_DASHBOARD_OUT points the build at another export
folder.
Something wrong or missing? Edit this page on GitHub or open an issue.