Preparing for system design interviews?  Try bugzed.com →

PEG.js Parser Generator

JSON →
library 0.10.0 ·javascript maintenance
verified Jun 17, 2026

PEG.js is a parser generator for JavaScript that produces fast parsers based on the Parsing Expression Grammar (PEG) formalism. It enables developers to define grammars for custom languages or complex data formats and generate a JavaScript parser function from them. The current stable version, 0.10.0, was released in August 2016. While the project's direct development on PEG.js itself has largely ceased, its successor, Peggy.js (npm: `peggy`), maintains API compatibility and active development. Key differentiators of PEG.js include its simple, expressive grammar syntax, excellent error reporting, and the ability to integrate both lexical and syntactical analysis into a single grammar. It can be used programmatically via a JavaScript API or through a command-line interface, generating parsers in multiple module formats like CommonJS (default), AMD, UMD, or global variables.

total hits 12
actors 3 distinct systems
last hit 28d ago AhrefsBot
GPTBot
4
Script
1
Humans
4

top countries 🇺🇸 United States · VN · 🇨🇦 Canada · 🇫🇷 France · 🇩🇪 Germany