automerge / automerge-repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Browser / vanilla javascript example?

pwFoo opened this issue · comments

commented

Is there a vanilla JS browser example available?
Searching for a way to build a multi user collaborative javascript app. Local first and syncing with other clients...
Listening for other clients changes like todo list, chat or similar apps.

In the early days of automerge-repo, I wrote it in vanilla JS and had just such an example. As time went on, I found that maintaining vanilla JS was painful, and there were painful tradeoffs between supporting native ESM modules with WASM packaging versus integrating with systems like Vite and WebPack.

You should still be able to run Automerge-Repo without React or anything, but I don't have any surviving example code showing how to do it. That said, if you pull together a sample I'm happy to review it and keep it around for other folks.

commented

I just worked with simple JS files and haven't played with svelte or wasm...
Maybe a small starting point how to load setup automerge to use in browser?