Dev Tools · 1h ago
New NPM package detects Node.js event loop freezes in production
A developer released @js-ak/watchdog, an N-API addon that monitors Node.js event loop freezes from a separate C++ thread, writing logs even when the main thread is stuck. It triggers freeze and recovered callbacks, with optional RSS/CPU and stack sampling. The package supports Node 22+ and is available under MIT license.
Meridian48 take
While existing tools like monitorEventLoopDelay work for dashboards, this package addresses the blind spot of logging during actual freezes—a practical fix for a common production headache.
node-jsevent-loop