Parser infrastructure for the TypeScript stack. Apache 2.0. No VC, no corporate sponsor.
- pegmill — PEG parser generator with parametric rules. Drop-in for PEG.js 0.10.0.
npm install pegmill. - pegmill.github.io — landing with roadmap and comparison against Outlines, XGrammar, and llama.cpp GBNF.
Constrained decoding for open-weight LLMs lives in Python (Outlines) or C++ (XGrammar, llama.cpp GBNF). TypeScript has no equivalent with full PEG expressiveness. Pegmill fills that gap.
A star helps. A link from your own project docs helps more. GitHub Sponsors and zag@cpan.org for anything bigger.