Welcome to the release for the tldraw SDK's fifth major release.
This 5.0 release introduces several new systems and long-requested features, including:
- a first-class theme system with display values
- a new
OverlayUtil system for canvas overlays
- an extensibility APIs for custom record types, asset types, geo shapes, and frame-like shapes
Two new packages ship alongside it: @tldraw/driver for imperative editor control and @tldraw/mermaid for converting Mermaid diagrams into native shapes. It also adds a shape attribution system with the TLUserStore provider, clipboard and performance-measurement hooks, WebSocket hibernation in tlsync, RTL support, cross-window embedding, and various other improvements and bug fixes.
Migrate with agents!
We've created a new experimental agent skill that you can use to migrate tldraw automatically. To use the skill, run your agent harness of choice (e.g. Claude Code or Codex) at the directory containing your tldraw project, and ask it to:
Please visit https://github.com/tldraw/tldraw/blob/main/skills/tldraw-migrate/README.md and follow the instructions there to migrate tldraw to the latest version.
The skill will copy the necessary files into your directory, pull the relevant release notes and migration guides from tldraw, and then get to work on the migration. We've seen good results in the repos that we've tried it on, however agents are still is a bit of a dice roll so please check their work. …