This project is a simple (~100 lines of JavaScript) implementation of a real-time, persistent interactive whiteboard using nats.js, NATS Jetstream and AlpineJS.
Building an Interactive Whiteboard with NATS Websockets | Rethink Connectivity Episode 3
To see the NATS whiteboard in action, feel free to try the demo
To get this working on your local computer, you will need to:
- Install NATS
- Run NATS with Websockets and Jetstream support
nats-server -c nats.conf
- Create a stream for your whiteboard in NATS:
nats stream create whiteboard --subjects='whiteboard.*' --allow-rollup
npm install
npm run dev