A nano-sized (~500b) event emitter library for JavaScript applications.
onfire.js is a nano-sized event emitter library for JavaScript that enables event-driven communication between components or modules. It solves the problem of implementing event subscription and dispatching patterns without adding significant bundle size overhead, making it suitable for performance-critical applications.
JavaScript developers building applications with React, Vue, Angular, or other frameworks who need a lightweight event system for cross-component communication or custom event mechanisms.
Developers choose onfire.js for its extreme minimalism (~500b) and familiar API, allowing them to add event-driven capabilities without bloating their project, unlike larger event libraries or framework-specific solutions.
:gun: onfire.js is a nano version (~500b) for event-emitter.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
The entire library is approximately 500 bytes, as stated in the README's key features, minimizing bundle size impact for performance-sensitive projects.
Offers familiar methods like on, once, fire, and off, similar to other event-emitter libraries, making it easy to adopt with minimal learning curve.
Designed to work with React, Vue, Angular, and other JavaScript frameworks, enabling cross-component communication without framework lock-in, as highlighted in the key features.
Focuses on essential event emitter functionality without unnecessary bloat, aligning with a pragmatic design approach for modern web development.
Lacks advanced features such as wildcard listeners, event bubbling, or built-in async support, which are common in more comprehensive event libraries.
The README provides only basic usage examples and API definitions, with no in-depth tutorials, best practices, or error handling guides.
Does not include TypeScript definitions out-of-the-box, requiring developers to handle typing manually or rely on community contributions.