Kvrocks GUI
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. |
Screenshots
All taken on the Vulnerability-Lookup demo.
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:latestOr build it yourself with Docker Compose:
docker compose up -d --buildOpen 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 startnpm 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-lookupdocker compose up -d --builddocker compose --profile seed run --rm seedOpen 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):
-
Kvrocks admin (database icon):
- Overview with version/mode, storage (DB size, disk %, sequence) and activity. Maintenance buttons:
DBSIZE SCANrecount,COMPACT,BGSAVEbackup,FLUSHBACKUP. - RocksDB: every
INFO rocksdbmetric as a table with one column per column family. - Namespaces: list (tokens masked), add, change token, delete. kvrocks only allows namespaces when
requirepassis set; the tab explains this when it isn't. - Config:
CONFIG GET *with filter, inlineCONFIG SET,CONFIG REWRITE. - Cluster:
CLUSTERX VERSION,CLUSTER INFO, node/slot table; per-node selector in cluster mode.
- Overview with version/mode, storage (DB size, disk %, sequence) and activity. Maintenance buttons:
-
Key statistics (bar-chart icon): one server-side pass over the keyspace (SCAN, TYPE and size of each key,
pipelined), summarised as:- Sorted sets: the largest ones with member count, score range (dates for timestamps) and top member. With a
dataset preset this becomes its Indexes list (the 26index*sorted sets in the demo); - Key patterns: keys grouped by name shape (
cve-*,cve-*:link,*:products…) with key count, type, total
members and an example; a preset adds what each pattern holds; - Largest collections.
It takes a MATCH pattern, a key limit (default 200,000) and, in cluster mode, a node.
- Sorted sets: the largest ones with member count, score range (dates for timestamps) and top member. With a
-
Sample queries (magnifier icon): ready-to-run queries with editable parameters filled in from your data. The
built-in General set covers keys, reading hashes/sets/sorted sets and server state; presets add sets for
known layouts. Results show keys as links that open them. -
Status page shows kvrocks version/mode and RocksDB storage instead of Redis memory, with a
Recount (DBSIZE SCAN) button: kvrocks only keeps an estimate of the key count.
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:
app/server/index.mjs(Express +ws) servesdist/and owns all ioredis clients. One WebSocket per
browser tab carries RPC calls; connections close when the tab does.app/src/web/remoteRedis.jsis a stand-in for ioredis with the surface ARDM uses: every command and its
*Buffervariant,call/callBuffer, scan streams with pause/resume,multi,duplicate,monitor,
clusternodes(), events,options/condition/status. Binary keys and values survive the hop (Buffers are
base64-tagged on the wire).app/server/redisFactory.mjsis ARDM's connection code (cluster, Sentinel, SSH, TLS) moved server-side.electron,fs,readlineandchild_processare webpack aliases to browser shims inapp/src/web/.
File pickers upload the file into the browser; TLS certs and SSH keys are sent to the server as uploads.
Security notes
- The server listens on
127.0.0.1by default (KVGUI_HOSTto change). It can reach anything its host can,
so expose it only behind authentication: setKVGUI_PASSWORD(HTTP basic auth, userKVGUI_USER, defaultadmin). - WebSocket upgrades must be same-origin (
KVGUI_ALLOWED_ORIGINSto add more), which blocks other websites
from driving the proxy through your browser. - Read-only connections are enforced on the server. Besides ARDM's write commands they also refuse
FLUSHDB/ALL,CONFIG SET/REWRITE,NAMESPACE ADD/SET/DEL,COMPACT,CLUSTERX SET*and similar. - The UI can only call Redis commands known to ioredis, not arbitrary client methods.
- Reading certificate/key files from the server's disk is off unless
KVGUI_ALLOW_SERVER_FILES=1. - TLS: with a CA file the server certificate is verified (and the hostname, when an SNI name is set). Without a
CA, verification stays off as in ARDM, so self-signed setups still connect. - ARDM's custom formatters run a shell command per value. That would run commands on the server for anyone
who can reach it, so it is disabled in this fork.
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.mjsnode app/test/rpc-cluster.mjsThe 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
- UI: Another Redis Desktop Manager by qishibo, MIT; see
app/LICENSEandNOTICE.md - Demo data model: Vulnerability-Lookup (CIRCL); the seed script re-implements its key layout and copies none of its code
- Apache Kvrocks: Apache-2.0




