Tldraw
Create interactive whiteboards with or without AI.
About Tldraw
Tldraw is a React SDK that lets you embed an infinite canvas in a web application. It provides the components needed to create whiteboards, diagrams, and custom visual interfaces.
What can you build with Tldraw?
- Collaborative drawing spaces with real-time synchronization.
- Diagram editors with shapes, tools, and an interface tailored to the product.
- Visual applications using AI agents that can read and modify the canvas.
How does integration work?
- A JavaScript API lets you programmatically control elements on the canvas.
- Starter kits provide a foundation for AI agents and visual workflows.
- The SDK works in mobile browsers and can be embedded in a WebView.
Designed for developers, Tldraw requires a license for production use. Its code is available to view, but the current SDK is not open source.
Visual guide to Tldraw

User guide V2: Tldraw
Build a single-user diagramming board inside a React application, then retain its contents in the browser. This walkthrough uses the SDK rather than a ready-hosted whiteboard. tldraw.dev
Before you start
- A React project already running locally, with a terminal and npm available.
- Permission to edit the application’s main component and open the app in a browser.
- For a later production deployment, a license appropriate to the project and its domain.
Install the SDK
In your React project folder, run npm install tldraw to add the package to your application.
Check: The command finishes without errors and tldraw appears among the project dependencies.
Import the component and styles
In App, add import { Tldraw } from 'tldraw' and import 'tldraw/tldraw.css' above the component.
Check: Both imports are present and the project compiles without a module error.
Render the canvas
In App’s render output, place <Tldraw /> inside a div with style={{ position: 'fixed', inset: 0 }}.
Check: The application displays the canvas and its tools instead of App’s previous content.
Draw a first diagram
On the canvas, draw shapes, add text, and connect the elements to represent your idea visually.
Check: The diagram is visible; you can move its elements and adjust the zoom to read it.
Enable local persistence
Replace <Tldraw /> with <Tldraw persistenceKey="schema-demo" /> to keep the board in the browser.
Check: After refreshing the page, the diagram elements are still present.
Check the result and plan ahead
Open the application in another tab of the same browser and edit the board using the same key.
Check: The edit appears in the other tab; this test does not demonstrate collaboration across devices.
Useful features
- The canvas supports drawing, writing, inserting media, and navigating by zooming and panning.
- persistenceKey retains the document locally and synchronizes browser instances using the same key.
- The Editor API can create and manipulate elements in code; shapes, tools, and the interface can be customized. tldraw.dev
Practical tips
- Choose a separate persistence key for each board to avoid unintentionally reusing the same browser storage.
- Test the diagram and its local reload before adding a server or custom tools to the application.
- To explore an agent or workflow application, compare the documented starter kits rather than assuming those capabilities are enabled by default. tldraw.dev
Limits and precautions
- This tutorial saves locally; it is not a remote backup or synchronization between different users.
- Real-time collaboration requires additional integration; the demonstration server uses temporary rooms.
- Development requires no license. Production requires a valid key: a free 100-day trial, an annual commercial license, or a noncommercial hobby license granted on application. Commercial pricing depends on the project. tldraw.dev
Documentation consulted: 2026-12-03
Guide sources
Overview and pricing
Pricing models: Free trial · Enterprise / quote.
Check current pricing and terms on the official site.
Features
- Infinite canvas
Embed an interactive drawing space in an application.
- Real-time collaboration
Synchronize whiteboards and interactions between users.
- Custom shapes and tools
Create shapes, tools, and interfaces tailored to the project.
- Editor API
Control the canvas and its elements with JavaScript.
- AI agent
Starter kit for creating an agent that reads and modifies the canvas.
- Visual workflows
Starter kit for connecting and running nodes on the canvas.
- Multilingual interface
Select a language and customize translations.
Highlights
- Infinite canvas that can be embedded in a React application.
- Real-time collaboration with self-hosted synchronization.
- Starter kits for AI agents and visual workflows.
Technology and platforms
- API available
- Platforms: Web
- Supported languages: Indonésien, Malais, Catalan, Tchèque, Danois, Allemand, Anglais, Espagnol, Filipino, Français, Galicien, Croate, Italien, Hongrois, Néerlandais, Norvégien, Polonais, Portugais du Brésil, Portugais européen, Roumain, Slovène, Somali, Finnois, Suédois, Vietnamien
YouTube videos about Tldraw
- The Spatial Harness: Bringing Agents to the Canvas — Max Drake, tldraw — AI Engineer — —
- TLDraw AI Agent Setup Tutorial — Kyle Behrend — —
- Agents on the canvas in tldraw with Steve Ruiz — Lisbon AI — —
Community reviews
KingLand Score : 72/100.
Community votes: 1 up · 0 down.
The KingLand Score is a community index. Participating can earn points. Methodology.