kPong
A terminal app that pings each target once a second by default and records every sample in local SQLite, so a slow evening becomes rows you can query.
source (opens in new tab)The problem
"The internet feels slow" isn't a bug report. A single ping tells you a host answered once; it says nothing about jitter (variation in latency between probes), brief outages, or the link that degrades every evening at eight. kPong turns that vague feeling into per-target history you can watch live and query later.
Architecture
kPong is a terminal application built with Bun, Ink, and React, compiled to
standalone executables for Windows, Linux, and macOS. On first launch a setup
wizard asks three questions (keymap, desktop notifications, sound), writes
kpong.yaml, and seeds 1.1.1.1 and 8.8.8.8 as starting targets. From then on
each target probes on its own timer (every second by default), never overlaps
its own previous probe, and waits in a queue when the global cap of 20
concurrent pings is full. Changing a host, interval, timeout, or the set of
enabled targets restarts the scheduler: kPong kills the in-flight ping
processes, and a generation counter (a run identifier that rejects older results) drops any result that still arrives from the previous run. Edits that don't touch probing, like spike thresholds or colors, apply without a restart.
The interesting part is deciding what counts as a problem. Each target keeps its last 60 samples, and the baseline is their median (the middle value after sorting samples), not the mean, so a single 900 ms outlier doesn't skew it. A sample counts as a spike only when it clears three bars at once: at least 20 ms and 40% over the baseline, and at least 15 ms above the previous sample. The jump bar means a flat slowdown that clears all three bars fires once, on the sample where it starts. After any spike the target waits out a 30-second cooldown (delay before another alert can fire) and doesn't rearm until latency falls back within 15% of the baseline, so a flapping link alerts at most twice a minute. Every threshold can be overridden per target.
Everything stays operable while it runs: add, edit, rename, mute, disable,
and remove targets from the keyboard with arrow keys, Vim keys, or both.
kpong.yaml and the optional theme file both reload when you save them, and
r forces a config reload. A theme sets pane proportions, column widths, and
labels as well as colors.
Spike alerts go to an in-app feed, a native desktop notification, and a sound:
a beep or terminal bell by default, or a sound file you configure. Every sample
lands in a local SQLite database with its latency, state, and baseline. Without
storage.sqlite.retentionDays, kPong keeps the newest 100,000 rows per target,
a bit over a day at the default interval. Pressing x exports a timestamped
CSV and JSON snapshot with one row per target: its latest reading, baseline,
and spike flag.
Boundaries
kPong observes reachability and latency from the machine it runs on. It shows
that a link is degrading, since when, and how badly; it doesn't say why. Alerts
fire only on latency spikes from pings that succeed: a target that times out,
fails DNS, or goes unreachable shows Degraded, DNS error, or Down in the
UI and sends no notification. Slow drift stays quiet too. A rise of less than
15 ms per sample never clears the jump bar, and after about 30 samples at a new
level the median has moved there, so gradual degradation only shows up in the
history.
There's no server, no account, and nothing hosted. By default kpong.yaml,
kpong.db, and exports/ sit next to the binary. A CSV snapshot records the
moment you pressed x; "it degrades every evening at eight" is a query against
kpong.db, and only if retentionDays keeps enough evenings.
A ping is not monitoring makes the longer argument.