One container next to your Arkiv node: health, live pool queries, and a phone call when it breaks.
Nodewatch is an ops console for Arkiv community nodes. It runs as one extra Docker container on the same host as the node kit, needs no changes to the node, and gives the operator one screen for everything that normally gets watched by hand: whether the node is healthy and in sync, whether it is still in the load balancer's rotation, how full the disk will be next week, and what the pool is actually asking the node.
The problem: the community node kit is easy to start and hard to keep alive. The tunnel to the load balancer dies, the disk fills up, a container restarts, and the node silently drops out of rotation. Operators usually find out when payouts stop. Nobody can see which queries the pool sends to a node or which ones are slow.
What Nodewatch does:
Watches the node. Execution, consensus and tunnel containers, head lag, peers, CPU, memory and disk, with a disk-full forecast, and the node's public status on the Arkiv node list.
Alerts you. Every failed check goes to Telegram. Critical ones (a container down, the node out of rotation, a request slower than 3 seconds) open a PagerDuty incident that rings your phone and reads the incident out. Alerts resolve themselves and can be silenced from the console.
Fixes things. For every failure the dashboard shows the exact command and a one-click fix: restart whichever container is down (tunnel, execution or consensus), and the same flow for a major outage where the whole node kit has to come back. Updating Nodewatch itself is also one click.
Live queries. Nodewatch sits inline on the tunnel between the load balancer and the node, times every read request the pool sends, keeps the query text, and shows requests per minute, average and p95 latency, error rate, and the slowest query shapes. Any request over 750 ms is sent to Telegram with its text.
Fleet view. A small Grafana Alloy container on each node pushes metrics and the per-request log to one central Grafana, so several nodes fit on one screen: who is slow, who is failing, what the pool is asking.
Slow-query benchmarks. Nodewatch writes private datasets of 500 to 5,000 entities to Arkiv and runs 29 query shapes against them, measuring p95 per shape and how latency grows with dataset size. The report shows which shapes scale linearly, which ones to optimise, and the exact query text behind each number.
Also: a heartbeat entity written to Arkiv so the node proves it is alive on-chain, backups, and wallet (SIWE) login for the console.
Everything in the demo video ran on a live Rabdi node during the hackathon: the tunnel was stopped on purpose, the node left rotation, Nodewatch flagged it, the Telegram message and the PagerDuty phone call arrived, and the node came back after the one-click restart.
Stack: a TypeScript monorepo (pnpm) with a Fastify server and a React + Vite console, shipped as one Docker image. The server uses SQLite for state, viem for the chain, dockerode to inspect and restart the node kit's containers, prom-client for metrics and pino for logs. It runs on the same EC2 host as the Arkiv community node kit and talks to the node over the kit's compose network. Login is wallet-based (SIWE). The dashboard writes a heartbeat entity to Arkiv every 30 seconds from a small funded key, so anyone can verify on-chain that the node is alive.
Alerting: a rules engine evaluates every check on an interval with thresholds and a "for" duration, so one flapping sample does not page anyone. Notifiers are Telegram (bot API) and PagerDuty (Events API v2). A critical rule opens a PagerDuty incident, which rings the phone and reads the incident aloud; the rule resolves the incident itself once the check has been quiet for five minutes. Each alert carries a fix: the exact command plus a one-click action that restarts the failed container (tunnel, execution or consensus) through the Docker socket, or brings the whole kit back after a bigger outage.
The hacky part is "inline mode" for live queries. The load balancer reaches a node through an frpc tunnel container. Nodewatch rewrites the tunnel's frpc.toml so the tunnel's local target is Nodewatch's own proxy on the compose network gateway instead of the execution client, then restarts the tunnel. From then on every read request from the pool passes through Nodewatch, gets timed, parsed (arkiv_query text or params), and is forwarded to the node unchanged. The proxy is fail-open, strips accept-encoding so it can read JSON-RPC bodies, restores the original config if the switch fails, and a watcher re-applies the setting if the node kit rewrites the file. Per-request rows go to SQLite (48 h) plus an on-disk requests.jsonl; requests over 750 ms go to Telegram with the query text, over 3 s they trigger the critical rule.
Benchmarks: Nodewatch uses the Arkiv SDK to create private datasets of 500 to 5,000 entities with typed, indexed columns, runs 29 query shapes against them with timed batches, and fits latency against dataset size per shape, so the report says which shapes grow linearly and which to optimise.
Fleet view: a Grafana Alloy container on each node scrapes Nodewatch's /metrics (loopback-only unless a token is set) and tails requests.jsonl, then pushes to Prometheus remote-write and Loki behind Caddy basic auth on a separate small EC2. Dashboards are provisioned from the repo, so a new node appears on the fleet screen a minute after its agent starts.
Arkiv specifics that shaped the build, and two things we hit: typed entities and arkiv_query drive the heartbeat and the benchmarks; the node caps query limits at 100, and eth_getLogs fails for blocks older than about a thousand, both measured on the live node and written up in arkiv/friction.md. The live demo and the 3-second phone call were produced on the real node by stopping the tunnel container and by pushing a 35-query batch through the proxy.
All infrastructure, keys and on-chain writes were set up and approved by hand.

