PGN Parser

JSON →
library 2.2.1 ·javascript maintenance
verified May 27, 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 20
actors 8 distinct systems
last hit 18h ago human
GPTBot
2
Script
1
ClaudeBot
1
MetaBot
1
Search engines
2
Humans
1

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