Loading video...

Video Failed to Load

Go Home

inspired by Paper: claude code driving the tldraw desktop app

308,963 views • 8 months ago •via X (Twitter)

19 Comments

tldraw's profile picture
tldraw8 months ago

I haven't set up an MCP server for this BTW. Instead, I'm exposing a local server with some endpoints to get data from or post code that runs in a scope with the editor + helpers. Good chance to try out the code mode theory @threepointone @KentonVarda

tldraw's profile picture
tldraw8 months ago

@threepointone @KentonVarda we might end up with an MCP anyway but the model seems to be pretty good with just using the editor API. There's a LOT that the editor can do and llms are pretty good at tldraw code

Vish's profile picture
Vish8 months ago

skipping MCP and just exposing a local server with endpoints is honestly the smarter move for this kind of integration. MCP adds a layer of abstraction that makes sense for generic tool use but when you already have a rich editor API... just let the model talk to it directly. less overhead, faster iteration, and the model can use the full API surface instead of whatever subset you decided to wrap. curious how the screenshot + shape data combo works for spatial reasoning

tldraw's profile picture
tldraw8 months ago

@paper Yeah exactly!

Somi's profile picture
Somi8 months ago

@paper wait this is so cool. and the local server approach instead of MCP makes total sense for visual tools. tighter feedback loop, less abstraction in the way 👀

Wass's profile picture
Wass8 months ago

@paper Claude Code + tldraw is the ultimate prototyping combo. Wild how fast you can go from idea to visual.

Krystian Gebis's profile picture
Krystian Gebis8 months ago

@paper which branch is this on?

Abhimanyu ARYAN ♡'s profile picture
Abhimanyu ARYAN ♡8 months ago

@paper so satisfying

Node2040's profile picture
Node20408 months ago

tldraw's agent kit gives Claude Code two inputs per turn: a screenshot of the canvas + structured shape data (positions, types, IDs). from that it can create/update/delete shapes, draw strokes, batch-align elements, and move the viewport. essentially: the canvas becomes a writable tool environment, not just a view.

felix negentropy. weallareeuropean's profile picture
felix negentropy. weallareeuropean8 months ago

@paper @excalidraw

Julie Reynolds's profile picture
Julie Reynolds8 months ago

@paper You can try my free flow chart drawing service free 5 api and you can use your own api url and sk, (including and excalidraw) , i filled a lot tools for ai ,

Gregor's profile picture
Gregor8 months ago

I've seen developers underestimate the power of code generators like Claude Code, focusing solely on custom-built solutions. But think about it - what if you could unlock a world of possibilities by creating a platform that lets designers and developers work together seamlessly? That's where the real innovation lies, in bridging the gap between creativity and code.

meowy🦀's profile picture
meowy🦀8 months ago

@paper tldraw has desktop app?

Geet Khosla's profile picture
Geet Khosla8 months ago

@paper works with other harnesses too? Like pi, codex, open code?

tldraw's profile picture
tldraw8 months ago

@paper Anything yeah, just a local endpoint

Geet Khosla's profile picture
Geet Khosla8 months ago

@paper very nice! :)

Ronny Khalil's profile picture
Ronny Khalil8 months ago

@paper

Neeraj Kumar's profile picture
Neeraj Kumar8 months ago

@paper How can one setup this?

tldraw's profile picture
tldraw8 months ago

@paper We have a desktop app with releases here, though the source is (currently) private. I'm just developing on a branch atm but it seems like an obvious feature to ship!

Related Videos