Skip to content
Zahra Bayat edited this page Sep 13, 2025 · 4 revisions

Flare

Flare is a lightweight TypeScript event handling library designed for modern applications. It provides flexible, safe, and type-safe event management.


Key Features

  • 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

Why Flare?

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

Clone this wiki locally