A 149-Byte Minimal PubSub Library
2025-04-01
This article introduces a minimalist PubSub library weighing in at a mere 149 bytes, with virtually no dependencies. It's compared to competitors like nano-pubsub (194 bytes) and tiny-pubsub (401 bytes), highlighting its incredibly small size. Built using EventTarget, the code is clear and concise, and includes TypeScript type definitions. The author encourages contributions to further reduce the library's size.
Development
lightweight library