Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 29 days 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 (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-08T08:22:05.000Z (6 months ago)
- Last Synced: 2024-12-09T09:17:28.798Z (about 1 month 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
```