WebReflection/flatted
A fast and minimal circular JSON parser. observed · 2026-08-28
Health v2 · maintenance only
75/100
- Activity 95
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3051
- days_rel: n/a
- days_push: 34
- n_releases_24m: 0
Adoption not part of the score
1155 stars · 98 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Flatted is a tiny (0.5K) and fast JavaScript library for serializing and parsing JSON data that contains circular references, with ports for PHP, Python, and Go. It provides a drop-in parse/stringify API compatible with JSON, plus toJSON/fromJSON helpers for implicit round-tripping.
Use cases
- serialize objects with circular references to JSON
- parse JSON strings containing recursive structures
- persist cyclic data structures like linked lists or graphs
- round-trip recursive Maps through JSON.stringify
- share circular-structure serialization across JS, Python, Go, and PHP
When to choose
- you need to serialize data with circular references in a JSON-compatible format
- you want a minimal, dependency-free library with a tiny footprint
- you need consistent circular JSON handling across multiple languages
When to avoid
- you need to serialize non-JSON types like Dates, Maps, or class instances natively
- you must interoperate with standard JSON.parse/JSON.stringify on the same strings
- you need a general structured-clone solution rather than JSON-only values
Facets
library · maturity stable
serialization parser developer-tools web-development browser cross-platform python go php circular-json json-serialization circular-references esm lightweight data-engineering nodejs
2 sources
- readme: https://github.com/WebReflection/flatted · fetched 2026-08-28 · 8145b9e39d59
- registry_npm: https://registry.npmjs.org/flatted · fetched 2026-08-29 · 274f36f61529
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| WebReflection/flatted | main | 75 |
For agents
markdown · JSON · MCP: product_card(name="WebReflection/flatted")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem