ravionhq/superjson
Safely serialize JavaScript expressions to a superset of JSON, which includes Dates, BigInts, and more. observed · 2026-08-28
Health v2 · maintenance only
70/100
- Activity 88
- Release rhythm 30
- Longevity 100
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: 163.0
- age_days: 4264
- days_rel: 309
- days_push: 76
- n_releases_24m: 3
Adoption not part of the score
5280 stars · 126 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Superjson is a TypeScript library that safely serializes and deserializes JavaScript values to a superset of JSON, preserving types like Date, Map, Set, and BigInt that JSON.stringify drops. It is a thin, framework-agnostic wrapper around JSON.stringify/JSON.parse with type-safe autocompletion.
Use cases
- serialize dates and bigints to json
- pass Date objects through Next.js getServerSideProps
- serialize Map and Set to JSON
- fix JSON.stringify losing types
- type-safe json serialization in typescript
- send rich objects over an api without manual conversion
When to choose
- you need Date, Map, Set, BigInt, or RegExp to survive JSON round-trips
- you hit Next.js serialization limits in getServerSideProps or getInitialProps
- you want a drop-in JSON.stringify replacement with a tiny runtime footprint
When to avoid
- your data is plain JSON-compatible types only
- you need a wire format other systems can read without the superjson meta layer
- you need binary or extremely large payload optimization
Facets
library · maturity active
serialization json developer-tools web-development backend cross-platform json-superset date-serialization bigint nextjs typescript nodejs
10 sources
- readme: https://github.com/ravionhq/superjson · fetched 2026-08-28 · ede33b53597c
- homepage: https://www.ravion.com?ref=superjson · fetched 2026-08-29 · a7bf39f63d5e
- site_page: https://www.ravion.com/docs/module-definitions/standard-library · fetched 2026-08-29 · 6b9a21c20e79
- site_page: https://www.ravion.com/docs · fetched 2026-08-29 · f2202cc6f7db
- site_page: https://www.ravion.com/docs/module-definitions/catalog/rvn-ecs-web · fetched 2026-08-29 · 3437560c09ae
- site_page: https://www.ravion.com/docs/module-definitions/catalog/rvn-ec2-service · fetched 2026-08-29 · 60a1127c28a5
- site_page: https://www.ravion.com/docs/module-definitions/catalog/rvn-aws-alb · fetched 2026-08-29 · 3bbcc0bd8879
- site_page: https://www.ravion.com/docs/modules/stack · fetched 2026-08-29 · f3c044a9f72c
- site_page: https://www.ravion.com/docs/philosophy · fetched 2026-08-29 · 604216708b93
- site_page: https://www.ravion.com/pricing · fetched 2026-08-29 · ead0f61ddd59
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| ravionhq/superjson | main | 70 |
For agents
markdown · JSON · MCP: product_card(name="ravionhq/superjson")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem