Ping
A free endpoint monitor that shows where response time goes
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
- 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.
- Kept each user's endpoints and check history in the browser's own IndexedDB. There are no accounts and nothing stored on my server.
- 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).
- Drew each result as a small waterfall so a slow DNS lookup and a slow server look different at a glance.
- 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
- A dashboard of every monitored endpoint with its latest status code and timing waterfall; anything that isn't a 2xx is marked in yellow.
- One refresh button re-checks every endpoint at once.
- Each endpoint has its own history of past checks, with a green or red dot, the time of the check and the total response time.
- A detail view per check shows the method, status code and the raw response headers.
- A simple setup form: name, URL and a timeout slider from 1 to 5 seconds.
- Mobile-first layout with swipe-back navigation.
Built with Node.js, Express, Vanilla JavaScript (ES modules), IndexedDB, Service worker / PWA, anime.js, 2023.