Tldraw – a tiny little drawing app
Hey, author here! Glad folks are enjoying this.<p>A few notes:<p>- I post a _lot_ about tldraw on Twitter. If you're curious about how this came together, or want to follow along as we ship new features, check out my timeline (<a href="https://twitter.com/steveruizok" rel="nofollow">https://twitter.com/steveruizok</a>).<p>- The whole tldraw project is MIT licensed and open source (<a href="https://github.com/tldraw" rel="nofollow">https://github.com/tldraw</a>). And it's still in development! If you'd like to contribute, join the Discord channel (<a href="https://discord.gg/SBBEVCA4PG" rel="nofollow">https://discord.gg/SBBEVCA4PG</a>) or drop by the repo (<a href="https://github.com/tldraw/tldraw" rel="nofollow">https://github.com/tldraw/tldraw</a>).<p>- The multiplayer is using a pre-release version of Liveblocks (<a href="https://liveblocks.io/)—and" rel="nofollow">https://liveblocks.io/)—and</a> honestly isn't using it in a very clever way—and so can have some desync issues. Consider this part of the app an early beta.<p>- We also ship a Visual Studio Code extension that lets you use tldraw inside of VS Code! (<a href="https://marketplace.visualstudio.com/items?itemName=tldraw-org.tldraw-vscode" rel="nofollow">https://marketplace.visualstudio.com/items?itemName=tldraw-o...</a>)<p>A little more about the project itself:<p>The tldraw project has a few different layers.<p>At the bottom, there is a renderer named @tldraw/core (<a href="https://github.com/tldraw/core" rel="nofollow">https://github.com/tldraw/core</a>) that is essentially a "put React components on a canvas UI" engine. You give it a data model along with a set of utilities to interpret that data model. Simple but very fast, very flexible, and packed with helpers for building these kinds of apps. It's already being used for some pretty ambitious projects apart from tldraw itself.<p>The main library, @tldraw/tldraw (<a href="https://github.com/tldraw/core" rel="nofollow">https://github.com/tldraw/core</a>), exports the whole tldraw "app" as a React component named <Tldraw/>. This component can be embedded in any React project. It can be controlled either by props or by its own API (ie `app.selectAll().duplicate()`).<p>The website is a very thin Next.js app that embeds the <Tldraw/> component.<p>There are also a few other libraries: @tldraw/vec for the vector math and @tldraw/intersect for intersections. If you like to work on these kinds of projects, definitely bookmark those libraries! They contain a lot of useful code.<p>As for its development, I've taken off a few months between jobs to work on this full time. Until now, the site has been accessible only to my Github sponsors, but it's now free and open to everyone. If If you'd like to support the project's continued development, you can sponsor me here: <a href="https://github.com/sponsors/steveruizok" rel="nofollow">https://github.com/sponsors/steveruizok</a>.<p>I'll answer questions here but if you want to contact me directly, my DMs are open @steveruizok.