https://github.com/tommasoamici/multiplayer-whiteboard
A very minimal example of a Figma-like/Miro-like multiplayer collaborative board using WebSockets.
https://github.com/tommasoamici/multiplayer-whiteboard
bun cursors multiplayer websocket whiteboard
Last synced: about 2 months ago
JSON representation
A very minimal example of a Figma-like/Miro-like multiplayer collaborative board using WebSockets.
- Host: GitHub
- URL: https://github.com/tommasoamici/multiplayer-whiteboard
- Owner: TommasoAmici
- License: mit
- Created: 2024-07-07T08:06:27.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-08T08:22:05.000Z (almost 2 years ago)
- Last Synced: 2026-02-01T14:52:37.511Z (5 months ago)
- Topics: bun, cursors, multiplayer, websocket, whiteboard
- Language: TypeScript
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# multiplayer-whiteboard
A very minimal example of a Figma-like/Miro-like multiplayer collaborative board
using WebSockets.
This small example uses Bun to run a server to hold the WebSocket connections
and to serve the client files.
A cool thing that Bun makes possible is bundling TypeScript on the fly before
sending it to the browser. Obviously, in production you'd want to either
precompile or cache the compiled files, but for small stuff it's great.
Another cool thing is using React JSX to generate the HTML.
## Running
To install dependencies:
```bash
bun install
```
To run:
```bash
bun run server/index.tsx
```