← All libraries

Konva.js

JavaScript
↗ Official site

Drawing & diagram tools

Canvas library for building interactive drawing and diagramming apps.

What it does

Konva.js gives you shapes, layers, and events on an HTML canvas. It handles hit detection, drag-and-drop, and animation for you.

When to use it

Use this when you need users to drag, resize, or interact with shapes on a canvas.

Real example

You're building a simple floor plan editor where users can drag rooms around a canvas and resize them. Prompt: 'Use Konva.js to create a stage with a Layer. Add Rect shapes representing rooms that are draggable and resizable with a Transformer. Show the room's width and height as a label that updates on resize.'

Good to know

Great for building custom diagram tools, image editors, or interactive charts.

Alternatives

Install

$ npm install konva

Use cases

diagram editorimage editorcanvas appdrag and drop

Language

JavaScript

Category

Drawing & diagram tools

More in Drawing & diagram tools

Other tools in the same category