Repository navigation
@stackline/sse 1.0.0
@stackline/sse 1.0.0
A zero-dependency Server-Sent Events toolkit covering the complete stream lifecycle: fetch, reconnect, parse, decode, encode, and serve.
Highlights
- WHATWG-compatible incremental parser for strings and fragmented UTF-8 bytes
- Async iteration over
Response, Web Streams, async iterables, and iterables - Resumable Fetch client with retries, jitter,
Retry-After, and connect, idle, and total timeouts - Injection-resistant text and JSON encoders
- Backpressure-aware server helpers and heartbeat support
- Migration-compatible exports for
eventsource-parserand@microsoft/fetch-event-source - ESM, CommonJS, browser global, and TypeScript 3.9 through 7 declarations
- Zero runtime dependencies and bounded parser memory by default
Verified
- Node.js 14.17 through 24
- Windows, macOS, Linux, Deno 1 and 2, and Bun
- 69 runtime test groups with 100% statement, line, and function coverage
- CodeQL, dependency audit, package linting, type-surface analysis, deterministic fuzzing, and clean-install smoke tests
The attached npm tarball is the exact artifact tested by GitHub Actions. SHA512SUMS and a CycloneDX SBOM are included for independent verification.
Documentation: https://alexandro.net/docs/vanilla/sse/