Tldraw/templates/vite
David Sheldrick 4c478d2267
Example node + bun server (#4173)
This PR adds an app with examples for building a tlsync backend in both
node and bun.

Highlights
- simple vite frontend
- node backend using `fastify` (popular modern alternative to express,
and much better api for websockets)
- bun backend using `itty-router` and `Bun.serve`. Interestingly Bun has
a similar websockets api to the cloudflare hibernatable sockets api,
which required some simplification of the socket argument on
`TLSocketRoom`.
- updated itty-router and got rid of itty-cors. There were some minor
breaking API changes to account for, and a new cors api that allows us
to remove an ugly hack.

### Change type

- [ ] `bugfix`
- [ ] `improvement`
- [ ] `feature`
- [ ] `api`
- [x] `other`

### Test plan

1. Create a shape...
2.

- [ ] Unit tests
- [ ] End to end tests

### Release notes

- Fixed a bug with…
2024-07-18 07:48:10 +00:00
..
public
src styling: make dotcom and examples site have consistent font styling (#3271) 2024-03-27 09:44:22 +00:00
.eslintrc.cjs [dx] Allow vscode to search inside md files by default (#3105) 2024-03-11 14:08:04 +00:00
.gitignore
LICENSE
README.md
index.html [dx] Allow vscode to search inside md files by default (#3105) 2024-03-11 14:08:04 +00:00
package.json Example node + bun server (#4173) 2024-07-18 07:48:10 +00:00
tsconfig.json
tsconfig.node.json
vite-env.d.ts
vite.config.ts
yarn.lock Bump the npm_and_yarn group across 3 directories with 4 updates (#3920) 2024-06-11 13:33:44 +00:00

README.md

tldraw

This repo contains a template you can copy for using tldraw in a vite application.