Ross ROSS = Recommend OSS · open-source software intelligence for agents

sanity-io/litter

Litter is a pretty printer library for Go data structures to aid in debugging and testing. observed · 2026-08-28

github.com/sanity-io/litter · Go · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

68/100

  • Activity 80
  • 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: 3453
  • days_rel: n/a
  • days_push: 121
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1656 stars · 60 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

Litter is a Go library that pretty-prints data structures as syntactically valid Go literals for debugging and testing. It produces consistent, sorted output suitable for snapshot comparisons in unit tests and handles circular references with aliases.

Use cases

  • dump Go data structures for debugging
  • snapshot testing in Go unit tests
  • print structs as valid Go literals
  • compare test output against saved expected data
  • inspect circular references and aliased pointers
  • alternative to JSON/YAML for readable test fixtures

When to choose

  • you need readable, terse dumps of Go values during debugging
  • you want deterministic snapshot output for unit tests
  • you need output that is valid Go code
  • you have circular or aliased references to visualize

When to avoid

  • you need machine-parseable output like JSON or YAML
  • you are not working in Go
  • you need colored or interactive debugging tools

Facets

library · maturity stable

testing logging serialization developer-tools developer-tools testing go cli pretty-printer snapshot-testing debugging go-literals

1 source

Member repositories

RepositoryRoleHealth v2
sanity-io/littermain68

For agents

markdown · JSON · MCP: product_card(name="sanity-io/litter")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem