pegmill
PEG parser generator for TypeScript. PEG grammars as LLM output constraints.-
Verified
We've verified that the organization pegmill controls the domain:
- pegmill.dev
peg ::= mill
Parser infrastructure for the TypeScript stack. Apache 2.0. Independently funded, sustainable through OSS-aligned commercial services.
Projects
- 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.
Why this exists
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.
Support
A star helps. A link from your own project docs helps more. GitHub Sponsors and hello@pegmill.dev for anything bigger.
Popular repositories Loading
-
pegmill
pegmill
Public
PEG grammars as LLM output constraints. TypeScript-native parser generator with parametric rules.
-
pegmill.github.io
pegmill.github.io
Public
Landing page for Pegmill — PEG grammars as LLM output constraints
HTML
-
.github
.github
Public
Community health and organization profile
Repositories
Showing 3 of 3 repositories-
pegmill.github.io
Public
Landing page for Pegmill — PEG grammars as LLM output constraints
Uh oh!
There was an error while loading. Please reload this page.
pegmill/pegmill.github.io's past year of commit activity HTML 0 Apache-2.0 0 0 0 Updated May 25, 2026 -
.github
Public
Community health and organization profile
Uh oh!
There was an error while loading. Please reload this page.
pegmill/.github's past year of commit activity 0 0 0 0 Updated May 16, 2026 -
pegmill
Public
PEG grammars as LLM output constraints. TypeScript-native parser generator with parametric rules.
Uh oh!
There was an error while loading. Please reload this page.
pegmill/pegmill's past year of commit activity JavaScript 5 Apache-2.0 1 0 0 Updated May 16, 2026
People
Top languages
Loading…
Uh oh!
There was an error while loading. Please reload this page.
Most used topics
Loading…
Uh oh!
There was an error while loading. Please reload this page.