Preparing for system design interviews?  Try bugzed.com →

PGN Parser

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

pgn-parser is a JavaScript library designed to parse Portable Game Notation (PGN) chess files into a structured JavaScript object and validate their syntax. The package, currently at version 2.2.1, was last published about a year ago, suggesting it is in maintenance mode rather than active development. It provides a straightforward API to convert PGN strings into a detailed data structure, including game headers, moves, variations, comments, and Numerical Annotation Glyphs (NAGs). This library focuses specifically on PGN parsing and outputting a rich JSON object, differentiating it from full-featured chess engines or game state management libraries. It is built using PEG.js for grammar definition, allowing robust and precise parsing of the PGN specification.

total hits 10
actors 4 distinct systems
last hit 14d ago AhrefsBot
GPTBot
4
Script
1
Search engines
1

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