Installation
Yugioh Card renders Yu-Gi-Oh!, Rush Duel, Yu-Gi-Oh! card backs, Field Center Cards, and Yu-Gi-Oh! Series 2 layouts on Canvas with LeaferJS. The npm package provides an ESM entry point and TypeScript declarations.
Browser
bash
npm install yugioh-cardPrepare the assets, then follow the browser guide to render and download your first card. You can also try the editor in Playground.
Node.js
bash
npm install yugioh-card skia-canvasskia-canvas supplies the Canvas implementation for Node.js. Put the assets on disk and run the Node.js example to export several cards with one instance.
If you already use 1.x, see the migration guide.