{"id":13492211,"url":"https://github.com/peggyjs/peggy","last_synced_at":"2025-05-13T19:12:47.705Z","repository":{"id":37001177,"uuid":"314800339","full_name":"peggyjs/peggy","owner":"peggyjs","description":"Peggy: Parser generator for JavaScript","archived":false,"fork":false,"pushed_at":"2025-05-06T20:17:26.000Z","size":10412,"stargazers_count":1053,"open_issues_count":27,"forks_count":67,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-05-06T21:27:43.776Z","etag":null,"topics":["parser","peg","pegjs"],"latest_commit_sha":null,"homepage":"https://peggyjs.org/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peggyjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-11-21T11:52:39.000Z","updated_at":"2025-05-06T20:17:30.000Z","dependencies_parsed_at":"2024-02-17T23:28:17.450Z","dependency_job_id":"1317ca9f-4f0f-4c44-bbe1-bd386b194882","html_url":"https://github.com/peggyjs/peggy","commit_stats":{"total_commits":1450,"total_committers":37,"mean_commits":"39.189189189189186","dds":0.3255172413793104,"last_synced_commit":"cdf878e4ee59ab9d3e5199abb87ef34a8d7ce642"},"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peggyjs%2Fpeggy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peggyjs%2Fpeggy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peggyjs%2Fpeggy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peggyjs%2Fpeggy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peggyjs","download_url":"https://codeload.github.com/peggyjs/peggy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254010815,"owners_count":21998994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["parser","peg","pegjs"],"created_at":"2024-07-31T19:01:04.067Z","updated_at":"2025-05-13T19:12:47.656Z","avatar_url":"https://github.com/peggyjs.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","others"],"sub_categories":[],"readme":"[![Tests](https://github.com/peggyjs/peggy/actions/workflows/node.js.yml/badge.svg)](https://github.com/peggyjs/peggy/actions/workflows/node.js.yml)\n[![npm version](https://img.shields.io/npm/v/peggy.svg)](https://www.npmjs.com/package/peggy)\n[![License](https://img.shields.io/badge/license-mit-blue.svg)](https://opensource.org/licenses/MIT)\n\n# Peggy\n\nPeggy is a simple parser generator for JavaScript that produces fast parsers\nwith excellent error reporting. You can use it to process complex data or\ncomputer languages and build transformers, interpreters, compilers and other\ntools easily.\n\nPeggy is the successor of [PEG.js](https://github.com/pegjs/pegjs).\n\n## Migrating from PEG.js\n\nPeggy version 1.x.x is API compatible with the most recent PEG.js release.\nFollow these steps to upgrade:\n\n1. Uninstall `pegjs` (and `@types/pegjs` if you're using the DefinitelyTyped type definitions - we now include type definitions as part of peggy itself).\n2. Replace all `require(\"pegjs\")` or `import ... from \"pegjs\"` with `require(\"peggy\")` or `import ... from \"peggy\"` as appropriate.\n3. Any scripts that use the `pegjs` cli should now use `peggy` instead.\n4. That's it!\n\n## Features\n\n- Simple and expressive grammar syntax\n- Integrates both lexical and syntactical analysis\n- Parsers have excellent error reporting out of the box\n- Based on [parsing expression\n  grammar](http://en.wikipedia.org/wiki/Parsing_expression_grammar) formalism\n  — more powerful than traditional LL(_k_) and LR(_k_) parsers\n- Usable [from your browser](https://peggyjs.org/online), from the command line,\n  or via JavaScript API\n- [Source map](https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Use_a_source_map) support\n\n## Getting Started\n\n[Online version](https://peggyjs.org/online) is the easiest way to generate a\nparser. Just enter your grammar, try parsing few inputs, and download generated\nparser code.\n\n## Documentation\n\nFull documentation is available at [peggyjs.org](https://peggyjs.org/documentation.html).\n\n## Development\n\nTo get started, check out peggy, install the dependencies, and run build:\n\n```bash\ngit clone https://github.com/peggyjs/peggy.git\ncd peggy\nnpm install\n(cd docs \u0026\u0026 npm install)\n(cd web-test \u0026\u0026 npm install)\nnpm run build\nnpm run test:web\n```\n\nPlease see the [Contribution Guidelines](CONTRIBUTING.md) for details on how\nto contribute code.\n\n## Links\n\n- [Project website](https://peggyjs.org/)\n- [Wiki](https://github.com/peggyjs/peggy/wiki)\n- [Source code](https://github.com/peggyjs/peggy)\n- [Issue tracker](https://github.com/peggyjs/peggy/issues)\n- [Discussions](https://github.com/peggyjs/peggy/discussions)\n- [Browser Benchmark Suite](https://peggyjs.org/development/benchmark.html)\n- [Browser Test Suite](https://peggyjs.org/development/test.html)\n- [Contribution Guidelines](CONTRIBUTING.md)\n- [Discord Server](https://discord.gg/HU5tbEbwAB)\n\nPeggy was originally developed by [David Majda](https://majda.cz/)\n([@dmajda](http://twitter.com/dmajda)). It is currently maintained by\n[Joe Hildebrand](https://github.com/hildjj) ([@hildjj](https://twitter.com/hildjj)).\n\nYou are welcome to contribute code. Unless your contribution is really trivial\nyou should [get in touch with us](https://discord.gg/HU5tbEbwAB)\nfirst — this can prevent wasted effort on both sides.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeggyjs%2Fpeggy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeggyjs%2Fpeggy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeggyjs%2Fpeggy/lists"}