All work

Ping

A free endpoint monitor that shows where response time goes

Ping dashboard listing six monitored endpoints, each with a status code badge and a timing waterfall

The problem

Small teams running a website and a few APIs often find out something is down or slow when a customer tells them. Full monitoring services are built for bigger operations and cost more than a quick check is worth.

I wanted a free tool for the UserBin site: add the pages and APIs you care about, tap refresh, and see right away which ones answer, which return errors, and where a slow one spends its time.

What I built

  1. Built it as a progressive web app with a service worker and manifest, so it installs on a phone and opens like a native app.
  2. Kept each user's endpoints and check history in the browser's own IndexedDB. There are no accounts and nothing stored on my server.
  3. A small Express service sends a HEAD request to each endpoint, all at once, and returns the status code, response headers and per-phase timings (DNS, TCP, first byte).
  4. Drew each result as a small waterfall so a slow DNS lookup and a slow server look different at a glance.
  5. Capped each visitor at 10 checks a minute and at most 20 endpoints per check, and allowed a timeout of 0.5 to 5 seconds per endpoint, to keep the free service from being abused.

What it does

Built with Node.js, Express, Vanilla JavaScript (ES modules), IndexedDB, Service worker / PWA, anime.js, 2023.