-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Zahra Bayat edited this page Sep 13, 2025
·
4 revisions
Flare is a lightweight TypeScript event handling library designed for modern applications. It provides flexible, safe, and type-safe event management.
- Multiple handlers per event without duplicates
- Support for synchronous and asynchronous handlers
- Interceptors: run code before or after an event
- Middlewares: modify payloads or stop events
- Control execution strategy: parallel or serial
- Timeout and error handling
Flare provides more control than a basic event emitter:
- Stop events mid-chain using middleware or interceptors
- Modify event payloads dynamically
- Choose execution strategy to optimize performance
- Fully typed with TypeScript, ensuring compile-time safety