No description
Find a file
Lu[ke] Wilson 9e5de0c48e
[improvement] readme / contributing (#1199)
This PR adds a barebones Readme to the public repo that we can start to
iterate on.

This is what it looks like!


![image](https://user-images.githubusercontent.com/15892272/234321088-6bde4a16-5c9d-4d74-985b-fc578d374eb9.png)

---------

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2023-05-03 08:32:52 +00:00
.github [improvement] readme / contributing (#1199) 2023-05-03 08:32:52 +00:00
.husky [chore] update lazyrepo (#1211) 2023-05-02 12:25:26 +00:00
.yarn transfer-out: transfer out 2023-04-25 12:01:25 +01:00
apps [improvement] readme / contributing (#1199) 2023-05-03 08:32:52 +00:00
assets lite: run prettier on js + json files 2023-05-02 16:12:34 +01:00
config [chore] update lazyrepo (#1211) 2023-05-02 12:25:26 +00:00
packages [fix] collaborator render order (#1213) 2023-05-03 08:29:04 +00:00
scripts add env and prefix output options to exec (#1217) 2023-05-02 16:13:09 +00:00
.eslintignore [chore] update lazyrepo (#1211) 2023-05-02 12:25:26 +00:00
.eslintplugin.js transfer-out: transfer out 2023-04-25 12:01:25 +01:00
.eslintrc.js transfer-out: transfer out 2023-04-25 12:01:25 +01:00
.gitignore Added pHYs to import/export of png images (#1200) 2023-04-29 22:10:01 +00:00
.prettierignore transfer-out: transfer out 2023-04-25 12:01:25 +01:00
.prettierrc [fix] pick a better default language (#1201) 2023-04-29 23:06:02 +00:00
.yarnrc.yml lite: tweak lockfile name 2023-04-25 12:01:38 +01:00
CODE_OF_CONDUCT.md transfer-out: transfer out 2023-04-25 12:01:25 +01:00
CONTRIBUTING.md [improvement] readme / contributing (#1199) 2023-05-03 08:32:52 +00:00
lazy.config.ts [chore] update lazyrepo (#1211) 2023-05-02 12:25:26 +00:00
lerna.json transfer-out: transfer out 2023-04-25 12:01:25 +01:00
LICENSE transfer-out: transfer out 2023-04-25 12:01:25 +01:00
package.json lite: run prettier on js + json files 2023-05-02 16:12:34 +01:00
public-yarn.lock update @radix-ui/react-popover to 1.0.6-rc.5 (#1206) 2023-05-03 08:28:55 +00:00
README.md [improvement] readme / contributing (#1199) 2023-05-03 08:32:52 +00:00

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 inifinite 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 this CodeSandbox.

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

function TldrawExample() {
	return <Tldraw />
}

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/src 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

Applications

Packages

  • editor: the tldraw editor
  • ui: the editor's user interface
  • tldraw: the main tldraw package containing both the editor and the UI
  • primitives: low-level primitives for working with vectors and geometry
  • tlschema: shape definitions and migrations
  • tlsync-client: a library for (locally) syncronizing editor instances
  • tlstore: an in-memory reactive database
  • tlvalidate: a validation library used for run-time validation
  • tlassets: a library for working with tldraw's fonts and translations
  • file-format: a library for working with tldraw's .tldr file format
  • utils: low-level data utilities shared by other libraries

Community

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

Contribution

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

Distributions

You can find tldraw on npm here.

License

The source code in this repository is licensed under Apache 2.0. The examples are licensed under MIT.

Contact

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