Just a simple .puz parser.
npm install puz-parser --save
const parse = require('puz-parser');
// Or
import parse from 'puz-parser';
// Load a .puz file
const data = new Uint8Array(buffer);
// Parse the Uint8Array data
const puz = parse(data);
Types are available in src/types.ts.