# rictic/jsonriver

A simple, fast streaming JSON parser built on standards.

Repository: https://github.com/rictic/jsonriver
Canonical: https://ross.abutalabs.com/products/jsonriver
Homepage: https://rictic.github.io/jsonriver/
Language: TypeScript
License: BSD-3-Clause
License Family: permissive
Topics: incremental-parsing, json, parsing, streaming, streaming-parser
Last push: 2025-12-12T05:06:33+00:00

## Health v2 (maintenance only)
Score: 56/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 56, release rhythm 60, longevity 49
- inputs: {"age_days": 692, "days_push": 264, "days_rel": 264, "gap_med": 10, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1206, forks 15 (observed 2026-08-28T04:03:59.438374+00:00)

## What it is
jsonriver is a small, dependency-free TypeScript library that parses JSON incrementally as it streams in, yielding a sequence of increasingly complete values via an async iterable. It is fully spec-compliant, guaranteeing the final value matches JSON.parse, and works in any modern JavaScript environment.

## Use cases
- parse json from a streaming network request incrementally
- render structured output from an llm as it streams
- process large json files without loading them fully into memory
- show partial json results in a ui while data is still arriving
- incrementally parse json in the browser or node without dependencies

## When to choose
- you need to display or act on json values before the full payload arrives, e.g. streaming llm output
- you want a tiny (~2.5KiB), zero-dependency parser that works anywhere modern JS runs
- you need strict JSON.parse-equivalent correctness including error handling on invalid input

## When to avoid
- you just need to parse complete JSON strings, where JSON.parse is simpler and built-in
- you need to parse formats other than JSON
- you cannot consume async iterables in your runtime environment

## Facets
- artifact type: library
- maturity: active
- function: parser, serialization, json
- domain: parsers, developer-tools, web-development, large-language-models
- platform: browser, cross-platform
- tags: streaming-parser, incremental-parsing, typescript, zero-dependency, llm-streaming, async-iterable, nodejs, web-server

## Member repositories
- rictic/jsonriver (main) score 56

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:59.438374+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:19:19.183130+00:00, confidence not recorded.
  - readme: https://github.com/rictic/jsonriver (fetched 2026-08-28T04:03:59.438374+00:00, sha 0133a9e1914c)
  - homepage: https://rictic.github.io/jsonriver/ (fetched 2026-08-29T12:27:11.692277+00:00, sha 79493006ef18)
- Data as of 2026-08-30T08:39:29.467469+00:00.
