{"repo":"MatthewWid/better-sse","free":true,"listed":false,"github":"https://github.com/MatthewWid/better-sse","clone":"git clone https://github.com/MatthewWid/better-sse.git","description":"⬆ Dead simple, dependency-less, spec-compliant server-sent events implementation written in TypeScript","language":"TypeScript","stars":832,"topics":["javascript","nodejs","real-time","server-sent-events","typescript","event-driven","messaging","realtime","sse","bun"],"license":"MIT","category":"chat-messaging","readme_excerpt":"Better SSE A dead simple, dependency-less, spec-compliant server-sent events implementation written in TypeScript. This package aims to be the easiest to use, most compliant and most streamlined solution to server-sent events that is framework-agnostic and feature-rich. Please consider starring the project on GitHub ⭐. Why use Server-sent Events? Server-sent events (SSE) is a standardised protocol that allows web-servers to push data to clients without the need for alternative mechanisms such as pinging, long-polling or WebSockets. Using SSE can allow for significant savings in bandwidth and battery life on portable devices and will work with your existing infrastructure as it operates directly over the HTTP protocol without the need for the connection upgrade that WebSockets require. Compared to WebSockets it has comparable performance and bandwidth usage, especially over HTTP/2, and natively includes event ID generation and automatic reconnection when clients are disconnected. Read the Getting Started guide for more. Comparison: Server-sent Events vs WebSockets vs Polling WHATWG standards section for server-sent events MDN guide to server-sent events Can I use... Server-sent events Highlights Compatible with all popular frameworks and runtimes (Express, Hono, Fastify, Nest, Next.js, Bun, Deno, etc.) Fully written in TypeScript (+ ships with types directly). Thoroughly tested (+ 100% code coverage!). Comprehensively documented with guides and API documentation. Channels allo","default_branch":null,"files":null,"tree":[],"storefront":"/r/MatthewWid","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/MatthewWid/better-sse/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}