# eemeli/yaml

YAML parser and serialiser for JavaScript

Repository: https://github.com/eemeli/yaml
Canonical: https://ross.abutalabs.com/products/eemeli-yaml
Homepage: https://eemeli.org/yaml
Language: TypeScript
License: ISC
License Family: permissive
Topics: yaml, yaml-parser, yaml-editor
Last push: 2026-08-01T18:55:19+00:00

## Health v2 (maintenance only)
Score: 88/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 71, longevity 100
- inputs: {"age_days": 3138, "days_push": 32, "days_rel": 114, "gap_med": 43.5, "n_releases_24m": 11}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1689, forks 175 (observed 2026-08-28T04:05:22.395889+00:00)

## What it is
A comprehensive YAML parser and stringifier library for JavaScript and TypeScript, supporting YAML 1.1 and 1.2 with full comment and blank-line preservation. It includes a layered API from simple parse/stringify to a full document AST, plus a bundled command-line tool.

## Use cases
- parse yaml config files in node
- convert  to yaml and back
- read and write yaml while keeping comments
- parse yaml in the browser
- validate yaml against the spec test suite
- edit yaml documents programmatically
- format yaml files from the command line

## When to choose
- you need spec-compliant YAML 1.1/1.2 parsing with full test-suite coverage
- you must preserve or modify comments and blank lines in YAML documents
- you want a dependency-free library that works in Node.js and browsers
- you need fine-grained access to the YAML AST or CST

## When to avoid
- you only need simple JSON-style parsing and don't care about YAML edge cases
- you need YAML parsing in a non-JavaScript language
- you need a streaming parser for extremely large YAML files

## Facets
- artifact type: library
- maturity: stable
- function: parser, serialization, yaml, cli
- domain: developer-tools, parsers, files, apis
- platform: browser, cli, cross-platform
- tags: yaml-parser, yaml-stringifier, yaml-1-2, comments-preservation, zero-dependencies, typescript, nodejs, deno

## Member repositories
- eemeli/yaml (main) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:22.395889+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:38:40.347697+00:00, confidence not recorded.
  - readme: https://github.com/eemeli/yaml (fetched 2026-08-28T04:05:22.395889+00:00, sha 55bf051b7834)
  - homepage: https://eemeli.org/yaml (fetched 2026-08-29T11:13:43.768519+00:00, sha 1db23d1a5ea8)
  - registry_npm: https://registry.npmjs.org/yaml (fetched 2026-08-29T11:13:43.780681+00:00, sha 41a51457996b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
