中文   EN
✨ Easy-to-use 🌸 Canvas Engine 🌿
Effortlessly build interactive graphics and editing — an infinite canvas engine for the AI era
Quick Start
Nice ◠‿◠ Day
Getting Started Scenarios
Efficient Drawing
Generate images, short videos, printed materials...
Flex auto layout, center-based drawing, backend batch generation, Gradients, inner & outer shadows, clipping, masking, erasing
UI Interaction
Mini games, interactive applications, industrial visualization...
Cross-platform interaction events, gestures, CSS states, cursor,Animation, states, transitions, motion paths, sprites, arrows, connections
Graphic Editing
AI infinite canvas, AI design tool, graphic editors...
Rich graphic editing features, highly customizable,Rulers, snapping, viewport control, scrollbars
Live Demo
Online Playground Environment
GitHub GitHub
Core Advantages
1million
Interactive Rectangle
1.28seconds
Creation Time
320MB
Memory Usage
Graphic interaction and editing scenarios
Test environment: 2K display laptop / Chrome V143.0
Create Elements Create
Time and memory usage for creating 1M interactive rectangles (including initial render)
10K
100K
1M
Drag Elements Drag
Average FPS when dragging a single element among 1M interactive rectangles
10K
100K
1M
Pan View Move
Average FPS when panning 100K interactive rectangles on screen
10K
100K
1M
Zoom View Zoom
Average FPS when zooming 100K interactive rectangles
10K
100K
1M
Dynamic Elements Dynamic
Average FPS of 16K interactive rectangles moving randomly in the view
16K
100K
1M
Zoom Images Image
Average FPS within the first 6 seconds when zooming 1K images (1000×600px)
1K
100K
1M
GitHub
Performance Benchmark Test
We use this as a baseline for continuous performance optimization
Product Cases
Nano Banana AI
Image Editing Tool
OmniSystem
Integrated Information Management System
Spin Master
What to eat for lunch?
Light & Shadow Calendar
DIY Beautiful Calendar
Icon Workshop
Your Personal Icon Customization Expert
Tuling Screenshot Tool
All-in-one Screenshot and Beautification Plugin
Frame Watermark Elf
Quickly Add Watermarks to Your Photos
fig2leafer
Render Figma Files with Leafer
Lazyva
Online Design Tool (Mobile Supported)
Simple Design
Free Online Design and Image Processing Tool
Fun Design
PS Posters, Avatars, Collages, Logos
Bead Design
WeChat Mini Program for DIY Bead Creations
Creative Emoji
DIY Fun WeChat Emojis
Boundless Cloud Image
Extensible B/S Image Editing Tool
Gzm Design
Open Source Poster Designer
leafer-ui
Modern UI Drawing and Interaction Framework
Use Cases
What Makes It Different
Focused on graphic interaction and editing scenarios
Layout & Rendering
Browser-level layout capabilities for complex UI building
Leafer
Fabric
Konva
Pixi
Absolute & Relative Layout
Freely position elements
Auto Layout (Flex)
Flex-like layout, simpler and more intuitive for fast content arrangement
Anchor Layout
Draw elements around a center point, unaffected by width and height
Origin Layout
Set a unified reference point for rotation, scaling, and translation
Partial Layout & Rendering
Only update changed areas to improve performance
Coordinate System
Supports multi-level coordinate systems (box/internal/local/world), with convenient transformations
Bounding Box System
Unified bounding box system for precise geometry, collision, and layout calculations
Bounds Change Events
Listen to bounding box size changes across coordinate systems
Layout Lifecycle Events
Customize layout logic at each stage
Layered Rendering
Render content in layers with different update frequencies for performance
Render Lifecycle Events
Customize rendering logic at each stage
Appearance & Style
Rich styles and visual effects comparable to professional tools
Leafer
Fabric
Konva
Pixi
Fill
Fill elements with color, gradient, or pattern
Stroke
Add stroke to elements
Fixed Size
Element size remains constant during zoom
Fixed Stroke Width
Stroke width remains constant during zoom
Outer Shadow
Outer shadow style
Inner Shadow
Inner shadow style
Box Shadow
Same as CSS boxShadow effect
Fixed Shadow
Shadow remains constant during zoom
Multiple Fill/Stroke/Shadow
Support multiple layered styles
Path Corner Radius
Supports corner rounding between curves and lines
Filters & Effects
Supports CSS-style filters
Advanced Gradients
Supports linear, radial, conic gradients
Pattern Fill
Supports various fill modes like cover, fit, repeat
Fixed Pattern
Pattern remains constant during zoom
Pattern Gap
Supports spacing between patterns
Pattern Interlace
Supports interlaced pattern arrangement
Group Opacity (No Overlap)
Children render as a single group opacity
Highlight Element
Highlight one element while dimming others
Mask & Clip
Supports masking and clipping like Photoshop
Eraser
Erase parts of elements
Blend Mode
Supports blending modes like normal, multiply, screen
Sub Blend Mode
Control blending for individual parts
Pixel Alignment
Ensure crisp rendering on non-retina displays
Features are driven by user needs, and many more are not shown here
Professional Scenarios
Online Design Tool
Figma - Valuation: $19.5B
InVision - Valuation: $2B
Canva - Valuation: $40B
Online Whiteboard
Miro - Valuation: $17.5B
Mural - Valuation: $2B
Microsoft Whiteboard
Online Documents
Notion - Valuation: $10B
Google Docs
Microsoft Office 365
No-code Platforms
Webflow - Valuation: $4B
Framer - Series B $24M
Application Frameworks
Flutter - Mobile app framework
PixiJS - Game development framework
Leafer UI - UI graphics framework
Data Visualization
D3.js - Popular visualization library
Chart.js - Chart library
ECharts - Data visualization library
Scenario Coverage
Step1
Efficient Drawing
Design posters, illustrations, UI interfaces
SCADA systems, data visualization
Training AI for drawing...
Step2
Graphic & Image Editing
Poster and image editors
Architectural and vector-based design software
Powering professional design tools...
Step3
Web & Applications
Auto layout, interaction states, scrollbars
Component-based systems, HTML conversion
Supporting visual production workflows...
Step4
Games & Animation
Games, animations, path animations
WebGPU/WebGL acceleration, morph animations
Supporting visual design systems...
Graphic Editing
Easy to Learn & Use


import { Leafer, Rect } from 'leafer-ui'

// Create an interactive app with a responsive window
const leafer = new Leafer({ view: window })

// Create a draggable rectangle
const rect = new Rect({
  x: 100,
  y: 100,
  width: 200,
  height: 200,
  fill: '#32cd79',
  draggable: true
})

leafer.add(rect)

We Couldn’t Afford Canva, So We Built an Open-Source Online Designer with LeaferJS
[Open Source Story] Hello everyone, we are the development team of Gzm Design. In our daily work, we rely heavily on various online design tools to create posters, event graphics, and marketing materials. These tools are mature, but as usage deepens, some issues gradually emerge.
Author:Gzm Design    2026/04/09
Abandoning Heavy 3D: I Rebuilt Our School Library Seat System with LeaferJS
[Open Source Story] Hello everyone, I am Seeridia, a student developer. As a frequent “power user” of the library, I deal with the seat reservation system every day. But honestly, the original system experience was quite frustrating.
Author:Seeridia    2026/03/30
5 Years of Open Source: I Created 20 Million in Value but Ended Up 800K in Debt
After 5 years of striving in Beijing, trading strands of white hair for a miracle. See how a Chinese developer rises against the odds.
Author:Leafer    2026/03/26
From “Zero Graphics Background” to “Poster Editor Launch”: My Love-Hate Journey with LeaferJS
[Open Source Story] Hello everyone, I’m Ranbow! Last year, our team launched an online design tool called "Tu Jing Ling", mainly for poster editing, batch image processing, and AI image generation. Feel free to check it out.
Author:Ranbow    2026/03/20
Call for Submissions: Share Your Open Source Story with LeaferJS
We’ve seen many real and amazing stories—some use it for architectural drawing, some for animation editing software, some for AI infinite canvas, some for tunnel monitoring, some for design tools, and some have achieved million-node production data visualization...
Author:Leafer    2026/03/19
[Pixel Growth] Five Years of Persistence: From Open Source to Profitability
I wanted to build an open-source graphics engine capable of handling millions of elements smoothly, making design and graphic editing more fluid, and supporting professional creative tools at the level of Adobe and Figma, allowing frontend developers to unleash their creativity.
Author:Leafer    2025/10/31
LeaferJS Community Question Guide
Found a bug or have suggestions? Feel free to submit an issue on GitHub. Your contributions help make LeaferJS stronger! We also plan to train and integrate external AI assistants, expected to launch in the coming months, to automatically answer LeaferJS-related questions.
Author:Leafer    2025/02/07
LeaferJS Introduces a 4-Day Work Week to Explore More Efficient Open Source Collaboration
New year, new momentum! To focus on core breakthroughs, LeaferJS officially starts a 4-day work week (Monday, Tuesday, Thursday, Friday), aiming to boost creativity, optimize development rhythm, and attract more talented developers to join the community.
Author:Leafer    2025/02/06
"Blooming Heart": From Dream Inspiration to Tencent Cloud AI Hackathon Success
On January 11, 2025, I flew from Beijing to Shanghai to participate in an AI hackathon hosted by Tencent Cloud. The event was held at East China University of Science and Technology, where I joined as a judge and award presenter.
Author:Leafer    2025/01/23
LeaferJS Community Launch: Driving Global Popularity Like Vue
Hi everyone, I’m Wan Chao (Leafer), founder of the LeaferJS open-source engine. I’d like to share a story of dreams and persistence, and sincerely invite those interested to join us in writing the next chapter of this open-source journey.
Author:Leafer    2024/11/20
LeaferJS Appears at AI Competition, Million-Follower Creator “Xiao Hua” Wins with a Hilarious Entry
At the 2024 Programmer’s Day, the “Super Code Factory” competition was held grandly. As an innovative graphics rendering engine, LeaferJS provided strong technical support, helping participants realize creative programming and interactive design.
Author:Leafer    2024/11/06
LeaferJS Releases New Animation, State, Transition, and Game Features
Provides rich animation features, supporting delay, loop, and seek. You can create keyframe animations, swing animations, transition animations, path animations, and scroll animations. With the Robot element, you can quickly build game characters with walking and attack actions.
Author:Leafer    2024/09/19
LeaferJS × Cloud Studio: A Powerful Playground Environment
Is there an online Playground where you can directly run official examples and share code snippets and demos? While thinking about this, I received a message from Gan Mi, product lead of Tencent Cloud Studio.
Author:Leafer    2024/08/20
LeaferJS 1.0 Official Release: A Powerful and Easy-to-Use Canvas Rendering Engine
Hello everyone, I’m Wan Chao, founder of LeaferJS. After more than 3 years of development, our open-source engine has matured and is now officially released.
Author:Leafer    2024/07/09
♫ Blooming in Adversity: The Story of an Independent Developer
It has been exactly 3 years since I started my journey in Beijing. In these long and uncertain years, facing financial struggles and unknowns, I can hardly imagine how I persevered.
Author:Leafer    2024/04/08
LeaferJS Selected in OSChina 2023 Annual Highlights!
LeaferJS is a vibrant HTML5 Canvas 2D rendering engine with the ability to instantly create 1 million shapes. It can be combined with AI for drawing and interface generation.
Author:Leafer    2023/12/31
LeaferJS Engine Released: Unlock a Colorful Digital Creative World!
Welcome to the world of LeaferJS—an engine that sparks creativity and unlocks endless possibilities! Here, digital product development is no longer difficult, but an enjoyable journey of exploration.
Author:Leafer    2023/06/28
User Reviews
Join Promotion
Join the Ecosystem, Collaborate for Mutual Success
Benefiting 10,000,000+ developers worldwide
Our Mission
Make digital product development simpler
Vision & Culture
We are planning to build a self-sustaining, continuously growing world-class open-source community, Enable anyone to easily participate and gain growth and rewards
Grow continuously like a sprouting tree, full of hope and vitality
Thanks: Astro Vue Vite Vitest Vitepress TypeDoc pnpm Rollup.js Node.js skia-canvas @napi-rs/canvas monaco-editor danmu.js
Open Source Partners
Contact Us

Please specify your purpose ~

技术交流1群

技术交流2群

技术交流3群

技术交流4群

技术交流5群

技术交流6群

技术交流7群

技术交流8群
Gold Sponsor
Silver Sponsor
༺Bronze Sponsor༻
用户zw8T394C 用户zw8T398C 龙眼吃多了上火 用户zw8T392T 用户z89CSw69 用户CzP9SCAz Kim 用户249AzA8v l0f5c7bf 夏先生 yinuo 用户3wTwAz78 用户zw8T39zT 用户249AzA82 用户CzP9SCvz 用户39A334xT 用户3wTwAz3x 用户zw8T39zC 稀饭、微凉 用户CzP9SCT4 便宜VPS服务器 菲鸽 szhua Cheng Suezp beyond 用户3PvP2S63 o Arvin finallycc 用户39A3346C 大雷 用户CzP9SC4z 随风 用户z89CSwT9 用户3wTwAzCx UPMuling 军杨 桔子雨工作室 用户zw8T37xC 前端炒饭仔 用户z89CSw46 崮生 互动矩阵 ZhanYoHo 何佳Q coderhyh 早上好啊 快图设计 do 毛哥哥 迅排设计 用���z89CSw86 糖果 南城以北 黑色摩天仑 Charm Lauginwing 在路上 Jerry 张余🌈 李狗嗨。💢 用户zw8T376T 用户249AzA2v ʚ LMT ɞ 格子 等等 goosen F4nniu 梁福斌 江万江 杨超 ToB Dev 前端之虎陈随易 A☀️云☀️A zhk 爱发电用户_c9c82 轻简历 爱发电用户_0fac0 wangyesheji.cn 风间 爱发电用户_Tqsm 爱发电用户_6KpE 星小志 zwm 爱发电用户_3725c Noth1ng 纳西妲の√ 爱发电用户_Ahb9 爱发电用户_7617d 冷漠 爱发电用户_9RXB 今日值得读 爱发电用户_49sT 爱发电用户_NFCS 爱发电用户_43ad8 爱发电用户_30455 砖吐筷筷 xiaozhang 爱发电用户_b47b3 longbow1998 爱发电用户_5d755 爱发电用户_b76b8 爱发电用户_e70c2 xiaou@截图工具 ousiri 爱发电用户_039dc 花祁 爱发电用户_99f39 坤坤 爱发电用户_X6hp ycteng 曹吉美爸爸 啸沧海 Ronny 爱发电用户_UXEV Biu 王志强 SaltedFish 爱发电用户_76f9d PD.新城คิดถึง 糖颂缘冥倾 ALBERT. 爱发电用户_Pbm7 Leafer 赞助我们