Hey everyone π
I recently built nexus-limiter, a production-ready rate limiting library for Node.js.
This started as a learning project to understand how different rate limiting algorithms work internally, and grew into a fully usable library with multiple frameworks and storage backends.
π Features
4 rate limiting algorithms:
Token Bucket
Fixed Window
Sliding Window Log
Sliding Window Counter
Framework support:
Express
Fastify
NestJS
Hono
Storage options:
In-memory (with LRU eviction)
Redis (atomic Lua scripts for safety)
Advanced features:
Plugin system (logging, metrics, etc.)
Weighted requests (different cost per endpoint)
Custom key generation
Fail-open strategy
π‘ Why I built it
Most libraries I tried were either:
limited to one algorithm
hard to extend
or not flexible across frameworks
So I built this to experiment with a more modular and extensible design.
π Links
npm: https://www.npmjs.com/package/nexus-limiter
GitHub: https://github.com/Zayn41/rate-limiter
Happy to hear feedback, suggestions, or real-world edge cases I might have missed π
United States
NORTH AMERICA
Related News
What Does "Building in Public" Actually Mean in 2026?
19h ago
The Agentic Headless Backend: What Vibe Coders Still Need After the UI Is Done
19h ago
Why Iβm Still Learning to Code Even With AI
21h ago
I gave Claude a persistent memory for $0/month using Cloudflare
1d ago
NYT: 'Meta's Embrace of AI Is Making Its Employees Miserable'
1d ago