Search by

xberg-io / tree-sitter-language-pack

Goldziher

Pre-compiled tree-sitter grammars for 371 programming languages

Package info

github.com/xberg-io/tree-sitter-language-pack

Language:Rust

Type:php-ext

Ext name:ext-tree_sitter_language_pack

pkg:composer/xberg-io/tree-sitter-language-pack

Statistics

Installs: 23

Dependents: 0

Suggesters: 0

Stars: 489

Open Issues: 1

v1.27.3 2026-11-24 06:33 UTC

This package is auto-updated.

Last update: 2026-11-24 11:31:32 UTC


README

Xberg

tree-sitter-language-pack

Built with alef Rust Python Node.js WASM Java Go C# PHP Ruby Elixir Dart Kotlin Swift Zig C FFI
<!-- Project Info -->
<a href="https://github.com/xberg-io/tree-sitter-language-pack/blob/main/LICENSE">
	<img src="https://img.shields.io/badge/License-MIT-007ec6" alt="License" />
</a>
<a href="https://docs.tree-sitter-language-pack.xberg.io">
	<img src="https://img.shields.io/badge/Docs-tree--sitter--language--pack-007ec6" alt="Documentation" />
</a>
Join Discord

Parse and understand source code in 371 languages, from the language you already work in β€” with one dependency and no grammars to compile.

What and Why?

Add one package and you can parse any of 371 languages, walk their syntax trees, pull out functions, classes, imports, and symbols, and split code into chunks an LLM can use. It works the same whether you call it from Python, Node.js, Go, Java, C#, Ruby, PHP, Elixir, and eight more, or from the shell via the CLI and MCP server.

tree-sitter gives fast, incremental parsers for individual languages, but wiring up hundreds of grammars β€” and reaching them from a non-C ecosystem β€” is the hard part. tree-sitter-language-pack does that work for you: it bundles the most comprehensive set of grammars available behind a single API, ships native bindings for 15 languages, and downloads each parser on first use so the install stays small.

Reach for it whenever you need to process, inspect, or analyze code β€” building developer tooling, feeding a RAG pipeline, or giving an agent structural understanding of a codebase.

Features

Feature Description
371 languages Pre-compiled parsers at ABI 14 (backwards compatible with tree-sitter 0.21–0.26)
Code intelligence Extract functions, classes, imports, docstrings, and symbols from source
Data extraction Hierarchical key-value trees from 17 config/data formats (JSON, YAML, TOML, XML, CSV, …)
Host-native language API get_language() returns native Language objects in Python, Node.js, Go, Java, C#, Kotlin, Swift, Zig, and C
On-demand downloads Parsers are fetched on first use and cached locally for fast, offline reuse
Prefetch & warming prefetch() loads (and downloads) every grammar you need up front, so hot loops only parse
Bundled queries highlights, injections, locals, tags, indents, and folds .scm queries per language, with a process-wide compiled-query cache (Rust)
Selective installation Download only the languages you need; unused parsers are never downloaded
Polyglot bindings Native bindings across 15 languages, including a C ABI for everything else
CLI & MCP server ts-pack download to pre-fetch parsers; MCP integration for AI agents

Supported Languages

This pack includes 371 languages. See the full language list for every supported grammar with extensions and repository links.

Grammars & Bundled Queries

Each grammar bundles a subset of the six standard tree-sitter query types. The table below shows which .scm queries ship with every grammar.

Language Repository ABI highlights injections locals indents folds tags
Abl usagi-coffee/tree-sitter-abl 15 βœ… ❌ ❌ βœ… ❌ βœ…
Abnf grammars/abnf (vendored) 14 ❌ ❌ ❌ ❌ ❌ ❌
Actionscript Rileran/tree-sitter-actionscript 14 ❌ ❌ ❌ ❌ ❌ ❌
Ada briot/tree-sitter-ada 14 βœ… ❌ βœ… ❌ βœ… ❌
Agda tree-sitter/tree-sitter-agda 14 βœ… ❌ ❌ ❌ ❌ ❌
Aiken aiken-lang/tree-sitter-aiken 14 βœ… ❌ ❌ ❌ ❌ ❌
AL SShadowS/tree-sitter-al 15 βœ… ❌ βœ… βœ… βœ… βœ…
Angular dlvandenberg/tree-sitter-angular 14 βœ… βœ… ❌ βœ… βœ… ❌
Apex aheber/tree-sitter-sfapex 14 βœ… ❌ βœ… ❌ βœ… βœ…
Applescript waddie/tree-sitter-applescript 14 βœ… ❌ ❌ βœ… ❌ βœ…
Arduino ObserverOfTime/tree-sitter-arduino 14 βœ… βœ… ❌ ❌ ❌ βœ…
Asciidoc cathaysia/tree-sitter-asciidoc 14 βœ… βœ… ❌ ❌ ❌ ❌
ASM rush-rs/tree-sitter-asm 14 βœ… βœ… ❌ ❌ ❌ ❌
Astro virchau13/tree-sitter-astro 14 βœ… βœ… ❌ ❌ ❌ ❌
Avro victorhqc/tree-sitter-apache-avro 14 βœ… ❌ βœ… ❌ ❌ ❌
Awk Beaglefoot/tree-sitter-awk 14 βœ… ❌ ❌ ❌ ❌ ❌
Ballerina heshanpadmasiri/tree-sitter-ballerina 14 βœ… ❌ ❌ ❌ ❌ ❌
Baml BoundaryML/baml-treesitter 14 βœ… βœ… ❌ ❌ ❌ ❌
Bash TheAuditorTool/tree-sitter-bash 14 βœ… ❌ ❌ ❌ ❌ ❌
Bass vito/tree-sitter-bass 14 βœ… βœ… βœ… βœ… βœ… ❌
Batch davidevofficial/tree-sitter-batch 14 ❌ ❌ ❌ ❌ ❌ ❌
Beancount polarmutex/tree-sitter-beancount 14 βœ… ❌ βœ… βœ… βœ… βœ…
Bibtex latex-lsp/tree-sitter-bibtex 14 βœ… ❌ βœ… ❌ ❌ βœ…
Bicep tree-sitter-grammars/tree-sitter-bicep 14 βœ… βœ… βœ… βœ… βœ… ❌
Bitbake tree-sitter-grammars/tree-sitter-bitbake 14 βœ… βœ… βœ… βœ… βœ… ❌
Blade EmranMR/tree-sitter-blade 14 βœ… βœ… ❌ ❌ ❌ ❌
Bpftrace sgruszka/tree-sitter-bpftrace 14 βœ… βœ… ❌ ❌ βœ… ❌
Brightscript ajdelcimmuto/tree-sitter-brightscript 14 βœ… βœ… ❌ βœ… βœ… ❌
BSL alkoleft/tree-sitter-bsl 14 βœ… βœ… ❌ ❌ ❌ ❌
C xberg-io/tree-sitter-c 14 βœ… ❌ ❌ ❌ ❌ βœ…
C3 c3lang/tree-sitter-c3 14 βœ… βœ… ❌ βœ… βœ… ❌
Caddy Samonitari/tree-sitter-caddy 14 βœ… ❌ ❌ ❌ ❌ ❌
Cairo tree-sitter-grammars/tree-sitter-cairo 14 βœ… βœ… βœ… βœ… βœ… ❌
Cap'n Proto tree-sitter-grammars/tree-sitter-capnp 14 βœ… βœ… βœ… βœ… βœ… ❌
Cedar DuskSystems/tree-sitter-cedar 14 βœ… ❌ ❌ ❌ ❌ βœ…
Cedarschema DuskSystems/tree-sitter-cedar 14 βœ… ❌ ❌ ❌ ❌ βœ…
Cel bufbuild/tree-sitter-cel 14 βœ… βœ… βœ… βœ… βœ… ❌
Cfml cfmleditor/tree-sitter-cfml 14 βœ… βœ… ❌ βœ… βœ… βœ…
Chatito tree-sitter-grammars/tree-sitter-chatito 14 βœ… ❌ ❌ ❌ ❌ βœ…
Chuck tymbalodeon/tree-sitter-chuck 14 βœ… ❌ ❌ ❌ ❌ ❌
Circom Decurity/tree-sitter-circom 14 βœ… ❌ βœ… ❌ ❌ ❌
Clarity xlittlerag/tree-sitter-clarity 14 βœ… ❌ ❌ ❌ ❌ ❌
Clojure sogaiu/tree-sitter-clojure 14 βœ… ❌ ❌ ❌ ❌ ❌
Cmake uyha/tree-sitter-cmake 14 βœ… βœ… ❌ βœ… βœ… ❌
Cobol nolanlwin/tree-sitter-cobol 14 ❌ ❌ ❌ ❌ ❌ ❌
Comment stsewd/tree-sitter-comment 14 ❌ ❌ ❌ ❌ ❌ ❌
Commonlisp theHamsta/tree-sitter-commonlisp 14 ❌ ❌ ❌ ❌ ❌ βœ…
Cooklang addcninblue/tree-sitter-cooklang 14 ❌ ❌ ❌ ❌ ❌ ❌
Corn jakestanger/tree-sitter-corn 14 βœ… ❌ βœ… βœ… βœ… ❌
Cpon tree-sitter-grammars/tree-sitter-cpon 14 βœ… βœ… βœ… βœ… βœ… ❌
Cpp tree-sitter/tree-sitter-cpp 15 βœ… βœ… ❌ ❌ ❌ βœ…
Crystal keidax/tree-sitter-crystal 14 ❌ ❌ ❌ ❌ ❌ ❌
Csharp tree-sitter/tree-sitter-c-sharp 15 βœ… ❌ ❌ ❌ ❌ βœ…
CSS grammar-orchard/tree-sitter-css-orchard 14 βœ… ❌ ❌ ❌ ❌ ❌
Cst tree-sitter-grammars/tree-sitter-cst 14 βœ… ❌ ❌ ❌ ❌ ❌
CSV amaanq/tree-sitter-csv 14 βœ… ❌ ❌ ❌ ❌ ❌
CUDA tree-sitter-grammars/tree-sitter-cuda 15 βœ… ❌ ❌ ❌ ❌ ❌
Cue eonpatapon/tree-sitter-cue 14 βœ… βœ… βœ… βœ… βœ… ❌
Cypher taekwombo/tree-sitter-cypher 14 βœ… ❌ ❌ ❌ ❌ ❌
Cython b0o/tree-sitter-cython 14 βœ… βœ… βœ… βœ… βœ… βœ…
D gdamore/tree-sitter-d 14 βœ… βœ… ❌ βœ… ❌ βœ…
D2 ravsii/tree-sitter-d2 14 βœ… βœ… βœ… ❌ βœ… ❌
Dart UserNobody14/tree-sitter-dart 14 βœ… ❌ ❌ ❌ ❌ βœ…
Desktop ValdezFOmar/tree-sitter-desktop 14 βœ… βœ… ❌ ❌ ❌ ❌
Devicetree joelspadin/tree-sitter-devicetree 14 βœ… ❌ ❌ ❌ ❌ ❌
Dhall jbellerb/tree-sitter-dhall 14 βœ… βœ… ❌ ❌ ❌ ❌
Diff tree-sitter-grammars/tree-sitter-diff 14 βœ… βœ… ❌ ❌ ❌ ❌
Djot treeman/tree-sitter-djot 14 βœ… βœ… βœ… βœ… βœ… ❌
Dockerfile TheAuditorTool/tree-sitter-dockerfile 14 βœ… ❌ ❌ ❌ ❌ ❌
Dot rydesun/tree-sitter-dot 14 βœ… βœ… ❌ ❌ ❌ ❌
Dotenv pnx/tree-sitter-dotenv 14 βœ… ❌ ❌ ❌ ❌ ❌
Doxygen tree-sitter-grammars/tree-sitter-doxygen 14 βœ… βœ… ❌ βœ… ❌ ❌
DTD tree-sitter-grammars/tree-sitter-xml 14 βœ… ❌ ❌ ❌ ❌ ❌
Earthfile glehmann/tree-sitter-earthfile 14 βœ… βœ… ❌ ❌ ❌ ❌
Ebnf RubixDev/ebnf 14 βœ… ❌ ❌ ❌ ❌ ❌
Editorconfig ValdezFOmar/tree-sitter-editorconfig 14 βœ… ❌ ❌ ❌ ❌ ❌
Edoc the-mikedavis/tree-sitter-edoc 14 ❌ ❌ ❌ ❌ ❌ ❌
Eds uyha/tree-sitter-eds 14 ❌ ❌ ❌ ❌ ❌ ❌
Eex connorlay/tree-sitter-eex 14 βœ… βœ… ❌ ❌ ❌ ❌
Eiffel imustafin/tree-sitter-eiffel 14 βœ… ❌ ❌ βœ… ❌ ❌
Elixir elixir-lang/tree-sitter-elixir 14 βœ… βœ… ❌ ❌ ❌ βœ…
Elm razzeee/tree-sitter-elm 14 βœ… βœ… βœ… ❌ ❌ βœ…
Elsa glapa-grossklag/tree-sitter-elsa 14 βœ… βœ… βœ… βœ… βœ… ❌
Elvish elves/tree-sitter-elvish 14 βœ… βœ… ❌ ❌ ❌ ❌
Emacs Lisp Wilfred/tree-sitter-elisp 14 βœ… ❌ ❌ ❌ ❌ βœ…
Embeddedtemplate tree-sitter/tree-sitter-embedded-template 14 βœ… ❌ ❌ ❌ ❌ ❌
Enforce simonvic/tree-sitter-enforce 14 βœ… βœ… βœ… βœ… βœ… βœ…
Erlang WhatsApp/tree-sitter-erlang 14 βœ… ❌ ❌ ❌ ❌ ❌
F# ionide/tree-sitter-fsharp 15 βœ… βœ… βœ… βœ… βœ… βœ…
Facility FacilityApi/tree-sitter-facility 14 βœ… βœ… ❌ βœ… βœ… ❌
Faust khiner/tree-sitter-faust 14 βœ… βœ… βœ… ❌ ❌ ❌
Fennel TravonteD/tree-sitter-fennel 14 ❌ ❌ ❌ ❌ ❌ ❌
Fidl google/tree-sitter-fidl 14 βœ… βœ… ❌ ❌ βœ… ❌
Firrtl tree-sitter-grammars/tree-sitter-firrtl 14 βœ… βœ… βœ… βœ… βœ… ❌
Fish ram02z/tree-sitter-fish 14 βœ… ❌ ❌ ❌ ❌ ❌
Flatbuffers yuanchenxi95/tree-sitter-flatbuffers 14 βœ… ❌ ❌ ❌ ❌ ❌
Fluent tree-sitter/tree-sitter-fluent 14 ❌ ❌ ❌ ❌ ❌ ❌
Foam FoamScience/tree-sitter-foam 14 βœ… βœ… βœ… βœ… βœ… ❌
Forth AlexanderBrevig/tree-sitter-forth 14 βœ… ❌ ❌ ❌ ❌ ❌
Fortran stadelmanma/tree-sitter-fortran 15 βœ… ❌ βœ… βœ… βœ… βœ…
Fsharp Signature ionide/tree-sitter-fsharp 14 βœ… ❌ βœ… ❌ ❌ βœ…
Func tree-sitter-grammars/tree-sitter-func 14 βœ… ❌ ❌ ❌ ❌ ❌
Fusion jirgn/tree-sitter-fusion 14 βœ… ❌ βœ… βœ… βœ… ❌
Gap gap-system/tree-sitter-gap 14 βœ… ❌ βœ… ❌ βœ… βœ…
Gcode ChocolateNao/tree-sitter-gcode 14 βœ… ❌ ❌ ❌ ❌ ❌
Gdscript PrestonKnopp/tree-sitter-gdscript 14 ❌ ❌ ❌ ❌ ❌ ❌
Gdshader airblast-dev/tree-sitter-gdshader 14 βœ… ❌ βœ… ❌ ❌ βœ…
Gherkin SamyAB/tree-sitter-gherkin 14 βœ… ❌ ❌ ❌ ❌ ❌
Git Config the-mikedavis/tree-sitter-git-config 14 βœ… ❌ ❌ ❌ ❌ ❌
Git Rebase the-mikedavis/tree-sitter-git-rebase 14 βœ… ❌ ❌ ❌ ❌ ❌
gitattributes ObserverOfTime/tree-sitter-gitattributes 14 βœ… ❌ ❌ ❌ ❌ ❌
gitcommit gbprod/tree-sitter-gitcommit 14 βœ… βœ… ❌ ❌ ❌ ❌
gitignore shunsambongi/tree-sitter-gitignore 14 ❌ ❌ ❌ ❌ ❌ ❌
Gleam gleam-lang/tree-sitter-gleam 14 βœ… βœ… βœ… ❌ ❌ βœ…
Glimmer ember-tooling/tree-sitter-glimmer 14 βœ… βœ… βœ… βœ… βœ… ❌
GLSL theHamsta/tree-sitter-glsl 14 βœ… ❌ ❌ ❌ ❌ ❌
GN tree-sitter-grammars/tree-sitter-gn 14 βœ… βœ… βœ… βœ… βœ… ❌
gnuplot dpezto/tree-sitter-gnuplot 15 βœ… βœ… ❌ ❌ βœ… ❌
Go tree-sitter/tree-sitter-go 14 βœ… ❌ ❌ ❌ ❌ βœ…
Godot Resource PrestonKnopp/tree-sitter-godot-resource 14 ❌ ❌ ❌ ❌ ❌ ❌
Gomod camdencheek/tree-sitter-go-mod 14 βœ… ❌ ❌ ❌ ❌ ❌
Gosum tree-sitter-grammars/tree-sitter-go-sum 14 βœ… ❌ ❌ ❌ ❌ ❌
Gotmpl ngalaiko/tree-sitter-go-template 14 βœ… ❌ ❌ ❌ ❌ ❌
Gowork omertuc/tree-sitter-go-work 14 βœ… ❌ ❌ ❌ ❌ ❌
Gpg tree-sitter-grammars/tree-sitter-gpg-config 14 βœ… ❌ ❌ ❌ ❌ ❌
Graphql grammars/graphql (vendored) 14 βœ… ❌ ❌ ❌ ❌ ❌
Gren gren-lang/tree-sitter-gren 14 βœ… βœ… βœ… βœ… ❌ βœ…
Groovy Decodetalkers/tree-sitter-groovy 14 ❌ ❌ ❌ ❌ ❌ ❌
Gstlaunch tree-sitter-grammars/tree-sitter-gstlaunch 14 ❌ ❌ ❌ ❌ ❌ ❌
Hack slackhq/tree-sitter-hack 14 βœ… ❌ ❌ ❌ ❌ ❌
Haml vitallium/tree-sitter-haml 14 βœ… βœ… ❌ ❌ ❌ ❌
Hare tree-sitter-grammars/tree-sitter-hare 14 βœ… βœ… βœ… βœ… βœ… ❌
Haskell tree-sitter/tree-sitter-haskell 14 βœ… βœ… βœ… ❌ ❌ ❌
Haskell Persistent MercuryTechnologies/tree-sitter-haskell-persistent 14 ❌ ❌ ❌ ❌ ❌ ❌
Haxe vantreeseba/tree-sitter-haxe 15 βœ… βœ… βœ… ❌ βœ… βœ…
HCL MichaHoffmann/tree-sitter-hcl 14 ❌ ❌ ❌ ❌ ❌ ❌
Heex phoenixframework/tree-sitter-heex 14 βœ… βœ… ❌ ❌ ❌ ❌
Hjson winston0410/tree-sitter-hjson 14 βœ… ❌ ❌ ❌ ❌ ❌
HLSL theHamsta/tree-sitter-hlsl 14 ❌ ❌ ❌ ❌ ❌ ❌
Hocon antosha417/tree-sitter-hocon 14 βœ… ❌ ❌ ❌ ❌ ❌
Hoon urbit-pilled/tree-sitter-hoon 14 βœ… ❌ ❌ ❌ ❌ ❌
HTML tree-sitter/tree-sitter-html 14 βœ… βœ… ❌ ❌ ❌ ❌
Htmldjango interdependence/tree-sitter-htmldjango 14 βœ… βœ… ❌ ❌ ❌ ❌
HTTP rest-nvim/tree-sitter-http 14 βœ… βœ… ❌ ❌ ❌ ❌
Hurl pfeiferj/tree-sitter-hurl 14 βœ… βœ… ❌ βœ… βœ… ❌
Hyprlang tree-sitter-grammars/tree-sitter-hyprlang 14 βœ… βœ… ❌ βœ… βœ… ❌
Idl cathaysia/tree-sitter-idl 14 βœ… βœ… ❌ βœ… ❌ ❌
Idris kayhide/tree-sitter-idris 14 βœ… βœ… βœ… ❌ ❌ ❌
Ini justinmk/tree-sitter-ini 14 βœ… ❌ ❌ ❌ βœ… ❌
Ispc tree-sitter-grammars/tree-sitter-ispc 14 βœ… βœ… ❌ ❌ ❌ βœ…
Jai constantitus/tree-sitter-jai 15 βœ… ❌ ❌ βœ… ❌ ❌
Janet GrayJack/tree-sitter-janet 14 βœ… ❌ βœ… ❌ ❌ ❌
Java grammar-orchard/tree-sitter-java-orchard 14 βœ… ❌ ❌ ❌ ❌ βœ…
Javadoc rmuir/tree-sitter-javadoc 14 βœ… βœ… ❌ ❌ ❌ ❌
JavaScript grammar-orchard/tree-sitter-javascript-orchard 14 βœ… βœ… βœ… ❌ ❌ βœ…
Jinja2 Goldziher/tree-sitter-jinja2 14 ❌ ❌ ❌ ❌ ❌ ❌
Jjdescription ribru17/tree-sitter-jjdescription 14 βœ… βœ… ❌ ❌ ❌ ❌
Jq flurie/tree-sitter-jq 14 ❌ ❌ ❌ ❌ ❌ ❌
Jsdoc tree-sitter/tree-sitter-jsdoc 14 βœ… ❌ ❌ ❌ ❌ ❌
JSON tree-sitter/tree-sitter-json 14 βœ… ❌ ❌ ❌ ❌ ❌
JSON5 Joakker/tree-sitter-json5 14 βœ… ❌ ❌ ❌ ❌ ❌
Jsonnet sourcegraph/tree-sitter-jsonnet 14 βœ… ❌ βœ… ❌ βœ… ❌
Julia tree-sitter/tree-sitter-julia 14 βœ… βœ… βœ… ❌ ❌ ❌
Just casey/tree-sitter-just 14 βœ… βœ… βœ… βœ… βœ… ❌
Kcl kcl-lang/tree-sitter-kcl 14 βœ… ❌ ❌ ❌ ❌ ❌
Kconfig tree-sitter-grammars/tree-sitter-kconfig 14 βœ… βœ… βœ… βœ… βœ… ❌
KDL tree-sitter-grammars/tree-sitter-kdl 14 βœ… βœ… βœ… βœ… βœ… ❌
Kitty OXY2DEV/tree-sitter-kitty 14 βœ… βœ… ❌ ❌ ❌ ❌
Koka koka-community/tree-sitter-koka 14 βœ… βœ… ❌ βœ… ❌ ❌
Kotlin fwcd/tree-sitter-kotlin 14 βœ… ❌ ❌ ❌ ❌ βœ…
Koto koto-lang/tree-sitter-koto 14 βœ… βœ… βœ… ❌ βœ… ❌
Kusto Willem-J-an/tree-sitter-kusto 14 βœ… ❌ ❌ ❌ ❌ ❌
Lalrpop traxys/tree-sitter-lalrpop 14 βœ… βœ… βœ… ❌ ❌ ❌
LaTeX latex-lsp/tree-sitter-latex 14 ❌ ❌ ❌ ❌ ❌ ❌
Lean Julian/tree-sitter-lean 15 βœ… βœ… βœ… βœ… βœ… ❌
Ledger cbarrete/tree-sitter-ledger 14 ❌ ❌ ❌ ❌ ❌ ❌
Leo r001/tree-sitter-leo 14 βœ… βœ… ❌ ❌ ❌ ❌
Less rhino1998/tree-sitter-less 14 βœ… ❌ ❌ ❌ ❌ ❌
Linkerscript tree-sitter-grammars/tree-sitter-linkerscript 14 βœ… βœ… βœ… βœ… βœ… ❌
Liquid hankthetank27/tree-sitter-liquid 14 βœ… βœ… ❌ ❌ ❌ ❌
LLVM benwilliamgraham/tree-sitter-llvm 14 βœ… ❌ ❌ ❌ ❌ ❌
Llvm Mir Flakebi/tree-sitter-llvm-mir 14 βœ… ❌ ❌ ❌ ❌ ❌
Lua MunifTanjim/tree-sitter-lua 14 βœ… βœ… βœ… ❌ ❌ βœ…
Luadoc tree-sitter-grammars/tree-sitter-luadoc 14 βœ… ❌ ❌ ❌ ❌ ❌
Luap tree-sitter-grammars/tree-sitter-luap 14 βœ… ❌ ❌ ❌ ❌ ❌
Luau tree-sitter-grammars/tree-sitter-luau 14 βœ… βœ… βœ… βœ… βœ… ❌
M68k grahambates/tree-sitter-m68k 14 βœ… ❌ ❌ ❌ βœ… ❌
Magik krn-robin/tree-sitter-magik 14 βœ… ❌ ❌ ❌ ❌ ❌
Make alemuller/tree-sitter-make 14 βœ… ❌ ❌ ❌ ❌ ❌
Markdown tree-sitter-grammars/tree-sitter-markdown 14 βœ… βœ… ❌ ❌ ❌ ❌
Markdown Inline tree-sitter-grammars/tree-sitter-markdown 14 βœ… βœ… ❌ ❌ ❌ ❌
MATLAB acristoffers/tree-sitter-matlab 14 βœ… βœ… βœ… βœ… βœ… βœ…
Menhir Kerl13/tree-sitter-menhir 14 ❌ ❌ ❌ ❌ ❌ ❌
Mermaid monaqa/tree-sitter-mermaid 14 βœ… ❌ ❌ ❌ ❌ ❌
Meson Decodetalkers/tree-sitter-meson 14 βœ… ❌ ❌ ❌ βœ… ❌
Mlir artagnon/tree-sitter-mlir 14 βœ… ❌ βœ… ❌ ❌ ❌
Mojo HerringtonDarkholme/tree-sitter-mojo 14 βœ… ❌ ❌ ❌ ❌ βœ…
Moonbit moonbitlang/tree-sitter-moonbit 14 βœ… βœ… βœ… βœ… βœ… βœ…
Motoko polychromatist/tree-sitter-motoko 14 βœ… ❌ ❌ ❌ ❌ ❌
Move tree-sitter-grammars/tree-sitter-move 14 ❌ ❌ ❌ ❌ ❌ ❌
NASM naclsn/tree-sitter-nasm 14 βœ… βœ… ❌ ❌ ❌ ❌
Netlinx Norgate-AV/tree-sitter-netlinx 14 βœ… ❌ βœ… ❌ βœ… βœ…
nginx opa-oz/tree-sitter-nginx 14 βœ… βœ… ❌ ❌ βœ… ❌
Nickel nickel-lang/tree-sitter-nickel 14 βœ… βœ… ❌ ❌ ❌ ❌
Nim aMOPel/tree-sitter-nim 14 βœ… ❌ ❌ βœ… ❌ ❌
Ninja alemuller/tree-sitter-ninja 14 βœ… ❌ ❌ βœ… βœ… ❌
Nix nix-community/tree-sitter-nix 14 βœ… βœ… βœ… ❌ ❌ βœ…
Norg nvim-neorg/tree-sitter-norg 14 ❌ ❌ ❌ ❌ ❌ ❌
Norg Meta nvim-neorg/tree-sitter-norg-meta 14 βœ… ❌ ❌ ❌ ❌ ❌
Nqc tree-sitter-grammars/tree-sitter-nqc 14 βœ… βœ… βœ… βœ… βœ… ❌
Nushell nushell/tree-sitter-nu 14 βœ… βœ… ❌ βœ… βœ… ❌
Objc tree-sitter-grammars/tree-sitter-objc 14 βœ… βœ… βœ… βœ… βœ… ❌
OCaml tree-sitter/tree-sitter-ocaml 14 βœ… ❌ βœ… ❌ ❌ βœ…
OCaml Interface tree-sitter/tree-sitter-ocaml 14 βœ… ❌ βœ… ❌ ❌ βœ…
Ocamllex atom-ocaml/tree-sitter-ocamllex 14 βœ… βœ… ❌ ❌ ❌ ❌
Odin tree-sitter-grammars/tree-sitter-odin 14 βœ… βœ… βœ… βœ… βœ… ❌
Openscad bollian/tree-sitter-openscad 14 βœ… βœ… βœ… βœ… ❌ ❌
Org milisims/tree-sitter-org 14 βœ… ❌ ❌ ❌ ❌ ❌
Pascal Isopod/tree-sitter-pascal 14 βœ… ❌ βœ… ❌ ❌ ❌
Pem tree-sitter-grammars/tree-sitter-pem 14 βœ… ❌ ❌ ❌ ❌ ❌
Penrose klukaszek/tree-sitter-penrose 14 βœ… βœ… ❌ ❌ βœ… ❌
Perl tree-sitter-perl/tree-sitter-perl 15 βœ… βœ… ❌ ❌ βœ… ❌
PGN rolandwalker/tree-sitter-pgn 14 βœ… ❌ ❌ ❌ ❌ ❌
PHP tree-sitter/tree-sitter-php 14 βœ… βœ… ❌ ❌ ❌ βœ…
Phpdoc claytonrcarter/tree-sitter-phpdoc 14 ❌ ❌ ❌ ❌ ❌ ❌
Picat dlr-ft/tree-sitter-picat 14 βœ… ❌ βœ… ❌ ❌ βœ…
Pkl apple/tree-sitter-pkl 14 βœ… βœ… βœ… ❌ ❌ ❌
Plantuml grammars/plantuml (vendored) 14 ❌ ❌ ❌ ❌ ❌ ❌
PO tree-sitter-grammars/tree-sitter-po 14 βœ… βœ… ❌ ❌ βœ… ❌
Poe Filter tree-sitter-grammars/tree-sitter-poe-filter 14 βœ… ❌ ❌ ❌ ❌ ❌
Pony tree-sitter-grammars/tree-sitter-pony 14 βœ… βœ… βœ… βœ… βœ… βœ…
Postgres gmr/tree-sitter-postgres 15 βœ… βœ… ❌ ❌ ❌ ❌
Postscript smoeding/tree-sitter-postscript 14 ❌ ❌ ❌ ❌ ❌ ❌
Powershell airbus-cert/tree-sitter-powershell 14 βœ… ❌ ❌ ❌ βœ… ❌
Printf tree-sitter-grammars/tree-sitter-printf 14 βœ… ❌ ❌ ❌ ❌ ❌
Prisma LumaKernel/tree-sitter-prisma 14 βœ… ❌ ❌ ❌ ❌ ❌
Prolog Rukiza/tree-sitter-prolog 14 ❌ ❌ ❌ ❌ ❌ ❌
Promela grammars/promela (vendored) 14 βœ… ❌ ❌ ❌ ❌ ❌
Promql MichaHoffmann/tree-sitter-promql 14 ❌ ❌ ❌ ❌ ❌ ❌
Properties tree-sitter-grammars/tree-sitter-properties 14 βœ… ❌ ❌ ❌ ❌ βœ…
Protocol Buffers coder3101/tree-sitter-proto 14 βœ… βœ… ❌ βœ… βœ… βœ…
Prql PRQL/tree-sitter-prql 14 βœ… βœ… ❌ ❌ ❌ ❌
PSV amaanq/tree-sitter-csv 14 βœ… ❌ ❌ ❌ ❌ ❌
Pug zealot128/tree-sitter-pug 14 βœ… ❌ ❌ ❌ ❌ ❌
Puppet tree-sitter-grammars/tree-sitter-puppet 14 βœ… βœ… βœ… βœ… βœ… ❌
PureScript postsolar/tree-sitter-purescript 14 βœ… βœ… βœ… ❌ ❌ ❌
Pymanifest tree-sitter-grammars/tree-sitter-pymanifest 14 βœ… ❌ ❌ ❌ ❌ ❌
Python grammar-orchard/tree-sitter-python-orchard 14 βœ… ❌ ❌ ❌ ❌ βœ…
QL tree-sitter/tree-sitter-ql 14 βœ… ❌ ❌ ❌ ❌ βœ…
QML yuja/tree-sitter-qmljs 14 βœ… ❌ βœ… ❌ ❌ ❌
Qmldir tree-sitter-grammars/tree-sitter-qmldir 14 βœ… βœ… ❌ ❌ ❌ ❌
Query tree-sitter-grammars/tree-sitter-query 14 βœ… βœ… ❌ ❌ βœ… ❌
R r-lib/tree-sitter-r 14 βœ… ❌ βœ… ❌ ❌ βœ…
Racket 6cdh/tree-sitter-racket 14 βœ… ❌ βœ… ❌ ❌ βœ…
Rasi Fymyte/tree-sitter-rasi 14 βœ… ❌ βœ… ❌ ❌ ❌
Razor tris203/tree-sitter-razor 15 βœ… βœ… ❌ ❌ ❌ ❌
RBS joker1007/tree-sitter-rbs 14 βœ… βœ… ❌ βœ… βœ… ❌
re2c tree-sitter-grammars/tree-sitter-re2c 14 βœ… βœ… βœ… βœ… βœ… ❌
Readline tree-sitter-grammars/tree-sitter-readline 14 βœ… βœ… ❌ βœ… ❌ ❌
Reason grammars/reason (vendored) 14 βœ… βœ… βœ… ❌ ❌ ❌
Regex tree-sitter/tree-sitter-regex 14 βœ… ❌ ❌ ❌ ❌ ❌
Rego FallenAngel97/tree-sitter-rego 14 βœ… ❌ βœ… ❌ ❌ ❌
Requirements tree-sitter-grammars/tree-sitter-requirements 14 βœ… ❌ ❌ ❌ ❌ ❌
Rescript rescript-lang/tree-sitter-rescript 14 βœ… βœ… βœ… ❌ ❌ ❌
reStructuredText stsewd/tree-sitter-rst 14 ❌ ❌ ❌ ❌ ❌ ❌
Robot Hubro/tree-sitter-robot 14 βœ… ❌ ❌ βœ… βœ… ❌
Roc faldor20/tree-sitter-roc 14 βœ… βœ… βœ… βœ… ❌ βœ…
Ron tree-sitter-grammars/tree-sitter-ron 14 βœ… βœ… βœ… βœ… βœ… ❌
Rshtml rshtml/tree-sitter-rshtml 14 βœ… βœ… ❌ ❌ ❌ ❌
Rtf GoodNotes/tree-sitter-rtf 14 ❌ ❌ ❌ ❌ ❌ ❌
Ruby tree-sitter/tree-sitter-ruby 14 βœ… ❌ βœ… ❌ ❌ βœ…
Rust grammar-orchard/tree-sitter-rust-orchard 14 βœ… βœ… ❌ ❌ ❌ βœ…
Sas ix-infrastructure/tree-sitter-sas 14 βœ… ❌ ❌ ❌ ❌ βœ…
Scala tree-sitter/tree-sitter-scala 15 βœ… ❌ βœ… βœ… ❌ βœ…
Scfg rockorager/tree-sitter-scfg 14 βœ… ❌ ❌ ❌ ❌ ❌
Scheme 6cdh/tree-sitter-scheme 14 βœ… ❌ ❌ ❌ ❌ ❌
SCSS tree-sitter-grammars/tree-sitter-scss 14 βœ… ❌ ❌ ❌ ❌ ❌
Sflog aheber/tree-sitter-sfapex 14 βœ… ❌ ❌ ❌ ❌ ❌
Slang tree-sitter-grammars/tree-sitter-slang 15 ❌ ❌ ❌ ❌ ❌ ❌
Slim kolen/tree-sitter-slim 14 βœ… βœ… ❌ ❌ ❌ ❌
Slint slint-ui/tree-sitter-slint 14 ❌ ❌ ❌ ❌ ❌ ❌
Smali tree-sitter-grammars/tree-sitter-smali 14 βœ… βœ… βœ… βœ… βœ… ❌
Smalltalk tom95/tree-sitter-smalltalk 14 βœ… ❌ ❌ ❌ ❌ ❌
Smithy indoorvivants/tree-sitter-smithy 14 βœ… ❌ ❌ ❌ ❌ ❌
Sml MatthewFluet/tree-sitter-sml 14 βœ… ❌ ❌ ❌ ❌ ❌
Snakemake osthomas/tree-sitter-snakemake 14 βœ… βœ… βœ… βœ… βœ… βœ…
Snl minijackson/tree-sitter-snl 14 βœ… βœ… ❌ ❌ ❌ ❌
Solidity JoranHonig/tree-sitter-solidity 14 βœ… ❌ βœ… ❌ ❌ βœ…
Soql aheber/tree-sitter-sfapex 14 βœ… ❌ ❌ ❌ ❌ ❌
Sosl aheber/tree-sitter-sfapex 14 βœ… ❌ ❌ ❌ ❌ ❌
Souffle langston-barrett/tree-sitter-souffle 14 ❌ ❌ ❌ ❌ ❌ ❌
Sourcepawn nilshelmig/tree-sitter-sourcepawn 14 βœ… βœ… βœ… ❌ ❌ βœ…
Sparql GordianDziwis/tree-sitter-sparql 14 ❌ ❌ ❌ ❌ ❌ ❌
Spicedb jzelinskie/tree-sitter-spicedb 14 βœ… βœ… ❌ ❌ ❌ βœ…
SQL Goldziher/tree-sitter-sql 14 βœ… ❌ ❌ βœ… ❌ ❌
Sql Bigquery takegue/tree-sitter-sql-bigquery 14 βœ… ❌ ❌ ❌ ❌ ❌
Squirrel tree-sitter-grammars/tree-sitter-squirrel 14 βœ… βœ… βœ… βœ… βœ… ❌
Ssh Config ObserverOfTime/tree-sitter-ssh-config 14 βœ… βœ… ❌ ❌ ❌ ❌
Stan WardBrian/tree-sitter-stan 14 βœ… ❌ βœ… ❌ ❌ βœ…
Starlark tree-sitter-grammars/tree-sitter-starlark 14 βœ… βœ… βœ… βœ… βœ… ❌
Strace sigmaSd/tree-sitter-strace 14 βœ… ❌ ❌ ❌ ❌ ❌
Styled mskelton/tree-sitter-styled 14 ❌ ❌ ❌ ❌ ❌ ❌
Superhtml kristoff-it/superhtml 14 βœ… βœ… ❌ ❌ ❌ ❌
Svelte Himujjal/tree-sitter-svelte 14 βœ… βœ… βœ… βœ… βœ… βœ…
Sway FuelLabs/tree-sitter-sway 14 βœ… βœ… βœ… βœ… ❌ ❌
Swift alex-pinkus/tree-sitter-swift 14 βœ… βœ… βœ… βœ… βœ… βœ…
Sxhkdrc RaafatTurki/tree-sitter-sxhkdrc 14 ❌ ❌ ❌ ❌ ❌ ❌
Sysml nomograph/tree-sitter-sysml 14 βœ… ❌ βœ… βœ… βœ… βœ…
Systemtap ok-ryoko/tree-sitter-systemtap 14 βœ… ❌ βœ… ❌ ❌ ❌
Systemverilog gmlarumbe/tree-sitter-systemverilog 15 βœ… ❌ ❌ ❌ ❌ ❌
T32 xasc/tree-sitter-t32 14 βœ… βœ… βœ… ❌ βœ… βœ…
Tablegen Flakebi/tree-sitter-tablegen 14 βœ… ❌ ❌ ❌ ❌ ❌
Tact tact-lang/tree-sitter-tact 14 βœ… βœ… βœ… βœ… βœ… βœ…
Task alexanderbrevig/tree-sitter-task 14 ❌ ❌ ❌ ❌ ❌ ❌
Tcl lewis6991/tree-sitter-tcl 14 βœ… ❌ ❌ βœ… βœ… ❌
Teal euclidianAce/tree-sitter-teal 14 βœ… ❌ βœ… ❌ βœ… ❌
Templ vrischmann/tree-sitter-templ 14 βœ… βœ… ❌ βœ… βœ… βœ…
Tera uncenter/tree-sitter-tera 14 βœ… βœ… βœ… ❌ ❌ ❌
Terraform tree-sitter-grammars/tree-sitter-hcl 14 ❌ ❌ ❌ ❌ ❌ ❌
Test tree-sitter-grammars/tree-sitter-test 14 ❌ ❌ ❌ ❌ ❌ ❌
Textproto PorterAtGoogle/tree-sitter-textproto 14 βœ… ❌ ❌ βœ… βœ… ❌
Thrift tree-sitter-grammars/tree-sitter-thrift 14 βœ… βœ… βœ… βœ… βœ… ❌
Tlaplus tlaplus-community/tree-sitter-tlaplus 14 βœ… βœ… βœ… ❌ βœ… ❌
Tmux Freed-Wu/tree-sitter-tmux 14 βœ… βœ… ❌ ❌ βœ… ❌
Todotxt arnarg/tree-sitter-todotxt 14 βœ… ❌ ❌ ❌ ❌ ❌
TOML tree-sitter-grammars/tree-sitter-toml 14 βœ… ❌ ❌ ❌ ❌ ❌
Tsql Crary-Systems/tree-sitter-tsql 14 ❌ ❌ ❌ ❌ ❌ ❌
TSV amaanq/tree-sitter-csv 14 βœ… ❌ ❌ ❌ ❌ ❌
TSX tree-sitter/tree-sitter-typescript 14 βœ… ❌ βœ… ❌ ❌ βœ…
Turtle GordianDziwis/tree-sitter-turtle 14 ❌ ❌ ❌ ❌ ❌ ❌
Twig gbprod/tree-sitter-twig 14 βœ… βœ… ❌ ❌ ❌ ❌
TypeScript tree-sitter/tree-sitter-typescript 14 βœ… ❌ βœ… ❌ ❌ βœ…
Typespec happenslol/tree-sitter-typespec 14 βœ… βœ… ❌ βœ… βœ… ❌
Typoscript Teddytrombone/tree-sitter-typoscript 14 βœ… βœ… ❌ βœ… βœ… ❌
Typst uben0/tree-sitter-typst 14 βœ… βœ… ❌ ❌ ❌ ❌
udev tree-sitter-grammars/tree-sitter-udev 14 βœ… βœ… ❌ ❌ ❌ βœ…
Ungrammar tree-sitter-grammars/tree-sitter-ungrammar 14 βœ… βœ… βœ… βœ… βœ… ❌
Unison kylegoetz/tree-sitter-unison 14 βœ… ❌ ❌ ❌ ❌ ❌
Uxntal tree-sitter-grammars/tree-sitter-uxntal 14 βœ… βœ… βœ… βœ… βœ… ❌
V nedpals/tree-sitter-v 14 βœ… ❌ ❌ ❌ ❌ ❌
Vala matbme/tree-sitter-vala 14 βœ… ❌ ❌ ❌ ❌ ❌
Vb CodeAnt-AI/tree-sitter-vb-dotnet 14 ❌ ❌ ❌ ❌ ❌ ❌
Vento ventojs/tree-sitter-vento 14 βœ… βœ… ❌ ❌ ❌ ❌
Verilog tree-sitter/tree-sitter-verilog 14 ❌ ❌ ❌ ❌ ❌ ❌
VHDL alemuller/tree-sitter-vhdl 14 βœ… ❌ ❌ ❌ ❌ ❌
Vhs charmbracelet/tree-sitter-vhs 14 βœ… ❌ ❌ ❌ ❌ ❌
Vim tree-sitter-grammars/tree-sitter-vim 14 βœ… βœ… ❌ ❌ βœ… ❌
Vimdoc neovim/tree-sitter-vimdoc 14 βœ… βœ… ❌ ❌ ❌ ❌
Vrl belltoy/tree-sitter-vrl 14 βœ… βœ… βœ… βœ… βœ… ❌
Vue tree-sitter-grammars/tree-sitter-vue 14 βœ… βœ… ❌ βœ… βœ… ❌
Wast mkatychev/tree-sitter-wasm 14 ❌ ❌ ❌ ❌ ❌ ❌
Wat mkatychev/tree-sitter-wasm 14 ❌ ❌ ❌ ❌ ❌ ❌
Wdl stjude-rust-labs/tree-sitter-wdl 14 βœ… βœ… ❌ ❌ ❌ ❌
WGSL szebniok/tree-sitter-wgsl 14 βœ… ❌ ❌ ❌ βœ… ❌
Wgsl Bevy tree-sitter-grammars/tree-sitter-wgsl-bevy 14 ❌ ❌ ❌ ❌ ❌ ❌
Wit bytecodealliance/tree-sitter-wit 14 βœ… βœ… ❌ ❌ βœ… ❌
Wolfram grammars/wolfram (vendored) 14 βœ… ❌ ❌ ❌ ❌ ❌
X86asm bearcove/tree-sitter-x86asm 14 βœ… ❌ ❌ ❌ ❌ ❌
Xcompose tree-sitter-grammars/tree-sitter-xcompose 14 βœ… ❌ ❌ ❌ ❌ ❌
Xit synaptiko/tree-sitter-xit 14 ❌ ❌ ❌ ❌ ❌ ❌
XML tree-sitter-grammars/tree-sitter-xml 14 βœ… ❌ ❌ ❌ ❌ ❌
Xquery grammars/xquery (vendored) 14 βœ… ❌ ❌ ❌ ❌ ❌
Xresources ValdezFOmar/tree-sitter-xresources 14 βœ… βœ… ❌ ❌ ❌ ❌
YAML tree-sitter-grammars/tree-sitter-yaml 14 βœ… ❌ ❌ ❌ ❌ ❌
Yang Hubro/tree-sitter-yang 14 βœ… βœ… ❌ βœ… βœ… ❌
Yuck tree-sitter-grammars/tree-sitter-yuck 14 βœ… βœ… βœ… βœ… βœ… ❌
Yul grammars/yul (vendored) 14 ❌ ❌ ❌ ❌ ❌ ❌
Zig tree-sitter-grammars/tree-sitter-zig 14 βœ… βœ… βœ… βœ… βœ… ❌
Ziggy kristoff-it/ziggy 14 βœ… ❌ ❌ βœ… ❌ ❌
Ziggy Schema kristoff-it/ziggy 14 βœ… ❌ ❌ βœ… ❌ ❌
Zsh georgeharker/tree-sitter-zsh 15 βœ… βœ… βœ… ❌ βœ… ❌

⭐ Star this repo to show your support β€” it helps others discover tree-sitter-language-pack.

Quick Start

Language Packages

Rust
cargo add tree-sitter-language-pack

See Rust README for full documentation.

Python
pip install tree-sitter-language-pack

See Python README for full documentation.

Node.js
npm install @xberg-io/tree-sitter-language-pack

See Node.js README for full documentation.

Go
go get github.com/xberg-io/tree-sitter-language-pack/packages/go

See Go README for full documentation.

Java

Available on Maven Central as io.xberg.treesitterlanguagepack:tree-sitter-language-pack. See Java README for the dependency snippet and current version.

C#
dotnet add package XbergIo.TreeSitterLanguagePack

See .NET README for full documentation.

Ruby
gem install tree_sitter_language_pack

See Ruby README for full documentation.

PHP
composer require xberg-io/tree-sitter-language-pack

See PHP README for full documentation.

Elixir

Add {:tree_sitter_language_pack, "~> 1.0"} to your mix.exs dependencies. See Elixir README for full documentation.

WebAssembly
npm install @xberg-io/tree-sitter-language-pack-wasm

See WebAssembly README for full documentation.

Dart / Flutter
dart pub add tree_sitter_language_pack

See Dart README for full documentation.

Kotlin (Android)

Available on Maven Central as io.xberg.tslp.android:tree-sitter-language-pack-android. See Kotlin Android README for the dependency snippet and current version.

Swift

Available via Swift Package Manager. See Swift README for the SwiftPM package URL and current version.

Zig
zig fetch --save <release tarball url>

See Zig README for full documentation.

C/C++ (FFI)

Build from source as part of this workspace. See FFI README for full documentation.

CLI
cargo install ts-pack-cli
# Or install the prebuilt binary via cargo-binstall:
cargo binstall ts-pack-cli
brew trust xberg-io/tap
brew install xberg-io/tap/ts-pack

Windows users can install the same binary through Scoop:

scoop bucket add xberg https://github.com/xberg-io/scoop-bucket
scoop install ts-pack

Or run without a persistent install (the proxy package fetches the native binary):

npx @xberg-io/ts-pack-cli parse <file>

See CLI README for full documentation.

MCP Server

The CLI bundles an MCP server for integration with AI agents. Start it with:

ts-pack mcp

The server runs over stdio by default. For HTTP transport:

ts-pack mcp --transport http --host 127.0.0.1 --port 8011

Register with Claude Code:

claude mcp add tree-sitter-language-pack -- ts-pack mcp --transport stdio

Or add to your Claude Desktop config at ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "tree-sitter-language-pack": {
      "command": "ts-pack",
      "args": ["mcp", "--transport", "stdio"]
    }
  }
}

The MCP server exposes 8 tools: parse, process, detect_language, list_languages, info, download, cache_dir, and clean_cache. It also provides resources for the available language catalog and a prompt for code analysis.

The marketplace plugin from xberg-io/tree-sitter-language-pack auto-registers the server β€” see AI Coding Assistants below to install it instead of manual registration.

For detailed setup, transport options, and tool reference, see the MCP Server guide.

AI Coding Assistants

Install the tree-sitter-language-pack plugin from xberg-io/tree-sitter-language-pack. It ships the tree-sitter-language-pack agent skills (parse and extract code intelligence from 371 languages) β€” select your runtime below.

The bundle targets Claude Code, Codex, Cursor, Gemini CLI, Kimi, OpenCode, Factory Droid, Hermes, Pi, Agent Plugins and GitHub Copilot CLI. Read the plugin guide for runtime resources, CLI prerequisites and configuration. MCP-capable adapters expose the product's tools; Hermes uses a local stdio bridge and explicitly selected skills. Pi loads skills and prompt templates and requires the product CLI for executable operations.

Install only the public Agent Skills, without a plugin or MCP registration, using the skills CLI:

npx skills add xberg-io/tree-sitter-language-pack --list
npx skills add xberg-io/tree-sitter-language-pack

Choose the skills and target agents interactively. Installing instructions does not install the product CLI or configure provider credentials.

Claude Code
/plugin marketplace add xberg-io/tree-sitter-language-pack
/plugin install tree-sitter-language-pack@tree-sitter-language-pack
Codex CLI
/plugins add https://github.com/xberg-io/tree-sitter-language-pack

Then search for tree-sitter-language-pack and select Install Plugin.

Cursor

Settings β†’ Plugins β†’ Add from URL β†’ https://github.com/xberg-io/tree-sitter-language-pack, then select tree-sitter-language-pack.

Gemini CLI

From a checkout of this repository:

gemini extensions install ./plugin

The manifest is inside plugin/. See the Gemini extension reference for local installation and updates.

Factory Droid
droid plugin marketplace add https://github.com/xberg-io/tree-sitter-language-pack
droid plugin install tree-sitter-language-pack@tree-sitter-language-pack
GitHub Copilot CLI
copilot plugin marketplace add https://github.com/xberg-io/tree-sitter-language-pack
copilot plugin install tree-sitter-language-pack@tree-sitter-language-pack
opencode

Add the package to opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["@xberg-io/opencode-tree-sitter-language-pack"]
}

Documentation

Full guides, the host-native language API, data extraction, the CLI and MCP server, and the complete language list live at docs.tree-sitter-language-pack.xberg.io.

Part of Xberg

  • Xberg β€” document intelligence: text, tables, metadata from 101 formats with optional OCR.
  • Xberg Enterprise β€” managed extraction API with SDKs, dashboards, and observability.
  • crawlberg β€” web crawling and scraping with HTMLβ†’Markdown and headless-Chrome fallback.
  • html-to-markdown β€” fast, lossless HTMLβ†’Markdown engine.
  • liter-llm β€” universal LLM API client with native bindings for 14 languages and 165 providers.
  • tree-sitter-language-pack β€” tree-sitter grammars and code-intelligence primitives.
  • alef β€” the polyglot binding generator that produces every per-language binding across the 5 polyglot repos.

Contributing

Contributions are welcome! See CONTRIBUTING.md for guidelines.

Join our Discord community for questions and discussion.

In-repository grammars

The sources in grammars/ are inputs to the parser build. We maintain ABNF, GraphQL, PlantUML, Promela, Reason, Wolfram Language, XQuery, and Yul here because their upstream grammars are effectively unmaintained.

The build fetches other grammars at pinned upstream commits, including CSS, Java, JavaScript, Python, and Rust from Grammar Orchard.

Each directory records its upstream GitHub repository and exact import commit in ATTRIBUTIONS.md and carries the upstream LICENSE. Git tracks the grammar definitions, hand-written scanners, queries, and tests where present. The vendoring script generates and stages the C parsers under parsers/ for compilation.

License

MIT β€” see LICENSE for details.

All included tree-sitter grammars are permissively licensed (MIT, Apache-2.0, BSD, ISC, or similar). Copyleft licenses (GPL, AGPL, LGPL, MPL) are not accepted. See CONTRIBUTING.md for grammar inclusion criteria.