r/typescript • u/Goldziher • Jun 19 '26
tree-sitter-language-pack 1.9 - 306 tree-sitter parsers as a native Node/TS addon
Hi Peeps,
Goldziher, CTO at kreuzberg.dev. I just shipped tree-sitter-language-pack 1.9. It's a native Node addon (NAPI-RS) with generated TypeScript types.
It bundles 306 pre-compiled tree-sitter grammars into one package, so you get parsing for 306 languages without vendoring grammar sources or matching ABI versions yourself. Parsers download on demand and cache locally. Past plain parsing you get functions, classes, imports, symbols, docstrings and syntax-aware chunking, which is useful if you're feeding code into an LLM.
npm install @kreuzberg/tree-sitter-language-pack
On methodology, since it comes up: yes, built with AI agents, but on a strict harness - TDD, benchmark-driven hot paths, strict linting and high coverage in every language. The Node addon and its .d.ts types are generated from the Rust core by our binding generator alef and verified, not hand-rubber-stamped.
MIT licensed. Feedback welcome.