Skip to content

A simple demonstration of an Automerge-based web application.

Notifications You must be signed in to change notification settings

worldmaking/automerge-demo

 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 81.0%
  • Svelte 13.3%
  • JavaScript 3.0%
  • HTML 2.7%