sse_parser 0.1.0 copy "sse_parser: ^0.1.0" to clipboard
sse_parser: ^0.1.0 copied to clipboard

A minimal, dependency-free, spec-compliant Server-Sent Events (SSE) parser for Dart and Flutter, with push and stream APIs. Built for LLM token streaming.

Changelog #

0.1.0 #

  • Initial release.
  • SseParser: push-based, spec-compliant SSE core (feed / close / reset).
  • SseTransformer + Stream<String>.parseSse() / Stream<List<int>>.parseSse().
  • WHATWG conformance: BOM strip, \n / \r / \r\n (incl. CRLF split across chunks), comment lines, one-space field-value strip, colon-less fields, multi-line data join, persistent last-event-id with NUL check, ASCII-digit retry, dispatch only on a blank line after data.
0
likes
160
points
124
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A minimal, dependency-free, spec-compliant Server-Sent Events (SSE) parser for Dart and Flutter, with push and stream APIs. Built for LLM token streaming.

Repository (GitHub)
View/report issues

Topics

#sse #server-sent-events #eventsource #streaming #llm

License

MIT (license)

More

Packages that depend on sse_parser