Dev.to
6/28/2026

How to render chess diagrams in Node.js (no DOM, no canvas, no headless browser)
Short summary
@chessvision-org/chess-vision is a zero-dependency Node.js library that generates chess diagrams as self-contained SVG without requiring DOM, canvas, or headless browsers. The library supports FEN validation, 20 built-in themes, and embeds directly in HTML, PDFs, or REST APIs. Includes a full FEN parser and board manipulation utilities.
- •Zero-dependency library generates chess diagrams as SVG in Node.js, Deno, Bun, and browsers
- •Supports FEN parsing, validation, piece movement, and 20 built-in board themes
- •Diagrams embed directly in HTML/PDFs or serve via API without external resources
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



