What is Easse? β
Easse is a lightweight adapter for building Server-Sent Events (SSE) in your backend applications.
It helps you handle real-time streaming responses with a simple and extensible APIβwithout pulling in heavy dependencies.
π Why Easse? β
Building SSE manually can be tricky:
- Managing headers correctly
- Formatting events
- Handling multiple runtimes (Node, Bun, etc.)
Easse solves these problems with a minimal abstraction layer. β
β¨ Key Features β
π Plug & Play β
Drop it into your existing controller or route handler.
β‘ Lightweight β
No dependencies. No overhead.
β Extensible β
Customize behavior based on your backend logic.
βοΈ Runtime Agnostic β
Works across different JavaScript runtimes:
- Node.js
- Bun
- Deno (optional support)
π‘ What is Server-Sent Events? β
Server-Sent Events (SSE) is a standard for streaming data from server to client over HTTP.
Unlike WebSockets:
- One-way (server β client)
- Simpler to implement
- Works over standard HTTP
While SSE is simple and powerful, it comes with some trade-offs:
- Cannot send custom headers (e.g. Authorization Bearer token)
- One-way communication only (server β client)
- Limited concurrent connections per browser
- Text-only payload (no binary)
- Requires handling reconnect & event replay
- Can be affected by proxies and timeouts
π§ When should you use Easse? β
Use Easse when you need these feature:
- Live updates (dashboard, logs)
- Streaming APIs
- Notifications
- Real-time monitoring
π Next Step β
Go to Quickstart to start using Easse in your project.