LeaferJS is an open Canvas engine for large, editable, interactive graphics in the browser and on Node.js. Leafer UI is its UI presentation layer package.
Overview
LeaferJS targets web graphics where many layers must stay interactive at once. It uses a scene tree, DOM-like APIs, and editing features so developers can build design tools, whiteboards, and data-heavy canvases without sacrificing responsiveness on dense scenes.
The engine supports vector shapes, SVG paths, Flex-style layout inside Canvas, hit testing, gestures, animations, and an Editor plugin for move, scale, rotate, and multi-select. It can run in the browser, on Node.js for server rendering or batch image output, and in WeChat mini programs per project docs.
Leafer UI is the UI layer repository in the LeaferJS family. Benchmarks on the project site compare creation time, memory, and frame rates against other Canvas libraries at very large element counts.
Typical uses named in project materials include infinite canvases, graphic editors, industrial topology views, posters, light games, and AI-assisted layout workflows. Core functionality is MIT-licensed; optional commercial PxGrow plugins address extreme editing scenarios.
Key features
- Large-scale interactive scene tree
- Built-in graphic editor plugin
- Flex layout on Canvas
- Drag, zoom, and gesture input
- SVG import and export
- JSON scene save and restore
- Node.js and browser runtimes
- Rich text and HTML embedding
Use cases
- Figma-style web editors
- Infinite canvas products
- Industrial visualization dashboards
- Poster and batch image generation