Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Interactive Terminal UI (rings-tui)

rings-tui is the interactive terminal workbench for operating and inspecting a running Rings node over its authenticated internal JSON-RPC and observability endpoints. It runs on Linux, macOS, and Windows terminals using Ratatui and Crossterm, and includes an offline --demo mode for exploring the interface without a live daemon.

Installation

Install from crates.io or build from a local checkout using the workspace’s pinned toolchain:

cargo +1.97.0 install --locked rings-tui

From the repository root:

cargo run -p rings-tui --bin rings-tui -- --help

Launching and authentication

By default rings-tui reads ~/.rings/config.yaml (-c, --config), determines the node’s internal endpoint (endpoint_url, defaulting to http://127.0.0.1:50000), and reads the Bearer token from api_token_path (defaulting to api-token next to the config file).

rings-tui
rings-tui --config /etc/rings/config.yaml
rings-tui --demo
rings-tui --print-preview

Avoid --api-token <SECRET> in shared shells or scripts because command arguments appear in process listings. Prefer --api-token-path or RINGS_API_TOKEN_PATH, which also lets you hot-reload a rotated token from disk inside the TUI using u.

Command-line options

FlagEnvironment variableDefaultPurpose
-c, --config <PATH>RINGS_CONFIG~/.rings/config.yamlNode YAML configuration file used to resolve endpoint and token paths
-u, --endpoint-url <URL>RINGS_ENDPOINT_URLConfig endpoint_url or http://127.0.0.1:50000Override internal JSON-RPC and HTTP status base URL
--api-token-path <PATH>RINGS_API_TOKEN_PATHConfig api_token_path or api-token beside configBearer token file for internal API authentication
--api-token <SECRET>RINGS_API_TOKEN—Explicit Bearer token string (disables disk reload via u)
--refresh-ms <MS>RINGS_TUI_REFRESH_MS2000Auto-poll interval in milliseconds (clamped at minimum 250 ms)
--demoRINGS_TUI_DEMOfalseRun against an in-memory simulated live node
--print-preview—falseRender all six tabs non-interactively to stdout and exit

Views (Tabs 1–6)

KeyTabContents
1OverviewProcess and overlay readiness, node DID and wire version, session-key remaining TTL and rotation counts, native gateway status (/gateway/status), and summary counters.
2MonitorLive traffic sparklines (sent, received, forwarded, stored, failed), DHT lookup latency histogram from /status?view=observability, and recent privacy-safe message events.
3PeersConnected transport peers, connection state, local advisory reliability (healthy, unknown, degraded), and aMule-style byte credit scores ([1.0, 10.0]). Press Enter on a row to inspect full measurements (peerMeasurement).
4DHT & StoragePress Space to cycle through three sub-views: Finger Table (160-bit ring intervals and endpoints), Persistent Storage, and Cache Storage. Press Enter or / to query a key.
5DirectoryPress Space to switch between Online Nodes Registry (lookupOnlineNodes) and Onion Exits Registry (lookupOnionExits); press e to toggle expired descriptors and Enter to dial the selected DID.
6CommandsInteractive 4×4 command button workbench, scrollable Command Output inspector, and chronological Command Execution Log.

Keybindings

KeyAction
1–6Jump directly to tab 1–6
Tab / Shift+TabNext / previous tab
Arrow keys or h j k lMove selection across table rows or command buttons
b / BToggle focus on the top action toolbar
SpaceCycle sub-tabs on DHT & Storage / Directory, or invoke focused button
EnterContext action: inspect peer (Peers), DHT key lookup (DHT & Storage), connect DID (Directory), or invoke focused button
[ / ]Scroll the Command Output inspector up / down
{ / }Step backward / forward through Command Execution Log history
PageUp / PageDownPage scroll active list or output pane
?Toggle full keybinding help overlay
EscClose active modal/help overlay or clear toolbar focus
q / Q / Ctrl+CQuit rings-tui

Direct command hotkeys

KeyOperationRPC / endpoint called
rRefresh all snapshots immediatelynodeDid, nodeInfo, listPeers, /status?view=observability, /gateway/status
pToggle background auto-polling—
cConnect to a peer HTTP endpointconnectPeerViaHttp
dConnect to a DID over the DHTconnectWithDid
sConnect using a JSON seed listconnectWithSeed
xDisconnect from a peer DIDdisconnect
oCreate manual SDP offercreateOffer
aAnswer manual SDP offeranswerOffer
yAccept manual SDP answeracceptAnswer
mSend namespaced backend messagesendBackendMessage
tPublish message to a DHT data topicpublishMessageToTopic
fFetch elements from a DHT data topicfetchTopicMessages
gRegister node under a service nameregisterService
vLook up providers for a service namelookupService
/ or wLook up a DID or key in local DHT storage/routingnodeInfo / local DHT report
iInspect full peer counters and credit recordpeerMeasurement
eToggle expired entries in Directory registrieslookupOnlineNodes, lookupOnionExits
uReload Bearer token from --api-token-pathReads token file on disk

Inside modal input editors, Tab/Shift+Tab/Up/Down move across fields, Left/Right/Home/End/Ctrl+A/Ctrl+E move the cursor, Ctrl+U clears the active field, bracketed paste inserts offer/answer payloads cleanly, Enter submits, and Esc cancels.