collaboration Drawing app
 
 
 
Go to file
David Sheldrick 037246e267
Revert "bump prerelease from alpha to beta" (#2192)
Reverts tldraw/tldraw#2148
2023-11-10 10:41:31 +00:00
.github Only upload playwright to S3 if we have the right credentials (#2074) 2023-10-13 13:42:41 +00:00
.husky
.yarn
apps [feature] Things on the canvas (#2150) 2023-11-07 09:27:20 +00:00
assets Tighten up editor ui (#2102) 2023-10-28 21:58:32 +00:00
config
packages Revert "bump prerelease from alpha to beta" (#2192) 2023-11-10 10:41:31 +00:00
scripts fix standalone examples (#2042) 2023-10-09 10:55:16 +00:00
.eslintignore
.eslintplugin.js
.eslintrc.js tldraw zero - package shuffle (#1710) 2023-07-17 21:22:34 +00:00
.gitignore Publish api.json (#2034) 2023-10-08 15:00:58 +00:00
.ignore
.prettierignore
.prettierrc
.yarnrc.yml
CHANGELOG.md Update CHANGELOG.md [skip ci] 2023-10-17 14:39:34 +00:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md tldraw zero - package shuffle (#1710) 2023-07-17 21:22:34 +00:00
lazy.config.ts
lerna.json Revert "bump prerelease from alpha to beta" (#2192) 2023-11-10 10:41:31 +00:00
package.json (chore) bump (#1744) 2023-07-18 10:19:28 +00:00
public-yarn.lock Fix an issue with edit link. (#2184) 2023-11-09 15:55:29 +00:00
vercel.json Update readme (#2027) 2023-10-06 12:10:33 +00:00

README.md

tldraw

tldraw

Welcome to the public monorepo for tldraw.

What is tldraw?

tldraw is a collaborative digital whiteboard available at tldraw.com. Its editor, user interface, and other underlying libraries are open source and available in this repository. They are also distributed on npm. You can use tldraw to create a drop-in whiteboard for your product or as the foundation on which to build your own infinite canvas applications.

Learn more at tldraw.dev.

Note This repo contains source code for the current version of tldraw. You can find the source for the original version here.

Installation & Usage

To learn more about using tldraw in your React application, follow our guide here or see the examples sandbox.

import { Tldraw } from '@tldraw/tldraw'
import '@tldraw/tldraw/tldraw.css'

export default function () {
	return (
		<div style={{ position: 'fixed', inset: 0 }}>
			<Tldraw />
		</div>
	)
}

Local development

To run the local development server, first clone this repo.

Install dependencies:

yarn

Start the local development server:

yarn dev

Open the example project at localhost:5420.

Examples

Our development server contains several examples that demonstrates different ways that you can customize tldraw or use its APIs. Each example is found in the apps/examples folder.

  • eg: localhost:5420 for the basic example.
  • eg: localhost:5420/api for the API example.

To learn more about using tldraw, visit our docs.

About this repository

Top-level layout

This repository's contents is divided across four primary sections:

  • /apps contains the source for our applications
  • /packages contains the source for our public packages
  • /scripts contains scripts used for building and publishing
  • /assets contains icons and translations relied on by the app
  • /docs contains the content for our docs site at tldraw.dev

Applications

Packages

  • assets: a library for working with tldraw's fonts and translations
  • editor: the tldraw editor
  • state: a signals library, also known as signia
  • store: an in-memory reactive database
  • tldraw: the main tldraw package containing both the editor and the UI
  • tlschema: shape definitions and migrations
  • utils: low-level data utilities shared by other libraries
  • validate: a validation library used for run-time validation

Community

Have questions, comments or feedback? Join our discord or start a discussion.

Distributions

You can find tldraw on npm here.

At the moment the tldraw package is in alpha. We also ship a canary version which is always up to date with the main branch of this repo.

License

The source code for various apps and packages in this repository (as well as our 2.0+ distributions and releases) are currently licensed under Apache-2.0. These licenses are subject to change in our upcoming 2.0 release. If you are planning to use tldraw in a commercial product, please reach out at hello@tldraw.com.

Contribution

Please see our contributing guide. Found a bug? Please submit an issue.

Contact

Find us on Twitter at @tldraw or email hello@tldraw.com. You can also join our discord for quick help and support.