# @tree-sitter-grammars/tree-sitter-yaml

> YAML grammar for tree-sitter

Latest version **0.7.1** (published 2025-05-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tree-sitter-grammars/tree-sitter-yaml
pnpm add @tree-sitter-grammars/tree-sitter-yaml
yarn add @tree-sitter-grammars/tree-sitter-yaml
bun add @tree-sitter-grammars/tree-sitter-yaml
```

## Health

**Score 45/100 (D)** — status: stable.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.7.1 |
| Published | 2025-05-22 |
| First published | 2024-04-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.3 MB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 58 |
| Author | Ika |
| Maintainers | muniftanjim, amaanq, chronobserver |
| Keywords | incremental, parsing, tree-sitter, yaml |

## Links

- npm: https://www.npmjs.com/package/@tree-sitter-grammars/tree-sitter-yaml
- Repository: https://github.com/tree-sitter-grammars/tree-sitter-yaml
- Homepage: https://github.com/tree-sitter-grammars/tree-sitter-yaml#readme
- Issues: https://github.com/tree-sitter-grammars/tree-sitter-yaml/issues
- npm.io page: https://npm.io/package/@tree-sitter-grammars/tree-sitter-yaml

## Dependencies (2)

- [node-addon-api](https://npm.io/package/node-addon-api.md) ^8.3.1
- [node-gyp-build](https://npm.io/package/node-gyp-build.md) ^4.8.4

## Alternatives

- [monaco-yaml](https://npm.io/package/monaco-yaml.md) — 420.1K weekly downloads
- [@crewx/workflow](https://npm.io/package/@crewx/workflow.md) — 3.1K weekly downloads
- [yaml-cat](https://npm.io/package/yaml-cat.md) — 38 weekly downloads
- [nunjucks-in-yaml](https://npm.io/package/nunjucks-in-yaml.md) — 9 weekly downloads
- [shopify-symlinks](https://npm.io/package/shopify-symlinks.md) — 3 weekly downloads

## Recent versions

- 0.7.1 (latest) — 2025-05-22
- 0.7.0 — 2024-12-04
- 0.6.1 — 2024-04-30
- 0.6.0 — 2024-04-10

## README

# tree-sitter-yaml

[![CI][ci]](https://github.com/tree-sitter-grammars/tree-sitter-yaml/actions)
[![discord][discord]](https://discord.gg/w7nTvsVJhm)
[![matrix][matrix]](https://matrix.to/#/#tree-sitter-chat:matrix.org)
[![npm][npm]](https://www.npmjs.com/package/@tree-sitter-grammars/tree-sitter-yaml)
[![crates][crates]](https://crates.io/crates/tree-sitter-yaml)
[![pypi][pypi]](https://pypi.org/project/tree-sitter-yaml/)

A tree-sitter parser for YAML files.

## References

- [YAML version 1.2](https://yaml.org/spec/1.2.2/)

[ci]: https://img.shields.io/github/actions/workflow/status/tree-sitter-grammars/tree-sitter-yaml/ci.yml?logo=github&label=CI
[discord]: https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord
[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix
[npm]: https://img.shields.io/npm/v/%40tree-sitter-grammars%2Ftree-sitter-yaml?logo=npm
[crates]: https://img.shields.io/crates/v/tree-sitter-yaml?logo=rust
[pypi]: https://img.shields.io/pypi/v/tree-sitter-yaml?logo=pypi&logoColor=ffd242

---
_Source: https://npm.io/package/@tree-sitter-grammars/tree-sitter-yaml · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
