Files
junction/web/README.md
T
Hermes 2e409d709a repo: comment and doc text in English, systemd start limit where it counts
The configuration examples were the last mixed-language place: full-reference.conf
(425 lines), config.example and prices.conf had German comments. Directives are
byte-identical in every file (verified by diffing the non-comment lines against HEAD),
each file still parses. web/README.md was German as well.

systemd-analyze caught a real bug while checking the unit: StartLimitIntervalSec=0 sat
in [Service], where systemd ignores it without a word — so the crash-loop protection
was the default five starts in ten seconds, and a router that keeps dying would simply
stay dead. It now sits in [Unit] together with StartLimitBurst=0, in
packaging/junction.service and in the live unit (systemctl show: both values 0).
2026-11-08 08:41:57 +00:00

1.3 KiB

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.