# goccy/go-yaml

YAML support for the Go language

Repository: https://github.com/goccy/go-yaml
Canonical: https://ross.abutalabs.com/products/go-yaml
Homepage: https://goccy.github.io/go-yaml
Language: Go
License: MIT
License Family: permissive
Topics: go, golang, golang-library, yaml, yaml-parser
Last push: 2026-04-11T15:18:13+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 76, release rhythm 65, longevity 100
- inputs: {"age_days": 2520, "days_push": 144, "days_rel": 238, "gap_med": 1, "n_releases_24m": 46}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2223, forks 249 (observed 2026-08-28T04:06:27.707849+00:00)

## What it is
A from-scratch YAML parser and serializer library for Go, developed as a replacement for go-yaml/yaml. It offers higher YAML test suite coverage, intuitive validation errors, and AST-based reversible transformations including comments and anchors/aliases.

## Use cases
- parse yaml configuration files in go
- marshal go structs to yaml
- unmarshal yaml into go structs
- preserve comments when transforming yaml
- get meaningful validation errors from yaml configs
- replace go-yaml/yaml in an existing project

## When to choose
- you need better YAML spec coverage than go-yaml/yaml
- you need reversible YAML transformations with comments or anchors/aliases via AST
- you want intuitive, source-aware error messages for config validation
- you want a dependency-free, actively maintained YAML library

## When to avoid
- you need drop-in compatibility with gopkg.in/yaml.v3 APIs
- your project already depends on sigs.k8s.io/yaml or ghodss/yaml and you don't want to migrate
- you only need trivial YAML handling and the de facto standard suffices

## Facets
- artifact type: library
- maturity: active
- function: parser, serialization
- domain: parsers, developer-tools, files
- platform: go, cross-platform
- tags: yaml, golang-library, configuration, ast, marshaler

## Member repositories
- goccy/go-yaml (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:27.707849+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-30T02:45:03.864183+00:00, confidence not recorded.
  - readme: https://github.com/goccy/go-yaml (fetched 2026-08-28T04:06:27.707849+00:00, sha 1b7d52f8d97b)
  - homepage: https://goccy.github.io/go-yaml (fetched 2026-08-29T10:25:35.384282+00:00, sha 2ce88403be4d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
