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. Ships on npm:
npm install pegmill(latest: v0.1.3 with TypeScript declarations and esbuild browser bundle). - 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++ (llama.cpp GBNF; XGrammar ships C++ with JS via emscripten build, no npm package). 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.