ComsIndeed/llm-json-stream-dart
A reactive, character-by-character JSON state machine with a clean, high-level API, written in Dart, made for Dart. It parses the stream token-by-token, allowing an application to react to JSON data as it is being formed.
This tool helps Dart and Flutter developers build highly responsive AI applications by processing streaming JSON responses from large language models (LLMs). Instead of waiting for an entire JSON object, it parses data character-by-character as it arrives, letting you update your user interface incrementally. Developers can subscribe to specific JSON properties and display text, add list items, or populate fields in real-time, delivering a much smoother user experience for their end-users.
Use this if you are a Dart/Flutter developer building AI applications and need to display LLM responses in real-time, like a typing effect or progressively loading lists and maps, without waiting for the full response to complete.
Not ideal if your application does not involve streaming LLM responses or if you are not developing in Dart/Flutter.
Stars
11
Forks
—
Language
Dart
License
MIT
Category
Last pushed
Dec 17, 2025
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/ComsIndeed/llm-json-stream-dart"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
mangiucugna/json_repair
A python module to repair invalid JSON from LLMs
antfu/shiki-stream
Streaming highlighting with Shiki. Useful for highlighting text streams like LLM outputs.
iw4p/partialjson
+1M Downloads! Repair invalid LLM JSON, commonly used to parse the output of LLMs — Parsing...
yokingma/fetch-sse
An easy API for making Event Source requests, with all the features of fetch(), Supports...
kaptinlin/jsonrepair
A high-performance Golang library for easily repairing invalid JSON documents. Designed to fix...