This is a Vite template for a simple Synclets app, synchronizing between disparate browser windows using Cloudflare Durable Objects.
The server is configured to store TinyBase state, so even if all clients have been disconnected (and their browser storage cleared) synced data will still be available on the server for future connecting clients.
- Make a copy of this template into a new directory:
npx tiged tinyplex/vite-synclets-durable-object my-synclets-app- Go into the server directory:
cd my-synclets-app/server- Install the dependencies:
npm install- Run the server:
npm run dev- In a new window, go into the client directory:
cd ../client- Install the dependencies:
npm install- Run the application:
npm run dev- Go the URL shown and enjoy!
This template has no license, and so you can use it however you want! Synclets and Vite themselves are both MIT licensed.