Recursive AI
LibraryRust, Go and C# available

oneyaml

YAML 1.2 libraries with typed reads and edits that keep your comments. Same behavior in every language.

cargo add oneyaml
go get oneyaml.dev/go
dotnet add package OneYaml

Languages

Rust 1.2.0 serde and lossless editing in one crate. Getting startedDocsCookbook Available
Go v1.0.0 encoding/json-style load and dump, plus a document you edit in place. Getting startedDocsCookbook Available
C# 1.2.1 A System.Text.Json-style serializer and lossless editing for .NET. Getting startedDocsCookbook Available
Python json-style loads and dumps, with a native and a pure-Python backend. Paused
What it does

Change one value. Everything else stays exactly as you wrote it.

config.yamlBefore
# Web service
server:
  host: 0.0.0.0
  port: 8080   # public
tags: [web]
set server.port, add a tagAfter
# Web service
server:
  host: 0.0.0.0
  port: 9090   # public
tags: [web, api]

One parser, one meaning

Typed reads and the lossless document share one parser and one resolver, so they never disagree about what a file means.

Edits that keep your file

An untouched document writes back byte for byte. An edit, a JSON Patch or a merge patch changes only what it touches, in the file’s own style, and every comment stays with its entry.

Correct YAML 1.2 by default

yes is a string and 0777 is a decimal. Every YAML 1.1 behavior is a named setting, off by default.

Safe on any input

Resource limits on every read, a stricter profile for untrusted input, and errors with a category and a position that mean the same in every language.

Conformance kit

oneyaml-kit checks every library

A language-neutral YAML 1.2 conformance suite and benchmark harness. The libraries share behavior, not code, and the kit holds that behavior as data: the full YAML test suite plus cases for edits, patches, errors and safety. Every library runs it before release, and so can you, against any YAML library, with one small adapter.

The same kit holds the benchmarks: each answer is checked before it is timed, against the strongest competitor on each task, and the losses are published with the wins.

The source is public on GitHub. There is no release yet.

Specification

Same behavior in every language

Each oneyaml is written from scratch for its own language, with an API that feels native there. What they share is behavior: the same reading of every file, the same edits, the same errors. One conformance kit checks every library.