New Node.js package renders chess diagrams from FEN strings without a browser
A developer has released @chessvision-org/chess-vision, a zero-dependency open-source package that converts FEN chess position strings into SVG diagrams entirely in server-side JavaScript. The package works across Node.js, Deno, Bun, and browser environments without requiring a DOM, canvas polyfill, or headless Chromium instance. Chess pieces are rendered using inline SVG paths in the CBurnett style popularized by Lichess, eliminating the need for any external resources or image hosting. The library includes built-in FEN validation, support for board flipping and coordinate display, and 20 preset board themes such as ocean, marble, and wood. It is designed for use cases like static site generation, PDF reports, Express API endpoints, and frameworks such as Astro or Next.js.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in