# segmentio/encoding

Go package containing implementations of efficient encoding, decoding, and validation APIs.

Repository: https://github.com/segmentio/encoding
Canonical: https://ross.abutalabs.com/products/encoding
Language: Go
License: MIT
License Family: permissive
Topics: go, golang, json, ascii, iso8601, performance, encoding, decoding, validation, protobuf, hacktoberfest
Last push: 2026-06-25T23:26:09+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 89, release rhythm 74, longevity 100
- inputs: {"age_days": 2465, "days_push": 69, "days_rel": 174, "gap_med": 24.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1053, forks 58 (observed 2026-08-28T04:03:23.884763+00:00)

## What it is
A Go library providing high-performance encoders and decoders for data formats, most notably a drop-in replacement for the standard library's encoding/json with lower CPU and memory overhead. It also includes optimized implementations for other encodings such as ASCII, ISO8601, and protobuf.

## Use cases
- speed up json marshaling and unmarshaling in go
- drop-in replacement for encoding/json
- reduce cpu and memory usage when serializing json payloads
- efficient iso8601 date encoding in go
- fast json decoding for high-throughput services

## When to avoid
- you need a json library with features beyond the standard library's API
- your project must support old Go versions
- you rely on exact behavioral parity with encoding/json edge cases

## Facets
- artifact type: library
- maturity: active
- function: serialization, parser, benchmarking, fuzzing
- domain: developer-tools, performance, apis
- platform: go, cross-platform
- tags: json, drop-in-replacement, high-performance, iso8601, protobuf, data-engineering

## Member repositories
- segmentio/encoding (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:23.884763+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:59:23.583888+00:00, confidence not recorded.
  - readme: https://github.com/segmentio/encoding (fetched 2026-08-28T04:03:23.884763+00:00, sha 9a183c460b2c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
