11 ms·
Tldraw – a tiny little drawing app
- PostThisTooFast 5y agoVery good performance drawing freehand strokes.
- armanboyaci 5y agoCurrently I am a happy excalidraw user. They look very similar. For which uses cases tldraw is better suited?
- thesehands 5y agoCreated by Steve Ruiz, his timeline is full of little interesting thoughts played out in the development of this, a fascinating insight into the minutiae that users take for granted but that make the difference: https://twitter.com/steveruizok https://twitter.com/steveruizok
- kevincox 5y agoI love that this supports tablet pen pressure (Firefox, Wayland, Linux). It makes it feel very nice to scribble around.
- snarfy 5y agodoesn't work in firefox
- ChrisArchitect 5y agoSorry, since this was posted a month ago (https://news.ycombinator.com/item?id=28854949 https://news.ycombinator.com/item?id=28854949) highlighting that it was sponsorware. It is now open-sourced and free also.
- satvikpendem 5y agoI thought this was familiar, and I followed the link to see who else but myself who submitted the link. Looks like the project's coming along nicely.
- puttycat 5y agoSaving a Google search for the uninitiated (me): ``` Simply stated, the “Sponsorware” model for releasing a project is made up of a few simple steps: Build something people want! – This is easier said than done, but we believe this model works best for open source projects with significant pre-release hype. The more interest you are able to build in your product before launch, the better your results are likely to be. Make it available only to “sponsors” – These “sponsors” are people who give you recurring revenue. This can be through any of the big sponsorship platforms (i.e. - GitHub Sponsors, Patreon, OpenCollective, etc.) or it can be a system you roll yourself. The important parts are A) that the revenue is recurring, and B) that either your number of sponsors or your net revenue is publicly viewable Set a sponsorship threshold, and after crossing it, make your thing freely available to the world! – This can be a number of monthly sponsors, an amount of monthly revenue, or whatever you like. It should be PUBLIC though. Transparency is huge in this process and people need to be able to see progress toward the goal. ``
- steveruizok 5y agoHappy to answer any questions about this. If you're considering this kind of approach for a new project, I'd really recommend it, especially for projects that you plan to release in stages. My strategy with tldraw was to pair the sponsorware'd app with steady content about the its development. It worked pretty well!
- 5y ago
- questionto 5y agothere is no way to export the canvas. why ?
- lf-non 5y agoThere is Edit > Copy As SVG Not an intuitive location (I was expecting it in File > Save As), but its there.
- PostThisTooFast 5y agoIt also doesn't appear to do anything; the menu just sits there after you select an item. In fact, it really doesn't do anything if nothing is selected on the canvas. This is not intuitive; you expect it to copy the drawing to the clipboard. If something is selected, the copy works, but the menu still sits there.
- steveruizok 5y agoExport is coming, still working out a strategy there. It's a bit trickier because we're not using the HMTL Canvas API, but instead rendering regular DOM elements. Might need to be something on the server side, similar to what I've done before with dynamic social media images.
- ComodoHacker 5y agoVery nice. What API is used to track Shift/Ctrl/Alt keys state?
- jarek-foksa 5y agoThere is the standard event.getModifierState() API, but the most reliable solution I found was to listen for "keydown", "keyup", "blur", "pointerdown", "pointermove" and "pointerup" events on the window object and then store the modifier keys state based on the value of event.ctrlKey/altKey/metaKey/shiftKey. You need to listen for the pointer events because some devices such as Wacom tablets do not dispatch proper keyboard events when you press a button that has a modifier key role assigned to it. On Apple devices event.metaKey represents the state of the command key, so in most scenarios you would be storing the state as: let ctrlOrCmd = (isAppleDevice ? event.metaKey : event.ctrlKey);
- steveruizok 5y agoYep, these all come from events.
- tnodir 5y agoConsider adding layers.
- ComodoHacker 5y agoOr objects rearrangement at least.
- steveruizok 5y agoWe do have that! You can right click and select commands like Move > Send to Back.
- ComodoHacker 5y agoThanks, I didn't notice this. By the way, Tldraw somehow remembered my unsaved drawing — that's impressive!
- steveruizok 5y agoCheers. And yep, it’ll try to persist the document to local storage if your browser lets it.
- mkl 5y agoWhat kind of object rearrangement are you missing? You can move them around, resize them, rotate them, flip them, move them forward and back above and below other objects, align them to each other, distribute them apart.
- steveruizok 5y agoI've considered adding a list, for sure. You don't often see layers lists for these kinds of minimal whiteboarding apps, but personally I reach for the list every time I use tldraw. :/
- skywal_l 5y agoNice, clean, fast. No need of a sign in. A little buggy though. Can't Delete or Rename a page (at least on Firefox).
- spicybright 5y agoCheck out https://excalidraw.com/ https://excalidraw.com/ I think it's more refined than Tldraw.
- deleted 5y ago[deleted]
- SailingSperm 5y agoSuggestion: Layers and pasting images from clipboard or uploaded ones would make this a lot more useful too.
- beardyw 5y agoOn Android I see a ... option bottom left. No idea what those options do (apparently nothing). Otherwise a nice app.
- EZ-Cheeze 5y agoMy dream drawing app would let you draw a stroke multiple times and then pick out your best attempt. No need to undo all the bad ones to try again. It separates the generation and the judgment. http://zeroprecedent.com/lore/flipmark.html http://zeroprecedent.com/lore/flipmark.html
- totetsu 5y agoI think clip studio pro has this functionality .. as well as clipping of the pointy ends of strokes that go over next line.
- app4soft 5y ago> My dream drawing app would let you draw a stroke multiple times and then pick out your best attempt. No need to undo all the bad ones to try again. It separates the generation and the judgment. Just use SVG-edit & draw each stoke on separate "Layer". [0] https://svg-edit.github.io/svgedit/ https://svg-edit.github.io/svgedit/
- croo 5y agoEreaser on phone is especially good. Just like an irl whiteboard ereaser.
- begueradj 5y agonice one
- throwaway4good 5y agoThis is excellent work! Starts immediately and works on my phone as well as my laptop. No sign up or anything - just straight to business as it should be. It is open source and interestingly packaged as a library: https://github.com/tldraw/tldraw https://github.com/tldraw/tldraw
- skeaker 5y agoSeems that collaborative drawing suffers from desyncing, though that may be because the site is under some stress at the moment.
- ughitsaaron 5y agoThe mobile web experience (Safari) for this app is really remarkable.
- barbs 5y agoWhat does the TL stand for?
- maccolgan 5y agotiny little?
- erikfiala 5y agoI believe it comes from TL;DR(aw). Also explains the ; logo. TL;DR stands for "too long; didn't read".
- steveruizok 5y agoI originally bought the domain tldraw.com for a different project, Telestrator (https://github.com/steveruizok/telestrator https://github.com/steveruizok/telestrator), which is an app for drawing on top of your screen during a call / stream. The app is pretty nice if you're on macOS, but I never used the domain. When this project kicked off, I wanted something that could be saved alongside code as version-controlled documentation, and that was the first time I noticed the "tldr" in "tldraw". So I just used tldraw.com and stole the name!
- eterm 5y ago"New Project" asks if you want to "Save your current project" and the options are "Yes" and "Cancel". I would expect Cancel to cancel the new project rather than losing the current work, and would expect a "No" option instead to mean lose the current project.
- steveruizok 5y agoGood call! Pushing a fix for that now.
- quickthrower2 5y agoFreehand drawing with a dotted line is super fun
- kome 5y agoI just use it in a remote class, with my students. It worked perfectly. Everybody was able to use it in now time. Well done!
- steveruizok 5y agoHey, author here! Glad folks are enjoying this. A few notes: - 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 (https://twitter.com/steveruizok https://twitter.com/steveruizok). - The whole tldraw project is MIT licensed and open source (https://github.com/tldraw https://github.com/tldraw). And it's still in development! If you'd like to contribute, join the Discord channel (https://discord.gg/SBBEVCA4PG https://discord.gg/SBBEVCA4PG) or drop by the repo (https://github.com/tldraw/tldraw https://github.com/tldraw/tldraw). - The multiplayer is using a pre-release version of Liveblocks (https://liveblocks.io/)—and https://liveblocks.io/)—and 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. - We also ship a Visual Studio Code extension that lets you use tldraw inside of VS Code! (https://marketplace.visualstudio.com/items?itemName=tldraw-org.tldraw-vscode https://marketplace.visualstudio.com/items?itemName=tldraw-o...) A little more about the project itself: The tldraw project has a few different layers. At the bottom, there is a renderer named @tldraw/core (https://github.com/tldraw/core https://github.com/tldraw/core) 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. The main library, @tldraw/tldraw (https://github.com/tldraw/core https://github.com/tldraw/core), 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()`). The website is a very thin Next.js app that embeds the <Tldraw/> component. 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. 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: https://github.com/sponsors/steveruizok https://github.com/sponsors/steveruizok. I'll answer questions here but if you want to contact me directly, my DMs are open @steveruizok.
- 5y ago
- petargyurov 5y agoBlank screen on Firefox. Console reports a CORS error.
- samsaga2 5y agoNice! Multiuser https://www.tldraw.com/r/1637234003692 https://www.tldraw.com/r/1637234003692
- thepuppet33r 5y agoReminds me of https://excalidraw.com/ https://excalidraw.com/
- steveruizok 5y agoI'm a big fan of Excalidraw! And a contributor, too, I implemented the pen tool in Excalidraw. Both apps use my library perfect-freehand (https://github.com/steveruizok/perfect-freehand https://github.com/steveruizok/perfect-freehand) for the digital ink. The main difference between the two is that Excalidraw renders to HTML canvas, while tldraw renders to a regular DOM tree. There are tradeoffs but this lets us make things like sticky notes or other types of complex embedded content without too much difficulty.
- spicybright 5y agoHuge fan of this! I like the ui better than Tldraw, I think. I'll have to try it more and see what I think.
- mattsouth 5y agoReally nice app. So much finesse. Similar but seemingly simpler than the excellent https://excalidraw.com/ https://excalidraw.com/. Tiny thing: I think it would be clearer if the alt tags and menu items showed keyboard shortcuts as "[ctrl][G]" instead of "c t r l G".
- steveruizok 5y agoAre you on Windows? The context menu seems to be behaving strangely for PCs users, probably a different set of default styles than I saw while developing. :/ Working on it! https://github.com/tldraw/tldraw/issues/243 https://github.com/tldraw/tldraw/issues/243
- mattsouth 5y agoAh, I hadnt looked at the issues. Saw this in ubuntu firefox and android chrome.
- frosted-flakes 5y agoIt also looks like that on Android Firefox.
- trevcanhuman 5y agoNice, didn’t Know about any of these two. Both are surprisingly responsive and fluid. Still not sure what I’d use this for; maybe explaining some math stuff.
- Marciplan 5y agoI've played around with Tldraw a bit before and I just love the simplicity. The maker (@steveruiz) is also just a great human being and fun follow on Twitter :)
- nathansherburn 5y agoAbsolutely love this! Nice work! Looking forward to exploring your other projects! [0] https://github.com/sponsors/steveruizok https://github.com/sponsors/steveruizok
- endergen 5y agoDefinitely checkout the VS Code extension so you can version control diagrams/drawings along side your code. Works on VS Code for Desktop, github.dev, vscode.dev, GitHub Codespaces. https://marketplace.visualstudio.com/items?itemName=tldraw-org.tldraw-vscode https://marketplace.visualstudio.com/items?itemName=tldraw-o... Some thoughts on the extension and workflows are here: https://twitter.com/seflless/status/1446892923661045767?s=20 https://twitter.com/seflless/status/1446892923661045767?s=20
- endergen 5y agoHere’s another early experiment with the extension. This time using Tldraw as a personal or team Trello style task planner. https://twitter.com/seflless/status/1452296968718401536?s=21 https://twitter.com/seflless/status/1452296968718401536?s=21 Not sure that this would work for most people , but would for sure for individuals who think I’m sticky notes
- kirillzubovsky 5y agoVery nice. Was just looking to sketch some diagrams while on zoom with a friend, and resorted to Illustrator for the lack of a better tool. This would’ve done just fine, with much less complexity. Consider integrating with the team at Pop.com (what we use for meetings/sharing)
- mclightning 5y agoToo long didn't raw?
- speps 5y agoExcellent! I was surprised by some behaviour though, and all of these work in Excalidraw (I'm assuming it's the inspiration): * When resizing a group of strokes, the resizing happens per stroke instead of as a group which is contrary to what I expected. * Also during resizing and other operations, it would be good to see the selection outline, at the moment it hides itself which makes it difficult to know how far you've gone from the original position. * I was expecting the Del key to work for deleting objects.
- jhunter1016 5y agoI’m wonderfully surprised by how often people can have an idea and create something as lovely as this in a short amount of time. The web may have its flaws, but it also empowers this.
- bobbydreamer 5y agoSo true
- nixxie 5y agoI like the pressure changes when you draw. Different sized pen/brush would be helpful. As would being able to choose to delete the entire line with the easer or just to erase a little of it off at a time
- steveruizok 5y agoThanks! There are some size options in the menu at the top right. And yeah, I've spent so much time thinking about how to do an eraser right! I think it will need to wait until the next version of my digital ink library. https://twitter.com/steveruizok/status/1458712896620404742 https://twitter.com/steveruizok/status/1458712896620404742
- louissan 5y agoGotta love the file extension when saving "tldr" xD
- jitl 5y agoI’m curious what the relationship between Tldraw and Excalidraw is. They share some dependencies, and I think I remember @steveruizok adding this freehand ink feature to excalidraw. Is there a plan to rebase the excalidraw canvas on tldraw core? If I start prototyping a new UI today, should I start based on tldraw or excalidraw?
- steveruizok 5y agoYep, I'm a big fan of Excalidraw and am a contributor there too. I also re-implemented the pen tool in Excalidraw to use my digital ink library, perfect freehand (https://github.com/steveruizok/perfect-freehand https://github.com/steveruizok/perfect-freehand), which is used extensively in tldraw. tldraw is a separate project. The big difference is that Excalidraw renders to HTML canvas while tldraw renders to a regular DOM tree. There's a trade off: canvas can have better performance on some machines, while my approach with tldraw makes it easier to implement more complex embedded content. I wouldn't expect any changes, so use whichever you prefer!
- winrid 5y agoNice! I built a mutiplayer drawing app too, a few years ago, for Android called Pixmap. Still out there and running. It was fun to build. My favorite feature to build was the Rewind feature, so you could see people draw something together over the course of months.
- davidkunz 5y agoAwesome, very minimal UI, that's great (similar to Excalidraw). A few feature requests: - double click to insert text - `?` to open a shortcut page - reasonable shortcuts (not just numbers) - `del` to delete
- neophyt3 5y agopage rename not working btw nice app!
- steveruizok 5y agoFixed!
- crhutchins 5y agoGreat minimalist yet intuitive web app.
- yckin 5y agoCongratulations! I've been following your progress on twitter and I'd love to sponsor your work. I'm wondering if there are plans for supporting visual diff?
- steveruizok 5y agoThanks! I hadn’t considered that but it would definitely be possible. I’m considering having a “view only” version of the editor, and this could be one of its options.
- chefandy 5y agoI do some digital illustration, so maybe my perception is colored by a workflow that can't be generalized to others, but I am puzzled by it switching back to the arrow tool after drawing a shape. If I just drew a circle, I'm far more likely to draw another circle than select something.
- vharish 5y agoYup. One of the first things I noticed. I'd rather prefer it stays on the same tool.
- steveruizok 5y agoThere are competing conventions for this in different kinds of apps. In the end, I went with the design app convention. If you want it to stick with the same shape, double click the shape in the toolbar!
- chefandy 5y agoOut of curiosity, from which design app did you model your decision? I’m not questioning you, but I’m very curious to know which design software GUIs use an idiom so different from what I’ve experienced, yet is common enough to be a convention. I’ve used many design apps for many purposes and never used one that would switch you out of any mark making tool automatically once a single mark was made. (I’m a UI designer and developer primarily, so new (to me) things in design tool UIs tick a lot of personal interest boxes.)
- perth 5y agoUI reminds me of the old awwapp before they went corporate. It’s nice
- petilon 5y agoPrevious hackernews post indicates that this used to be SVG-rendered. It is currently Canvas-rendered. What made you switch to Canvas?
- zamadatix 5y agoIt seems the drawing itself is still rendered SVG tags it's just they are underneath a canvas element. The canvas seems to draw the UI elements.
- outside1234 5y agoThis is great - I have been looking for a simple diagraming tool that is source controllable and with a reasonably ergonomic user interface for a long time. Thank you for making.
- rammy1234 5y agoI see this in the network tab - https://www.googletagmanager.com/gtag/js?id=G- https://www.googletagmanager.com/gtag/js?id=G- what does this do ? There is no link transparently talking about this.
- MrCoder 5y agoThat is google analytics for traffic analytics.
- coding123 5y agoVery performant!
- findjashua 5y agolooks clean and simple. has drawing tools become a hot space of late? there seem to be a lot of options (i usually use diagrams.net, but have also heard of lucidchart), so would be great to have some sort of comparison b/w the various tools
- ww520 5y agoThis is amazing. Immediately useful. Intuitive. Small and fast.
- creativenolo 5y agoSuper nice. When using the app, does the data get uploaded somewhere or is it all offline?
- steveruizok 5y agoIts all offline (either in indexeddb or saved as .tldr files) except for multiplayer, which stores the document in an online database. That will eventually work offline too.
- efunneko 5y agoVery nice and smooth! I think this may be my go to whiteboarding site... One feature request would be that if I start typing when a box or circle is selected, it would put text in that object. I realize that this might be difficult with hotkeys, but I use that feature in Visio all the time and I love it for quick diagrams. Next best would be if you select the text button (or '7') when an object is selected, it would insert the text in that object.
- efunneko 5y agoA few other feature requests/bugs after using it with my iPad and a pen: - can't select menu items with pen - an undo button on the hotbar would be nice - a way to control the return to select mode after drawing a shape - I often want to draw a few boxes and then connect them with arrows, but having to keep hitting the shape select is a bit painful
- steveruizok 5y agoMakes sense, I'll look into it. I haven't been able to test on a lot of devices, especially tablets. As far as the select mode, try double-tapping one of the tools! That will keep that tool selected until you manually select a different one.
- nunez 5y agoThis is the best drawing app I've used in a long time. Please don't bloat it
- senectus1 5y agoworks really well on my Fold 3 with the sPen. any chance you'll add colors at all?
- steveruizok 5y agoCheck the top right corner! I'm working on improving the that menu to make it easier to notice and use. :)
- senectus1 5y agooh nice!