Files
Hermes 0427e03ff5 dashboard: Konfigurationseditor mit Junction-Syntax, Oberfläche auf Englisch
- Der Konfigurationstext bekommt eine Highlight-Ebene; die Vim-Syntax liegt
  unter syntax/ und wird als /static/junction.vim zum Download ausgeliefert.
- UI-Texte und Kommentare sind auf Englisch (Repo-Konvention).
- Snapshot, Requests, Spend und Config laufen über die vorhandenen
  Kontrollbefehle; /api/stream hält die Anzeige aktuell.
2026-11-15 21:27:42 +00:00
..

junction dashboard

Control and history for the router. Node, no dependencies, no build step.

JUNCTION_SOCKET=/run/junction/control.sock DASH_PORT=8092 node server.js

The dashboard talks to junction exclusively over the control channel (control unix … in the configuration) and reads status, rules.list, mcp.tools, bringup.list, wol.list, guard.list and spend.get. It changes nothing junction could not do itself.

Page Purpose
Overview requests/s, tokens/s, latency, cost/h, errors — as history, not as a snapshot
Endpoints state, counters, requests in flight, last duration; pause and resume
Rules every rule with its conditions, delete, add a line (applies immediately)
Keys and month per virtual key: model glob, rpm, budget, spend, requests, refusals; month total per model
Configuration load the file, edit, check and save — with a .bak backup

The server keeps 15 minutes of history (one sample per second). What junction does not report stays empty (—) instead of passing as zero: a latency of 0 would be a claim nobody measured.

Variables: DASH_PORT (8092), DASH_BIND (0.0.0.0), DASH_TOKEN (optional, then Authorization: Bearer … or ?token=), SAMPLE_MS, HISTORY, JUNCTION_SOCKET or JUNCTION_TCP=host:port.