Drawing tools
Brush, highlighter, rectangles, ellipses, lines, arrows, triangles, diamonds, hearts, clouds, texts, laser pointer and eraser.
See the tools
A whiteboard in one element. Draw, organize and share ideas with tools, layers, frames, live collaboration and exports, in TypeScript and without framework.

Install the library with Konva, its only peer dependency:
yarn add @fabwcie/free-drawing konvanpm install @fabwcie/free-drawing konvapnpm add @fabwcie/free-drawing konvaThen give it an element of your page:
import { Drawer } from '@fabwcie/free-drawing';
import '@fabwcie/free-drawing/style.css';
const drawer = new Drawer(document.getElementById('drawer'), {
theme: 'system', // light, dark or the one of the device
language: 'auto', // language of the browser
});
// drawing changed: keep it anywhere as JSON
drawer.on('drawer.change', () => console.log(drawer.getDrawingFile()));The guide describes every option, the features page shows what the drawer can do, the plugins guide shows how to add your own features and the API documents each class and method.
free-drawing is released under the MIT License. Issues and contributions are welcome on GitHub, see how to contribute.