← Back to Skills Marketplace
openlark

LeaferJS — Canvas 2D Engine

by OpenLark · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
58
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install leaferjs
Description
LeaferJS — Canvas 2D Engine. Lightweight and high-performance Canvas 2D graphics engine, supporting multiple platforms such as Web, Worker, Node.js, and Mini...
README (SKILL.md)

LeaferJS — Canvas 2D Engine

Use Cases

Suitable for UI rendering, graphic editing, data visualization, game development, and other scenarios.

Quick Start

npm install leafer-ui                         # ~70KB min+gzip
npm install leafer                             # 98KB + all plugins
npm install @leafer-ui/worker                  # Web Worker
npm install @leafer-ui/node skia-canvas        # Node.js
npm install @leafer-ui/miniapp                 # Mini-program (≥v3.6.0)

CDN: \x3Cscript src="https://unpkg.com/[email protected]/dist/web.min.js">\x3C/script> (Global variable LeaferUI, Image/PointerEvent aliases MyImage/MyPointerEvent)

import { Leafer, Rect } from 'leafer-ui'
const leafer = new Leafer({ view: window })
leafer.add(new Rect({ x: 100, y: 100, width: 100, height: 100, fill: '#32cd79' }))

Reference Index

File Coverage
references/quick-start.md Engine creation / configuration / viewport / framework integration (Vue/React/Nuxt/Next/SSR)
references/elements.md All graphic elements + styles + export + remove/destroy + performance + animation
references/groups.md Group/Box/Frame/App layers, editor
references/events.md Events / PointerEvent / lifecycle / debugging / engine config
references/install.md Multi-platform installation + FAQ + version management
Usage Guidance
Install only if you want LeaferJS reference guidance. Be aware that the documented export and screenshot APIs can capture canvas content, so use them deliberately when the canvas may contain private user data.
Capability Tags
crypto
Capability Assessment
Purpose & Capability
The files coherently describe LeaferJS setup, canvas elements, events, groups, installation, and export APIs for a Canvas 2D engine.
Instruction Scope
Examples include exporting canvas images, Base64 data, screenshots, and JSON; these are user-directed library features, but users should avoid exporting sensitive canvas content unintentionally.
Install Mechanism
Installation guidance is limited to expected npm packages and a public CDN example for LeaferJS; no bundled executable scripts or privileged install steps are present.
Credentials
Browser, worker, Node, and mini-program examples fit the stated multi-platform graphics-engine purpose.
Persistence & Privilege
No persistence, credential handling, background agent setup, privileged access, or automatic mutation behavior is present in the artifacts.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install leaferjs
  3. After installation, invoke the skill by name or use /leaferjs
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of leaferjs skill. - Provides a lightweight, high-performance Canvas 2D engine (LeaferJS) for multiple platforms. - Supports use cases including UI rendering, graphic editing, data visualization, and game development. - Quick start guides for npm installation and CDN usage included. - Reference index links to in-depth documentation for engine setup, elements, groups, events, and multi-platform installation.
Metadata
Slug leaferjs
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is LeaferJS — Canvas 2D Engine?

LeaferJS — Canvas 2D Engine. Lightweight and high-performance Canvas 2D graphics engine, supporting multiple platforms such as Web, Worker, Node.js, and Mini... It is an AI Agent Skill for Claude Code / OpenClaw, with 58 downloads so far.

How do I install LeaferJS — Canvas 2D Engine?

Run "/install leaferjs" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is LeaferJS — Canvas 2D Engine free?

Yes, LeaferJS — Canvas 2D Engine is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does LeaferJS — Canvas 2D Engine support?

LeaferJS — Canvas 2D Engine is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created LeaferJS — Canvas 2D Engine?

It is built and maintained by OpenLark (@openlark); the current version is v1.0.0.

💬 Comments