Show HN: Self-Hosted Redis/Lua API Rate-Limiter with Grafana UI

1 mpcroft 1 6/4/2025, 4:33:53 PM github.com ↗
Hello everyone, I created a lightweight self hosted rate limiter. Listed some of the key features below.

Token-bucket algorithm implemented with Redis + atomic Lua

Define policies with any combo of route / userId / clientApp / HTTP method / IP

REST API to create / update policies, able to test instantly in Swagger UI

X-API-Key header auth

Built-in Grafana + InfluxDB dashboard

Allowed vs Throttled pie chart

Tokens remaining over time line graph

Docker Compose stack, docker compose up -d and you’re live

Comments (1)

mpcroft · 1d ago
It’s a drop-in rate limiter with Redis + Lua, Grafana metrics, and a Swagger-tested REST API. I’d love feedback on use cases I missed.