# tinylib/msgp

A Go code generator for MessagePack / msgpack.org[Go]

Repository: https://github.com/tinylib/msgp
Canonical: https://ross.abutalabs.com/products/msgp
Language: Go
License: MIT
License Family: permissive
Last push: 2026-08-13T10:05:04+00:00

## Health v2 (maintenance only)
Score: 87/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 97, release rhythm 67, longevity 100
- inputs: {"age_days": 4373, "days_push": 20, "days_rel": 141, "gap_med": 31.0, "n_releases_24m": 13}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1949, forks 204 (observed 2026-08-28T04:05:58.034687+00:00)

## What it is
A Go code generator and serialization library for MessagePack that generates fast marshal/unmarshal and encode/decode methods from Go type declarations. It uses Go structs as the schema language and supports JSON interop, stream serialization, and user-defined extensions.

## Use cases
- generate msgpack serialization code for go structs
- fast binary serialization in go
- serialize structs to messagepack with zero allocations
- convert msgpack to and from  in go
- use go structs as a messagepack schema
- generate tests and benchmarks for serialization code

## When to choose
- you need high-performance messagepack encoding/decoding in Go
- you want type-safe serialization without reflection overhead
- you need JSON interoperability alongside a binary format
- you want stream-oriented serialization with io.Reader/io.Writer

## When to avoid
- you need dynamic or schema-less serialization of arbitrary data
- your project is not written in Go
- you prefer runtime reflection-based encoders over generated code

## Facets
- artifact type: library
- maturity: active
- function: serialization, developer-tools
- domain: developer-tools, apis, backend
- platform: go, cli
- tags: msgpack, code-generator, go-generate, zero-allocation, -interop, code-generation

## Member repositories
- tinylib/msgp (main) score 87

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:58.034687+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-30T03:06:58.268400+00:00, confidence not recorded.
  - readme: https://github.com/tinylib/msgp (fetched 2026-08-28T04:05:58.034687+00:00, sha 125286a78b26)
- Data as of 2026-08-30T08:39:29.467469+00:00.
