An AI-assisted integration of LeaferJS, an ultra-high-performance 2D Canvas engine designed for building complex graphic editors, games, and responsive UI layouts.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install leafer-js-skill
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install leafer-js-skill using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
LeaferJS is a lightweight 2D graphics and Canvas engine built for modern web applications. Designed to handle up to one million shapes with exceptional rendering speeds, it simplifies the creation of interactive vector graphics, design tools like Figma or Canva, and visual dashboards. This integration for Openclaw Skills empowers AI coding assistants to seamlessly generate, debug, and optimize complex Canvas projects.
By providing native support across diverse execution environments—including standard browsers, Web Workers, Node.js server-side rendering, and WeChat Miniprograms—this skill bridges the gap between AI code generation and robust graphics programming. It fully supports TypeScript, Vue, React, and modern SSR frameworks such as Next.js, making it an essential tool for frontend developer workflows.
Get started quickly with standard package managers using the commands below:
# Install the lightweight UI package (Recommended, 70KB min+gzip)
npm install leafer-ui
# Or install the full bundle containing all standard plugins
npm install leafer
Alternatively, initialize a new structured workspace from scratch:
# Scaffold a Vue + LeaferJS project
npm create leafer@latest my-vue-app -- --template vue
# Scaffold a React + LeaferJS project
npm create leafer@latest my-react-app -- --template react
The engine organizes content structurally through a declarative layout system. Key components and metadata options are mapped below:
| Hierarchy Level | Class Name | Primary Responsibility |
|---|---|---|
| Application Root | App |
Manages multi-layered rendering, coordinating background, active shapes, and interactive controls. |
| Rendering Target | Leafer |
An independent rendering layer bound to a physical canvas context or offscreen view. |
| Layout Groups | Group, Box, Frame |
Structural elements supporting absolute clustering, background styles, padding, and scroll behaviors. |
| Visual Primitives | Rect, Ellipse, Path, Text, Image |
Standard vector or pixel rendering units containing coordinates, styles, and state modifiers. |
All elements support distinct coordinate space transformations including world (absolute), local (relative to parent), box (bounding box relative), and page (relative to viewport).
@leafer-in/state for real-time hover, press, and selected styling.@leafer-in/editor.@leafer-in/flow system.Loading
Converts product screenshots into structured, reusable design systems and self-contained .skill files for AI agents to recreate across any tech stack.

A structured AI agent skill designed to generate multi-scenario names for individuals, brands, and companies with multi-turn risk assessment.

An automated live stream recording processing tool designed to detect highlight moments and slice them into short video clips.

An AI-powered video generation skill that dynamically selects and executes the optimal dLazy CLI model based on user prompts.

A high-performance compiler that translates TypeScript directly to native machine code via LLVM without virtual machines or runtimes.

An AI agent skill that translates natural language data descriptions into standalone, interactive SVG and HTML charts with zero external dependencies.








































