anotherjesse / automerge-demo

A simple demonstration of an Automerge-based web application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Svelte + TS + Vite + Automerge

This template should help get you started developing with Automerge, Svelte and TypeScript in Vite.

Architecture

Svelte App --instantiates--> automerge-store --postMessage--> worker process -- BroadcastChannel --> other tabs running this demo

TODO

  • Persist documents to IndexedDB.
  • Rethink connection system in terms of peers and not broadcasts
  • How should someone else replace BroadcastChannel with an actual networking solution?
  • How should the Svelte code relate to the Automerge store?
  • Should we bother fixing HMR state preservation? (see hmr-store.js)
  • Improve worker/renderer reply communication.

Recommended IDE Setup

VSCode + Svelte.

About

A simple demonstration of an Automerge-based web application.


Languages

Language:TypeScript 81.0%Language:Svelte 13.3%Language:JavaScript 3.0%Language:HTML 2.7%