15ce98b277
Remove the "not accepting contributions" notice from the root readme Raising this PR cuz i don't see another PR being raised by the team <img width="684" alt="Screenshot 2023-06-24 at 13 40 46" src="https://github.com/tldraw/tldraw/assets/5616556/9684456f-9f6a-489b-b380-41484cd4fe18"> ### Change Type - [ ] `patch` — Bug fix - [ ] `minor` — New feature - [ ] `major` — Breaking change - [ ] `dependencies` — Changes to package dependencies[^1] - [x] `documentation` — Changes to the documentation only[^2] - [ ] `tests` — Changes to any test code only[^2] - [ ] `internal` — Any other changes that don't affect the published package[^2] - [ ] I don't know [^1]: publishes a `patch` release, for devDependencies use `internal` [^2]: will not publish a new version ### Test Plan 1. Add a step-by-step description of how to test your PR here. 2. - [ ] Unit Tests - [ ] End to end tests ### Release Notes - Remove not accepting contributions notice from README
110 lines
4.4 KiB
Markdown
110 lines
4.4 KiB
Markdown
<div alt style="text-align: center; transform: scale(.5);">
|
|
<picture>
|
|
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/tldraw/tldraw/main/assets/github-hero-dark-draw.png" />
|
|
<img alt="tldraw" src="https://raw.githubusercontent.com/tldraw/tldraw/main/assets/github-hero-light-draw.png" />
|
|
</picture>
|
|
</div>
|
|
|
|
# tldraw
|
|
|
|
Welcome to the public monorepo for [tldraw](https://tldraw.com).
|
|
|
|
## What is tldraw?
|
|
|
|
tldraw is a collaborative digital whiteboard available at [tldraw.com](https://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](https://tldraw.dev).
|
|
|
|
> **Note** This repo contains source code for the **current version** of tldraw. You can find the source for the original version [here](https://github.com/tldraw/tldraw-v1).
|
|
|
|
## Installation & Usage
|
|
|
|
To learn more about using tldraw in your React application, follow our guide [here](https://tldraw.dev/docs/ucg/installation) or see [this StackBlitz](https://stackblitz.com/github/tldraw/tldraw/tree/examples?file=src%2F1-basic%2FBasicExample.tsx).
|
|
|
|
```tsx
|
|
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:
|
|
|
|
```bash
|
|
yarn
|
|
```
|
|
|
|
Start the local development server:
|
|
|
|
```bash
|
|
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**](https://github.com/tldraw/tldraw/tree/main/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](https://tldraw.dev).
|
|
|
|
## 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
|
|
|
|
- `examples`: our local development / examples project
|
|
- `docs`: our docs site at [tldraw.dev](https://tldraw.dev)
|
|
- `vscode`: our [Visual Studio Code extension](https://marketplace.visualstudio.com/items?itemName=tldraw-org.tldraw-vscode)
|
|
|
|
### 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](https://discord.gg/rhsyWMUJxd) or [start a discussion](https://github.com/tldraw/tldraw/discussions/new).
|
|
|
|
## Distributions
|
|
|
|
You can find tldraw on npm [here](https://www.npmjs.com/package/@tldraw/tldraw).
|
|
|
|
## 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](mailto://hello@tldraw.com).
|
|
|
|
## Contribution
|
|
|
|
Please see our [contributing guide](https://github.com/tldraw/tldraw/blob/main/CONTRIBUTING.md). Found a bug? Please [submit an issue](https://github.com/tldraw/tldraw/issues/new).
|
|
|
|
## Contact
|
|
|
|
Find us on Twitter at [@tldraw](https://twitter.com/tldraw) or email [hello@tldraw.com](mailto://hello@tldraw.com). You can also [join our discord](https://discord.gg/rhsyWMUJxd) for quick help and support.
|