Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser / vanilla javascript example? #76

Open
pwFoo opened this issue May 24, 2023 · 2 comments
Open

Browser / vanilla javascript example? #76

pwFoo opened this issue May 24, 2023 · 2 comments

Comments

@pwFoo
Copy link

pwFoo commented May 24, 2023

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.

@pvh
Copy link
Member

pvh commented May 24, 2023

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.

@pwFoo
Copy link
Author

pwFoo commented May 24, 2023

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?

@alexjg alexjg mentioned this issue Aug 2, 2023
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants