kvrocks-gui

Web GUI for Apache Kvrocks: key browser and editors, console, admin, cluster sup

This is a fork of chkalyvas/kvrocks-gui, kept for reference and contributions. It is not an original project.

Kvrocks GUI

CI
Release
License: MIT
OpenSSF Scorecard

A web GUI for querying and administering Apache Kvrocks (tested with 2.17).
It runs in the browser, backed by a small Node server, and works with any kvrocks or Redis server.

The UI is a fork of Another Redis Desktop Manager
(ARDM, MIT): its Electron app has been turned into a browser app, and kvrocks-specific views have been added
(admin, key statistics, sample queries).

The repository has two parts:

Folder What
app/ The GUI, standalone. Point it at your own kvrocks.
demo/vulnerability-lookup/ A demo: kvrocks preloaded with sample data and indexes in the key layout of Vulnerability-Lookup, plus a preset of 31 queries for it and an optional cluster.

Key statistics: indexes of the Vulnerability-Lookup demo

Screenshots

All taken on the Vulnerability-Lookup demo.

Sample queries Sample queries with parameters filled in from the data Key patterns Key patterns: keys grouped by name shape, with what each holds
Key editor Key browser and editor (a CVE record as JSON) Kvrocks admin Kvrocks admin: storage, RocksDB, namespaces, config, cluster

Quick start: the GUI on its own

With the published image, for a kvrocks running on this machine (port 6666):

docker run -d --name kvrocks-gui -p 127.0.0.1:8484:8484 --add-host host.docker.internal:host-gateway -e KVROCKS_HOST=host.docker.internal ghcr.io/chkalyvas/kvrocks-gui:latest

Or build it yourself with Docker Compose:

docker compose up -d --build

Open http://127.0.0.1:8484. Another server: set KVROCKS_HOST / KVROCKS_PORT before starting, or add
connections in the UI.

From source (Node 20+):

cd app; npm install; npm run build; npm start

npm run dev runs the server and a hot-reloading UI on http://localhost:9988.

Quick start: the Vulnerability-Lookup demo

Kvrocks on port 10002 (the port Vulnerability-Lookup uses) with sample records and all their indexes, and the GUI
with the Vulnerability-Lookup query preset:

cd demo/vulnerability-lookup
docker compose up -d --build
docker compose --profile seed run --rm seed

Open http://127.0.0.1:8484 and click kvrocks (Vulnerability-Lookup). The seed step downloads the latest records
from the public Vulnerability-Lookup API and builds the indexes; no data is stored in this repository. See the
demo README for the key layout, the seed options and the cluster.

The two compose files both use port 8484: stop one before starting the other.

Features

From ARDM: key tree by : prefix, SCAN with patterns, viewers/editors for string (JSON, msgpack, protobuf,
PHP/Java/pickle serialization, hex…), hash, list, set, zset and stream, TTLs, console with
autocomplete/history, MULTI, pub/sub and MONITOR, command log, slow log, memory analysis, batch delete,
key import/export, read-only connections, SSH tunnels, TLS, Sentinel, cluster.

Added for kvrocks (icons next to each connection):

Dataset presets

A preset is a JSON file with sample queries, key descriptions and an index pattern for a known key layout. The
GUI loads presets from app/presets/ (or KVGUI_PRESETS_DIR) and uses one for a connection when all of its
detect keys exist there. The format is described in app/presets/README.md; the
demo's vulnerability-lookup.json is a full example.

How the web port works

ARDM ran ioredis inside Electron's renderer. A browser cannot open TCP sockets, so:

Security notes

Environment variables

Variable Default
KVGUI_HOST / KVGUI_PORT 127.0.0.1 / 8484 Listen address
KVGUI_PASSWORD, KVGUI_USER empty / admin Basic auth (on when a password is set)
KVROCKS_HOST / KVROCKS_PORT / KVROCKS_NAME 127.0.0.1 / 6666 / kvrocks Connection offered on first launch
KVGUI_DEFAULT_CONNECTIONS empty JSON list of connections offered on first launch (replaces the one above)
KVGUI_PRESETS_DIR app/presets Folder of dataset preset JSON files
KVGUI_ALLOWED_ORIGINS empty Extra origins allowed to open the WebSocket
KVGUI_ALLOW_SERVER_FILES off Allow TLS/SSH file paths on the server's disk

Tests

With the demo running (kvrocks on 10002, cluster profile for the second test):

node app/test/rpc-smoke.mjs
node app/test/rpc-cluster.mjs

The first covers commands, binary replies, MULTI, the method allow-list, read-only enforcement and key statistics.
The second covers cluster routing and per-node scans; it needs a GUI server started on the host (npm start),
since it connects to the cluster's published ports.

Project status and contributing

Early public release (0.x): see ROADMAP.md for the plan towards a production version, including
the move off Vue 2, and CHANGELOG.md for releases. Contributions are welcome: read
CONTRIBUTING.md and the architecture overview; issues labelled
good first issue are a good start. Report security problems privately as described in SECURITY.md.

AI assistance

Much of the code and documentation in this fork was written with the help of an AI assistant (Claude, by
Anthropic) and reviewed, tested and directed by the maintainer. Commits with AI help carry a Co-Authored-By line.

License

MIT, see LICENSE. app/ is derived from Another Redis Desktop Manager (MIT); its notice is kept in app/LICENSE.

Credits