📦 Open Source Projects

Zephyr Events: Finally, an Event Emitter That Doesn't Ghost Your Handlers

Event emitters are everywhere in JS. But most secretly skip handlers if one unsubscribes mid-emit. Zephyr Events? It doesn't play those games.

Zephyr Events TypeScript event emitter with safe handler iteration diagram

⚡ Key Takeaways

  • Zephyr Events fixes a common race-condition bug where handlers skip during self-unsubscribes. 𝕏
  • 1.9KB, zero deps, full TypeScript support with safe and fast modes. 𝕏
  • Better than EventEmitter3 and Node's EE—snapshot iteration prevents side effects. 𝕏
Published by

theAIcatchup

Community-driven. Code-first.

Worth sharing?

Get the best Open Source stories of the week in your inbox — no noise, no spam.

Originally reported by Dev.to

Stay in the loop

The week's most important stories from theAIcatchup, delivered once a week.