December 30, 2025

Hapi - API Health Checks

api-alertsmonitoringdeveloper-tools

I built Hapi over the 2025-26 Christmas break. It’s a simple tool that checks the health of all your API endpoints in one go.

Why I needed this

I was dealing with a terrible intermittent issue in my Kotlin APIs running on Google Cloud Run. They all connect to the same CloudSQL Postgres instance, and sometimes the connection just wouldn’t work reliably.

The connection string worked every time, but it was slow to connect. It felt like it was routing through the public internet. I tried switching to a private IP with the serverless VPC and it was faster but unreliable. I tried running the Cloud SQL Proxy myself and that was a disaster.

This went on for about 6 months. I’d get reports that something was down, I’d check, it’d be working again. Or I’d check one API and it was fine but another one was broken. I had no quick way to see the status of everything at once.

So I built Hapi. Open it up, hit the button, see green or red for each endpoint. That’s it.

Where it fits

I now have a small set of tools that I built because I needed them:

  • API Alerts - send notifications from your code to your phone
  • Hooks - test webhooks for free
  • Hapi - check your API health in one swoop

I think we’re in a good state now with the CloudSQL connection. Private IP, SSL configuration, and the serverless VPC seem to be working. But Hapi is still useful for a quick sanity check across all my services. If you run multiple APIs and want a simple way to see if they’re all up, give it a look.