yaml vs js-yaml
In 4,818 JavaScript/TypeScript projects set up for AI coding agents, yaml is a dependency in 193 (4.0%) and js-yaml in 134 (2.8%): yaml is 1.4× as common. Among repos created in the last 90 days that use a utilities tool, yaml is in 17.2% and js-yaml in 7.8%, against 8.4% and 6.1% of older ones. 12 projects list both, often a sign of a migration or of a monorepo with several apps.
Utilities npm Updated Oct 20, 2026
Side by side
| yaml | js-yaml | |
|---|---|---|
| Agent projects that use it | 193 | 134 |
| Rank in utilities | #5 | #6 |
| In new repos with a utilities tool (last 90 days) | 17.2% | 7.8% |
| In older repos with one | 8.4% | 6.1% |
| Downloads, last 7 days | 133M | 176M |
| GitHub stars | 1,697 | 6,636 |
| Last push to its repo | Sep 23, 2026 | Oct 15, 2026 |
| License | ISC | MIT |
| Funding | — | — |
| Projects that list both | 12 | |
Downloads include CI runs and installs as a dependency of other packages. Stars and pushes are from GitHub's API; downloads from npm.
By coding agent
| Projects set up for | JavaScript/TypeScript repos | yaml | js-yaml |
|---|---|---|---|
| Claude Code | 2,580 | 5.9% | 3.0% |
| GitHub Copilot | 2,339 | 3.6% | 3.0% |
| Cursor | 1,987 | 2.7% | 2.3% |
| Gemini CLI | 416 | 8.7% | 4.3% |
| OpenAI Codex | 399 | 7.3% | 3.8% |
| OpenCode | 295 | 4.4% | 2.4% |
| OpenClaw | 226 | 21.7% | 4.9% |
| Devin Desktop | 228 | 3.9% | 2.2% |
| Kiro | 125 | 4.0% | 0% |
| Roo-Code | 90 | 5.6% | 0% |
Share of the JavaScript/TypeScript repos configured for each agent (its config file in the repo) that list the tool. A repo set up for two agents counts for both.
yaml
JavaScript YAML parser and stringifier with full spec compliance.
Most often used with it:
| tsx | 56.5% of its projects |
|---|---|
| Vitest | 65.3% of its projects |
| TypeScript | 91.2% of its projects |
| Model Context Protocol SDK (JavaScript) | 35.2% of its projects |
| chalk | 31.6% of its projects |
npm install yaml
js-yaml
Fast YAML parser and serializer for JavaScript with spec compliance.
Most often used with it:
| Model Context Protocol SDK (JavaScript) | 32.8% of its projects |
|---|---|
| Prettier | 48.5% of its projects |
| ESLint | 60.4% of its projects |
| Ajv | 23.9% of its projects |
| TypeScript | 72.4% of its projects |
npm install js-yaml
More matchups
How we count
Projects are public GitHub repos our weekly scan finds through coding-agent config files (CLAUDE.md, AGENTS.md, .cursor/mcp.json and others); a project uses a tool when its package.json, requirements.txt or pyproject.toml lists it. "Same job" was checked for every pair, so add-ons and companions are never paired. Shares by repo age compare repos created in the last 90 days with older ones in the same scan. More on the method.