BlogRelease notes

tldraw SDK 5.7

Steve Ruiz

Today we’ve landed version 5.7 of the tldraw SDK. As the year begins to wind down, we’ve continued our pursuit of perfection in all areas of canvas functionality. We’ve dedicated the last few releases to rare bug hunting and tightening the screws, a trend that continues into December. This release includes a command palette, task lists in rich text, better comments, and more accurate keyboard menus.

You can read all of them here, or check out the highlights below.

New command palette

This month's headliner is a new command+K palette. Before, you could only reach the menu by right-clicking. As of this release, you can press Cmd+K (Ctrl+K on Windows and Linux) to open the new command palette, then start typing to search and run actions, jump to pages, or change preferences.

The commands you use most come first, so the shortcut you forgot is only a few letters away.

If you’re building on the SDK, the palette already knows about your app. Any custom actions you’ve added show up automatically, and you can hide internal ones with commandPalette: false. It’s also a regular component slot, so you can rearrange it, restyle it, or build your own from the new building blocks.

If you want to see how it works, head over to examples.tldraw.com.

Task lists in rich text

The main reason to create a task list is the satisfaction of ticking it off. So, we’ve made it possible to get that feeling on the canvas.

Type [ ] or [x] at the start of a line, and it’ll automatically convert to a checkbox that can be ticked by clicking it or pressing Cmd+Enter. Task lists work anywhere rich text does: text shapes, notes, and shape labels.

The checkboxes match the active font: in the draw font, they’re hand-drawn, and each one is sketched a little differently; in sans, serif, and mono, they’re clean, standard boxes.

That’s one more feature ticked off.

Improved commenting

In this release, we invested some capital developing comments.

You can now place several comments in a row without picking the comment tool each time. Previously, posting a comment sent you back to the select tool. If you forgot to pick Comment again, your next click selected a shape instead.

You can also Escape back one level at a time while commenting. Before, pressing Escape would jump out of commenting. So, if you type a new comment or reply, hitting Escape the first time clears that text. The next Escape closes the comment composer or open thread, and a third Escape takes you back to the select tool. This gives you more granular control over how you place comments.

Draft comments can now be dragged by their pin, and the composer will move with them.

Better keyboard shortcuts

We’ve also made things feel a bit smoother for God’s strongest soldiers: keyboard users. We didn’t stop at making Escape more precise for commenting.

Keyboard shortcuts no longer do things that menus don’t allow. In our last release, we updated menus to gray out actions that weren’t actually available. Now, keyboard shortcuts will do the same.

There’s also a new Remove frame shortcut: Cmd+Alt+Shift+G. Cmd+G and Cmd+Alt+G still toggle grouping and framing, but now only when the selection allows it. Cmd+G groups a selection, or ungroups it if it’s already a group. Cmd+Alt+G works the same way for frames: it wraps the selection in a frame, or removes the frame if you’ve selected one.

Precision cropping

Clicking another shape while you’re cropping an image now exits crop mode. Before, clicking another image moved the crop to that image.

More more more!

  • The error screen has been restyled to match tldraw’s dialogs.
  • The sync server templates use Node’s built-in node:sqlite instead of better-sqlite3, so there’s no native module to install.
  • The agent starter kit runs its actions as tool calls, and the agent and branching-chat starter kits now support OpenRouter.
  • Arrows bind correctly to shapes in locked groups.
Thanks to all of the developers this month who opened issues or built something awesome with the tldraw SDK. Follow us on Twitter/X or join us on Discord for more discussion and to share your work!

Trusted by these companies

  • AlAI
  • bigpi
  • CADChat
  • Google
  • Replit
  • BlackRock
  • Loveable
  • ClickUp
  • Autodesk
  • Google Stitch
  • Luma
  • Runway
  • SchoolAI
  • Honeycomb
  • Padlet
  • Genio
  • JAM
  • Mobbin
  • Brisk
  • Aries
  • Dirac