Lightweight monitoring for self-hosted Vue/Nuxt apps without Prometheus or Grafana
I've added Vue/Nuxt integration to StatLite, an open-source, self-hosted monitoring tool designed for small VPS deployments.
StatLite is a single Go binary with SQLite and a built-in dashboard, using around 15 MiB of RAM at idle.
The Nuxt integration requires just three small TypeScript files and zero additional runtime dependencies. It monitors:
- HTTP requests and errors
- Average response time
- Process CPU and V8 heap memory
- Application restarts
I also measured the instrumentation overhead on a 512 MiB Linux VM:
- Loaded RSS: 83.5-83.7 MiB without instrumentation vs 83.7-83.9 MiB with it
- CPU per 320 requests: 0.50-0.52s vs 0.53-0.56s
- Metrics payload: approximately 370 bytes
The recipe is verified with Nuxt 4 running as a single persistent Node.js process. For static Vue sites, StatLite can monitor HTTP traffic through Caddy or Traefik without application instrumentation.
Integration guide, source code and benchmarks:
https://github.com/PVRLabs/statlite/blob/main/docs/integrate/node/vue-nuxt.md
Interactive dashboard demo:
https://pvrlabs.xyz/statlite/demo.html?target=spring&range=24h
GitHub (open source, MIT license):
https://github.com/PVRLabs/statlite
I'd be interested to hear what people running self-hosted Vue/Nuxt applications use for monitoring today.