Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
```