Mods for tldraw offline
Custom shapes, tools, and UI for tldraw offline documents. Install any of them into a document with one command.
npx tldraw-mods init # once per document workspace
npx tldraw-mods add landmark
-
Browser
shapeAn embedded web page. Click to place or drag to size; type a URL in the pill above the frame. Phone, tablet, and desktop viewport presets float above the right edge.
npx tldraw-mods add browser -
Landmark
shapeA hollow dashed named area with a constant-screen-size pin chip. Clicks inside fall through to the shapes it marks; a brush must enclose it fully. Adds a Create landmark command that wraps the selection.
npx tldraw-mods add landmark -
Tool chrome
libShared editing plumbing for box-shaped mods: EditingBoxShapeTool, useShapeEditing, ToolChrome slots, and self-sizing ToolChromeField.
npx tldraw-mods add tool-chrome -
Workspace
workspaceDocument-script workspace for tldraw offline: esbuild + Tailwind build, apply-to-open-document, and a shell that loads every mod in src/mods/.
npx tldraw-mods init