# tree-sitter/tree-sitter

An incremental parsing system for programming tools

Repository: https://github.com/tree-sitter/tree-sitter
Canonical: https://ross.abutalabs.com/products/tree-sitter
Homepage: https://tree-sitter.github.io
Language: Rust
License: MIT
License Family: permissive
Topics: incremental, parsing, c, tree-sitter, rust, parser, wasm
Last push: 2026-08-26T07:56:42+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 4683, "days_push": 7, "days_rel": 10, "gap_med": 16, "n_releases_24m": 32}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 26764, forks 2847 (observed 2026-08-28T04:11:47.112773+00:00)

## What it is
Tree-sitter is a parser generator tool and incremental parsing library that builds concrete syntax trees for source files and efficiently updates them as edits occur. Its runtime is written in pure C with bindings for Rust, WebAssembly, and other languages, making it embeddable in editors and programming tools.

## Use cases
- build syntax highlighting for a code editor
- parse source code incrementally on every keystroke
- write a grammar for a new programming language
- analyze or refactor code with a concrete syntax tree
- parse code robustly even with syntax errors
- embed a fast parser in a Rust or C application

## When to choose
- you need fast, incremental re-parsing of edited source files
- you want error-tolerant parsing that still yields useful trees
- you need a dependency-free C runtime embeddable anywhere
- you're building editor features like highlighting, folding, or code navigation

## When to avoid
- you only need one-off parsing with no incremental updates
- you need full semantic analysis or type checking rather than syntax trees
- your target format is data (JSON/YAML) rather than programming languages

## Facets
- artifact type: library
- maturity: stable
- function: parser, interpreter, developer-tools
- domain: parsers, programming-languages, developer-tools, text-editors
- platform: cross-platform, rust, cpp, wasm, python, cli
- tags: parser-generator, syntax-highlighting, concrete-syntax-tree, error-tolerant-parsing, editor-integration, code-analysis, nodejs

## Member repositories
- tree-sitter/tree-sitter (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:47.112773+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-29T16:55:50.049548+00:00, confidence not recorded.
  - readme: https://github.com/tree-sitter/tree-sitter (fetched 2026-08-28T04:11:47.112773+00:00, sha 7984c7c2f775)
  - homepage: https://tree-sitter.github.io (fetched 2026-08-29T07:52:01.741171+00:00, sha f09585a2ecfa)
  - registry_crates: https://crates.io/api/v1/crates/tree-sitter (fetched 2026-08-29T07:52:01.750312+00:00, sha 5d8a92ffb956)
- Data as of 2026-08-30T08:39:29.467469+00:00.
