XGrammar
The grammar engine underneath most modern serving stacks — vLLM, SGLang, TensorRT-LLM, MLC — masking tokens to JSON schemas, regexes, and CFGs at near-zero decoding overhead. Where the constrained-generation baseline actually runs in production; still marked beta by its authors.
- section
- Baselines
- source
- github.com
- repo
- mlc-ai/xgrammar
- stars
- 2,029 ▕█████████░░░▏
- 7-day gain
- +5
- forks
- 285
- language
- Python
- license
- Apache-2.0
- last pushed
- nov 18
- added to list
- oct 27
## history
2025-09-071.2k → 2k stars2026-11-27
2026-10-27248 → 285 forks2026-11-27
2026-10-27140 → 213 open issues2026-11-27