惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

AI
AI
G
Google Developers Blog
T
Tailwind CSS Blog
大猫的无限游戏
大猫的无限游戏
量子位
月光博客
月光博客
美团技术团队
阮一峰的网络日志
阮一峰的网络日志
罗磊的独立博客
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
Latest news
Latest news
P
Privacy International News Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
WordPress大学
WordPress大学
博客园 - 三生石上(FineUI控件)
TaoSecurity Blog
TaoSecurity Blog
Hacker News: Ask HN
Hacker News: Ask HN
Hugging Face - Blog
Hugging Face - Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
C
Cisco Blogs
Project Zero
Project Zero
Security Latest
Security Latest
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
人人都是产品经理
人人都是产品经理
Scott Helme
Scott Helme
S
Securelist
有赞技术团队
有赞技术团队
T
Threat Research - Cisco Blogs
N
News | PayPal Newsroom
博客园 - 聂微东
小众软件
小众软件
S
SegmentFault 最新的问题
D
Darknet – Hacking Tools, Hacker News & Cyber Security
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
P
Privacy & Cybersecurity Law Blog
博客园 - Franky
Cyberwarzone
Cyberwarzone
Cisco Talos Blog
Cisco Talos Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Spread Privacy
Spread Privacy
A
Arctic Wolf
S
Security @ Cisco Blogs
The Hacker News
The Hacker News
腾讯CDC
博客园 - 【当耐特】
T
Troy Hunt's Blog
NISL@THU
NISL@THU
爱范儿
爱范儿

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Leafer Editor — A Free, Open-Source Vector Design Tool for the Browser
fayismahmood · 2026-05-14 · via DEV Community

No installs. No accounts. No cost. Just open the browser and start designing.


If you've ever needed to quickly sketch a UI, create a diagram, or put together a simple graphic — and didn't want to open a heavy desktop app or sign up for yet another SaaS tool — Leafer Editor was built for exactly that moment.

It runs entirely in your browser. Everything you create stays on your machine. And it comes with a surprisingly complete set of design tools that cover the most common tasks you'd normally reach for Figma or Illustrator to handle.

Let me walk you through every feature.


The Canvas

When you first open Leafer Editor you're greeted with a clean infinite canvas — a grey workspace with a single white Frame sitting in the centre. That frame is your artboard, the area you design inside.

Pan around by holding Space and dragging. Zoom with the scroll wheel. The canvas is infinite — place as many frames side by side as you need without running out of room.


Frames — Your Artboards

A Frame is the container that holds all your design elements. Think artboard in Illustrator, frame in Figma.

  • Every shape, image, and text block lives inside a frame
  • Frames have a configurable width and height
  • Elements that overflow the frame boundary are clipped
  • Name frames whatever you like — names show in the Layers panel
  • Create as many frames as you need — handy for designing multiple screens side by side
  • Presets for paper sizes (A4, Letter, etc.), screen dimensions (1080p, 1440p, 4K), and social media formats (Instagram, Twitter, etc.)

Press F or click the Frame tool, then pick a preset or draw a custom size.


The Toolbar — 9 Tools, 9 Shortcuts

At the bottom of the screen sits the toolbar:

Tool Key What it does
Select V Click, drag-select, move, resize, rotate
Rectangle R Draw rectangles — buttons, cards, containers
Ellipse O Circles, ellipses, arcs, pie slices
Line L Straight lines with configurable stroke
Star S 3–20 point stars and polygons
Pen P Custom paths and bezier curves
Text T Inline text editing on the canvas
Image I Import images from your machine
Frame F Create a new frame with presets

Every tool has a keyboard shortcut. Switch tools without touching the mouse.


Drawing Shapes

Rectangle

Press R, drag inside a frame. Resize with corner handles, rotate by hovering just outside a corner, round corners with the slider, and apply fills, strokes, shadows, and blend modes.

Ellipse

Press O, drag. Hold Shift for a perfect circle. Supports arcs and pie slices — great for charts and progress indicators.

Line

Press L, drag. Adjust stroke width, cap style (flat/round/square), and dash patterns for dotted or dashed lines.

Star

Press S, drag. Not just five-point stars — anywhere from 3 to 20 points. Adjust the inner radius ratio to morph from a sharp star to a flower shape.

Pen

Press P. Click to place anchor points, drag to create curves. Build custom paths and bezier shapes.


The Text Tool

Press T, click inside a frame, and start typing. Leafer Editor uses an inline text editor on the canvas — no modal, no separate input box. Type directly on the canvas, Figma-style.

The Properties panel gives you full typography control:

  • Font family — ~40 popular Google Fonts, each previewed in its own typeface in the dropdown
  • Font weight — Normal, Bold, 600, or 800
  • Italic
  • Alignment — Left, Centre, Right, Justify
  • Line height and letter spacing

Fonts are lazy-loaded — only the ones you use are downloaded.


The Image Tool

Press I to open a file picker. Select any image (PNG, JPG, WebP, GIF) and it appears on the canvas at a sensible size. Drag to reposition, resize with handles, and apply opacity and blend modes like any other element.

Everything stays local. Images are never uploaded anywhere.


The Select Tool

Press V to work with elements you've already created:

  • Click an element to select it and see its properties
  • Drag a selection box to select multiple elements at once
  • Drag to move selected elements
  • Corner handles to resize
  • Hover just outside a corner to rotate
  • Click empty space to deselect

When multiple elements are selected, property changes apply to all of them simultaneously.


The Properties Panel — Deep Styling

The right-side panel is context-aware — different controls depending on what's selected.

Fill

Solid colors via hue-saturation picker with hex/RGB inputs. Switch to gradient mode for linear or radial gradients with a multi-stop gradient bar — click to add stops, drag to reposition, double-click to remove.

Stroke

Border color, width, and alignment — inside, centre, or outside the shape boundary. Cap and join styles for lines.

Opacity

Slider from 0% (invisible) to 100% (fully opaque) for the entire element.

Blend Modes — 16 Modes

Multiply, Screen, Overlay, Darken, Lighten, Color Dodge, Color Burn, Hard Light, Soft Light, Difference, Exclusion, Hue, Saturation, Color, Luminosity — plus Normal.

A black rectangle set to Multiply lets the texture of the layer below show through. These unlock a lot of creative effects.

Shadows

Drop Shadow — offset X/Y, blur, spread, and color. Inner Shadow — same controls, pressed-in or embossed look. Both update in real time as you tweak sliders.


Action Bar

A context bar at the top of the canvas for common operations:

  • Group — combine selected elements into a group
  • Mask — apply clipping masks for advanced shape workflows
  • Bring to Front / Send to Back — control z-order with one click
  • Lock / Unlock — prevent accidental edits
  • Delete — remove selected elements

Smart Snap Guides

Drag any element and dashed alignment lines appear automatically — showing when you're aligned with another element's edge or centre, or with the canvas grid. The element snaps into place when you're close.

No more manual positioning or mental math about coordinates.


The Layers Panel

Switch to the Layers tab to see your canvas as a tree — every frame with all its children in z-order.

  • Click any layer row to select it on the canvas — great for elements hidden behind others
  • Drag and drop to reorder — canvas updates instantly
  • Double-click a name to rename — keeps large designs navigable
  • Lock and visibility toggles — hide elements while you work, lock the ones you're done with
  • Type icons beside every row — rectangle, circle, text, image, frame

Export Panel

When your design is ready, export it in any format:

Format Details
PNG Configurable resolution, transparent background
JPG Configurable quality
WebP Modern format, smaller files
BMP Uncompressed bitmap
JSON Full Leafer scene data for programmatic use
Canvas Raw pixel data

Export individual elements or entire frames. Pick the resolution — 1x, 2x, 3x, or custom.


Keyboard Shortcuts Summary

Shortcut Action
V Select
R Rectangle
O Ellipse
L Line
S Star
P Pen
T Text
I Image
F Frame
Space + drag Pan canvas
Scroll Zoom
Delete Remove selected
Ctrl/Cmd + G Group
Ctrl/Cmd + ] Bring to front
Ctrl/Cmd + [ Send to back

The Tech Stack (for developers)

Layer Technology
Canvas engine Leafer UI + editor plugins
UI framework React 19
Routing TanStack Router (file-based)
State TanStack React Store
Styling Tailwind CSS v4
Build Vite 8
Language TypeScript (strict)
Lint/Format Biome
Testing Vitest + Testing Library

The entire editor is ~50 source files. The canvas layer (editorCanvas.ts) creates a Leafer App with an embedded Editor instance. Drawing tools are registered as custom tool classes. State flows through a single TanStack Store, keeping the React UI and canvas engine in sync.


Try It Yourself

git clone https://github.com/fayismahmood/leafer-editor.git
cd leafer-editor
pnpm install && pnpm dev

Enter fullscreen mode Exit fullscreen mode

Open http://localhost:3000. Click "Open Editor" and start designing.

Or try the live demo: leafer-editor.vercel.app


What's Next

Leafer Editor is in active development. On the roadmap:

  • Undo / Redo — full history stack
  • SVG export — vector format support
  • Multi-page support — organise multi-screen designs in one file
  • Collaborative editing — real-time multi-user canvas
  • Desktop app — wrapped with Tauri for offline use

Why I Built This

I wanted a design tool that gets out of the way. No accounts. No Electron bloat. No feature creep. Just a canvas, some shapes, and the ability to export something useful. The idea was to prove that a production-quality canvas experience can fit in a ~50-file TypeScript codebase running entirely client-side.

If that resonates — designer looking for a lightweight tool, or developer curious how a canvas editor is built from scratch — Leafer Editor is worth a look.

Star the repo, try it out, and let me know what you think in the comments.


Leafer Editor is MIT licensed. Built with Leafer UI and React.