pgn-viewer was born as the third or fourth attempt to get a nice PGN viewer for our chess club web site. PGN stands for Portable Game Notation which was born in the late 80s, early 90s of the last century. I provided some of the translations there ...
I first started using pgn4web and others as part of our Wordpress Installation, but I had difficulties here and there. At the end, I wanted to have a viewer that was at least as nice as the one from chess.com (later: from lichess.org).
The implementation contains the following parts:
To start with pgn-viewer, you have to do the following steps:
examples
.
div
section with a unique ID.script
section that defines which API of the viewer should be used. See the
examples section how to do it.
Currently the pgn-viewer is provided as NPM library. So the recommended way to get any version is:
npm install @mliebelt/pgn-viewer
.