GUI, CLI, and benchmarks · Engineering

The GUI as an admin console, not a dashboard toy

What the embedded console actually does: documents, indexes, eventing, graph, backups, replication, and the boundaries of a loopback tool.

A database GUI is often a read-only table viewer with a query box. That is useful for a demo and insufficient for operations.

NonoDB’s console is embedded in the CLI binary and covers the jobs that otherwise send you back to the terminal: inspect documents, manage indexes, configure eventing, run backups, and watch replication.

How it runs

Terminal window
nonodb-cli gui

The command starts a loopback HTTP server on http://127.0.0.1:8787, opens the browser, serves the embedded React application, and proxies API requests to the daemon over the Unix socket or TCP endpoint.

Useful flags:

Terminal window
nonodb-cli gui --port 8788
nonodb-cli gui --no-open
nonodb-cli gui --url http://127.0.0.1:7879

--url makes the proxy use daemon TCP with bearer-token authentication. The Unix socket path is treated as trusted local admin, so token auth is not enforced there.

The server binds to 127.0.0.1 by default. A non-loopback bind requires both --host and --allow-remote:

Terminal window
nonodb-cli gui --host 0.0.0.0 --allow-remote

Exposing it beyond loopback is only safe with TLS, authentication, and a trusted reverse proxy or tunnel. The GUI does not terminate TLS.

What it manages

Documents

Browse with MongoDB-style filters, sorting, pagination, limit, and projection. There is a visual filter builder, field autocomplete, a JSON editor with validation, multi-document selection, bulk delete and bulk field update, history comparison and restore, and import/export as JSON, NDJSON, or CSV.

Collections and indexes

Create standard or time-series collections. Manage secondary, compound, unique, include, and geo indexes; text/BM25, fuzzy, and vector indexes; list and drop them; rebuild all indexes on a collection.

A Reindex all action scans the whole collection and blocks writers while it runs. The GUI asks for confirmation because that is a real maintenance operation, not a refresh.

Eventing

The sidebar groups change-data features:

  • Overview — webhook rules, subscriptions, enabled event sources, delivery health;
  • Rules — webhook management and subscription editing;
  • Deliveries — pending, retry, delivered, and dead deliveries, with errors and manual retry;
  • Live watch — connection-scoped events for a selected collection;
  • Outbox — inspect and replay the raw _events collection.

Webhook filters and aggregates are evaluated by the daemon worker, never in the writer.

The Graph tab configures adjacency on a node collection and explores it with direction, labels, depth, BFS/DFS, lazy expansion, and cycle markers.

The Search tab runs text, fuzzy, and vector queries against an indexed field and shows results.

Playground

The Playground combines SQL and JSON:

  • SQL mode runs one SELECT, INSERT, UPDATE, or DELETE with parameters and EXPLAIN;
  • JSON mode sends any single /v1/exec request;
  • templates for find, aggregation, unified search, SQL, and insert;
  • a validated op field and a result table with raw JSON and CSV export.

It uses the same filters, indexes, TTL, auth, and search paths as the clients. There is no separate playground backend.

Backups

Create, edit, delete, and run backup jobs. Choose native or restic, local or S3/R2, compression, optional age encryption, sidecar inclusion, schedule, retention, and deep verification. A required disclaimer acknowledgment appears before a job can be created or run.

Private key material is never displayed or edited in the GUI. Credentials come from configured environment-variable names.

Replication and cluster

The Replication tab shows role, epoch, lag, source, write URL, transport health, applied transactions, and role controls. The Cluster tab shows every node passed with --cluster or NONODB_GUI_CLUSTER in one place.

Promote/demote actions require confirmation and produce audit entries. Private keys are referenced by daemon/container paths and never uploaded through the browser.

Metrics and network

The dashboard shows queue, commit, batch, TTL, disk utilization, snapshot age, and time-series samples. Per-collection request/read/write/cache/error counters live in the collection’s Metrics tab.

The Network tab shows actual listeners, TLS state, and a host-firewall panel for a dedicated inet nonodb_firewall table. Applying rules requires NONODB_FIREWALL_MANAGE=1; without it the GUI only previews.

Security boundaries

  • The GUI is a local admin tool, not a multi-tenant portal.
  • It uses the same database token; there is no separate GUI account.
  • A loopback bind is the safe default.
  • Remote access needs TLS and auth in front of it.
  • Cluster probes currently require http:// URLs; use a local TLS proxy for HTTPS.
  • The GUI does not have a separate permission model. It is bounded by the token’s scopes.

What it is not

  • Not a replacement for the CLI in automation.
  • Not a hosted control plane.
  • Not a query profiler with historical plans.
  • Not a user-management UI for application accounts.
  • Not safe on a public interface without a reverse proxy.

The GUI guide documents every tab, screenshots, connection modes, and limitations.

All engineering notes →Read the docs