Back to More
GitHub Gems
Vol. 1 β tldraw
One underrated GitHub repo every week. Handpicked. Worth starring.
π¦ tldraw/tldraw
TypeScriptMIT License~35k β
github.com/tldraw/tldrawtldraw is a fully functional, open-source infinite canvas drawing and whiteboard library that you can embed directly into any React application. Think Excalidraw or FigJam β but as an SDK you control.
What Is It?
A fully embeddable React library that gives you an infinite canvas with:
- Freehand drawing with a natural feel
- Shapes, arrows, text, sticky notes
- Real-time multiplayer collaboration
- Undo/redo, zoom, pan
- Custom tools and shapes you can build yourself
How to Use It
npm install tldraw
import { Tldraw } from "tldraw";
import "tldraw/tldraw.css";
export default function Whiteboard() {
return (
<div style={{ width: "100vw", height: "100vh" }}>
<Tldraw />
</div>
);
}That's it. A fully working infinite canvas in your React app.
What You Can Build
- A collaborative whiteboard in a project management tool
- A design review tool where teammates annotate screenshots
- A teaching platform where instructors draw while explaining
- A multiplayer brainstorming app for a hackathon
- A portfolio page with an interactive βabout meβ canvas
Comparison
| Feature | tldraw | Basic Canvas API |
|---|---|---|
| Ready to embed | β | β Build from scratch |
| Freehand drawing | β | β |
| Multiplayer sync | β | β |
| Custom shapes | β | β |
| React integration | β Native | β Manual |
| MIT License | β | β |
Worth starring: Absolutely yes.