Features
free-drawing gives any web page an infinite canvas to draw, organize and share ideas. Everything below works out of the box with new Drawer($el), and each part can be configured, translated or turned off: see the options.

Drawing tools

- Freehand: a brush with smooth strokes following the speed of the pointer (perfect-freehand), and a highlighter whose fluorescent colors are multiplied with the drawing below, so texts stay readable (plugin of the extra tools). With "Recognize shapes", a rectangle, an ellipse, a triangle, a diamond, a line or an arrow drawn with the brush becomes that shape (undo gives back the stroke): see shape recognition.
- Shapes: rectangles with sharp or round corners, ellipses, lines, arrows (straight, curved or elbow, a head of your choice at each end: arrow, triangle, dot, bar or none), triangles and diamonds; hearts, clouds, stars, hexagons, block arrows, speech bubbles and check boxes with the extra tools (plugins); drawn in the dragged box. Shift draws squares, circles and lines at 45°.
- Images: insert (image tool of the toolbar) or paste images (screenshots, photos, SVG), resized with their proportions, kept small in files and links, shared in live sessions, with their colors in dark mode.
- Texts: font, size, bold, italic, underline, alignment, and a width fitted to their content. Write in a shape with a double click: the text stays centered in it when it is moved, resized or turned; on an arrow, it is a label.
- Sticky notes (N): a click adds a note of a light color and writes in it, the note grows with its text.
- Styles: stroke color and width, solid, dashed or dotted strokes, background color, corners, opacity, from the panel of the tool or of the selection. An eyedropper picks a color anywhere on the screen (Chrome, Edge), Ctrl + Alt + C / V copy the style of shapes and paste it on others.
- Laser pointer to show something without drawing it, also seen by the other users of a session.
- Eraser: click a shape or drag through several ones, they fade until the pointer is released.
- Shortcuts: B brush, E eraser, T text, N note, L line, R rectangle, C ellipse, A arrow, D diamond, M highlighter (extra tools), K laser, F frame, H pan, S select. The pin of the toolbar keeps the tool after a drawing, else the selection comes back.
The toolbar, its groups and the shortcuts are set with the widgets and widgetGroups options.
Selection and editing

- Select a shape with a click, add one with Shift + click, reach the shapes behind with Alt + click, or drag a rectangle selecting every shape it touches.
- Move, resize and rotate: Shift keeps proportions, rotates by steps of 15° and moves along an axis. Shapes snap to other shapes, to the center of the view and to the grid.
- Options of mixed selections: the panel shows the options of every kind of selected shape, and applies each one to the shapes it fits, with actions to duplicate, delete or link the selection.
- Selection menu next to the shapes: duplicate, group, rotate, stacking order, lock and delete.
- Links: attach a web page or an email address to a shape, edited above it, opened from its link icon.
- Align and distribute the selection on a side or a center, with even spaces, or stacked in a row or a column.
- Edit faster: duplicate (Ctrl + D), group (Ctrl + G), flip (Shift + H / V), rotate by 90° (Shift + R / L), move with the arrow keys, undo and redo up to 100 steps (Ctrl + Z, Ctrl + Y or Ctrl + Shift + Z).
More in Selection.
Layers, groups and frames

Layers panel (Alt + L): every shape with its name, top first. Rename, hide, lock, drag to reorder, select ranges with Shift.
Groups move and style their shapes together, which can still be reached alone with Ctrl + click.
Frames: named areas holding the shapes drawn or moved into them, cut at their border, exported without their title. A frame a shape is moved into or out of is highlighted, the moved shape is drawn whole. A selected frame has its opacity, stacking order and actions (the slideshow from it among them).
Slideshow (Alt + Shift + P): frames presented one after the other as slides, alone on the whole screen, the arrows going from one to the next, the laser as pointer. In a live session, the other users follow the slides of the owner.
Replay (Alt + Shift + R): the drawing made again before your eyes, its shapes one after the other in the order they were created, outlines drawn, strokes traced, texts typed; play, pause, step and speed up, the drawing untouched.
Linked arrows follow the shapes they link when these are moved or resized, fixed to a side or to the outline; elbow arrows leave the sides facing each other with horizontal and vertical lines and go around the shapes. The handle of a selected curved or elbow arrow bends the curve on either side or moves the middle segment.
Stacking order: forward and backward past the next overlapping shape, or to the front and back.
Search (Ctrl + F): texts of the drawing found (case and accents ignored), highlighted, the view moved from one to the next.
Library (Alt + B): selected shapes saved as items, inserted again in any drawing by a click or a drag, kept in the browser, exported and imported as files.
More in Layers, Slideshow, Replay, Search, Library, Arrows, Linked arrows and Stacking order.
Menus, shortcuts and command palette

- Context menu: a right click shows the actions of the selection or of the drawing, each with its shortcut.
- Command palette (Ctrl / Cmd + K): search any tool or command by its name, in the current language.
- View: the mouse wheel zooms around the pointer (Ctrl + wheel moves the view; or the other way round, a preference for trackpads), Space held or the middle button moves the view with any tool; zoom to fit the whole drawing (Shift + 1), to the selection (Shift + 2) or back to 100 % (Shift + 0), from the context menu and the command palette too: see mouse wheel and Space.
- Help lists every shortcut, preferences (Ctrl + ,) keep the theme, language, grid, snapping, zen mode and auto save.
- Clipboard: paste a text (Ctrl + V), copy the selection as a PNG or SVG image.

Live collaboration

- Sessions: start one from the menu and share its link or QR code, everyone draws on the same drawing in real time.
- End-to-end encrypted: the key is in the link, never sent to the server, which relays and keeps the drawing without being able to read it.
- Presence: cursors of the other users with their names, shapes they are drawing, their laser.
- Rights: participants view only until the owner lets them draw, they ask it in one click, the owner accepts or refuses from the panel of the session.
- Presentation: the owner presents its view, or its frames as slides, everyone follows its zoom and moves, until they move theirs, then follows it again in one click.
- Never forgotten: during a session, a live reminder in the header (also in zen mode) shows the people connected, opens the session and stops or leaves it in one click.
- Reliable: changes made while the connection is lost are merged with the ones of the others when it comes back.
- Server included: the repository has a Node server (socket.io, accounts, SQLite), or use your own following the protocol. More in End-to-end encryption.

Files, links and export

- Files: save and open
.freedrawingfiles (Ctrl + Shift + S, Ctrl + O). Only drawing shapes are read: files can come from anyone. - Drawings of Excalidraw and tldraw: open a
.excalidrawor.tldrfile, its shapes become shapes of the library (arrows still linked, texts in their shapes, frames, groups, images), ready to be changed. - Links hold the whole drawing, compressed, so no server is needed to share it.
- Export the drawing or the selection as PNG (1×, 2× or 3×), SVG or PDF, with or without background, in dark mode or not, or copy it to the clipboard.
- Editable images: a PNG or SVG image can keep its drawing. It is shared and shown as any image, and opened again (Ctrl + O) its shapes come back, ready to be changed: no
.freedrawingfile to keep next to it.
More in Files and links, Drawings of Excalidraw and tldraw, Export and Editable images.
Themes, languages and accessibility

- Themes: light, dark or the one of the device. The dark mode keeps the colors of the shapes recognizable.
- Languages: English, French, Spanish and German, chosen from the browser, and any text can be replaced with the
translationsoption. - Keyboard and screen readers: every action has a shortcut, menus and panels are reached with Tab and arrow keys, buttons have names and states. The shapes too: Enter selects the first one, Tab / Shift + Tab the next and previous ones in reading order, Enter the shapes of a group or frame, and each shape reached is described to screen readers (type, name, text, linked shapes...): see keyboard navigation.
- High contrast: in the forced colors mode of Windows, color swatches keep their colors and the current tool, pressed buttons and selected items take the highlight colors of the system.
- Focus: the zen mode hides the interface, a grid can be shown with snapping: squares, dots, ruled lines or isometric paper (shapes snap to its triangles): see grid.
More in Dark mode and Languages.
Made for apps
- Any page, React or Vue:
new Drawer($el, options)and itsstyle.cssin plain JavaScript, or theFreeDrawingcomponent of React and Vue (drawer created and destroyed with it, of its size, settings following its props, never loaded on a server), TypeScript types included, Konva as only peer dependency. - Your storage: the
storageoption loads and saves drawings in your app or server, the drawing is also a JSON file to keep anywhere. - Events follow the drawing, the selection, the preferences and the collaboration, preferences can follow user accounts.
- Control: read only mode, user of the collaboration, every widget optional.
- Plugins: add your tools, commands, shortcuts and items of the context menu with a
Pluginclass, which can require other plugins and be configured by each app.npm create @fabwcie/free-drawing-plugincreates one from a few questions, see the plugins guide.
The demo is the web app of the repository: drawings kept in the browser, and with its server, accounts, drawings saved on the server and live collaboration. More in Use in an app and the API.