@d3vtool/mutex
This library allows you to use concept of mutex for shared in-memory resource in asynchronous environment.
mutex-guard
Mutex implementation for synchronizing access to shared resources in Node.js applications.
redis-auth-baileys
A Redis-based authentication state management system for Baileys, similar to Baileys' useMultiFileAuth, providing scalable and production-ready session storage for WhatsApp bots.