fetch-sse
JSON →A lightweight library (v1.2.1) that provides an easy API for consuming Server-Sent Events (SSE) using the Fetch API, with full support for browsers and Node.js (>=18). It offers a single main function `fetchEventData` with familiar fetch-like options, including custom headers, method, body, signal, and event callbacks (onMessage, onOpen, onClose, onError). Key differentiators: no dependencies, TypeScript-first, supports POST requests and custom status handling via `skipStatusCheck`. Regular releases, actively maintained on GitHub.
Traffic · last 30 days stale · no recent hits
total hits 18
actors 2 distinct systems
last hit 24d ago GPTBot
top countries 🇸🇬 Singapore · 🇺🇸 United States · MY · VN · 🇬🇧 United Kingdom
Resources
packagefetch-sse ↗