Introducing Redis Kit – OSS Utility Toolkit for Redis (starting with Redlock)
Hey everyone!
I just released the first package of a new open-source project I'm working on: Redis Kit — a monorepo of utility libraries for Redis in Node.js.
🔗 First package: redis-kit/lock
🔧 Implements the Redlock algorithm for distributed locking using the officialnode-redis v5 client.
💡 Why I created this
While working on my other OSS project — nestjs-redis — I needed a Redlock implementation compatible with node-redis.
Most existing libraries rely on ioredis, which is no longer the preferred direction (Redis itself recommends node-redis going forward).
Since I couldn't find a solid, modern solution, I built my own. And instead of stopping at one package, I decided to create a monorepo where more Redis utility packages can live over time:
- ✅ Distributed locking (Redlock)
- 🔜 Rate limiting
- 🔜 Caching
- etc.
🧪 Current Status
- The
redis-kit/lockpackage is fully functional and built according to Redis's official docs. - Still in beta, but I'm already using it in a production-adjacent setup.
- Feedback, bug reports, and contributions are welcome!
💭 Curious what others think:
-
I initially implemented a single Redis instance lock without heavy distributed check logics, but later switched to Redlock based on Redis docs. Would you use the single-instance approach(simple lock) in production if library exported such functionality? When does it make sense?
-
What other Redis utilities would you want to see built using the official
node-redisclient?
Planning to expand this monorepo — Would love your feedback, ideas for new packages, and help spreading the word. Stars, PRs, and comments appreciated
🔗 Links
- GitHub: github.com/CSenshi/redis-kit
- npm: npmjs.com/package/@redis-kit/lock
- Related project: nestjs-redis
Posted Aug 4, 2025, 4:34 PM UTC