Most devs only really needDocumentation Index
Fetch the complete documentation index at: https://docs.tsdraw.com/llms.txt
Use this file to discover all available pages before exploring further.
@tsdraw/react, which includes the react component:
Requirements
- React 18.0+ or 19.0+
- A bundler supporting CSS imports (Vite, Next.js, Webpack, etc.)
Core engine (Headless)
If you’re using another framework, install the core engine directly:@tsdraw/core is framework-agnostic and provides the Editor, shape system, tools, and rendering (but you have to do the rest yourself).
Package overview
| Package | Description | Dependencies |
|---|---|---|
@tsdraw/core | Base engine, tools, shapes, viewport, persistence | perfect-freehand |
@tsdraw/react | React component, toolbar, style panel, touch/keyboard handling | @tsdraw/core, @tabler/icons-react |
Verifying the installation
After installing, create a short component to make sure everything works:@tsdraw/core, since this is more complex, you probably should look through the source code or reference for more information.