r/webdev • • 1h ago

Showoff Saturday I built a lightweight, open-source alternative to Prometheus and Grafana for web applications

Post image

I've been building StatLite, a lightweight, self-hosted application monitoring tool for developers who don't need the complexity of a full Prometheus/Grafana stack.

It runs as a single Go binary, stores data in SQLite, and uses around 15 MiB of RAM when idle.

Features:

  • Request rates and HTTP error breakdowns
  • Response times
  • Application CPU and memory usage
  • Restart detection
  • Automatic detection of elevated HTTP error rates
  • Telegram alerts
  • Built-in dashboard with historical metrics

It supports a growing number of web frameworks:

  • JavaScript/TypeScript: Express, Fastify, Hono, Nuxt, TanStack Start, AdonisJS
  • Python: Django, FastAPI, Flask
  • Java: Spring Boot, Quarkus, Micronaut and others
  • Reverse proxies: Caddy and Traefik

Many integrations work with existing Prometheus metrics endpoints, without requiring a running Prometheus server.

The goal is simple application monitoring with minimal resource usage, configuration and maintenance. No external services, subscriptions or monitoring data leaving your server.

Interactive demo: https://pvrlabs.xyz/statlite/demo.html

GitHub (MIT license): https://github.com/PVRLabs/statlite

I'd love to hear how you currently monitor your web applications and whether something like this would be useful for your projects.

3 Upvotes

1 comment sorted by