TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Automerge-Repo: A "batteries-included" toolkit for local-first applications

219 pointsby gklittover 1 year ago

16 comments

pclover 1 year ago
Cool stuff!<p>What do you suggest is the sweet spot for document size and &quot;hotness&quot;? Your cookbook [0] says &quot;We suspect that an Automerge document is best suited to being a unit of collaboration between two people or a small group.&quot; Does that mean tens of kilobytes? Hundreds? More? And how much concurrent contention is viable? And is the &quot;atom of contention&quot; the document as a whole, or do you have any plans for merging of sub-parts?<p>Also, do you have support for juggling multiple transports, either concurrently or back-to-back? In particular, I&#x27;m thinking about synchronizing via the cloud when connected, and falling back to peer-to-peer when offline. In that peer-to-peer case, how many peers can I have, and can my peer network behave as a mesh, or must it stick together to some degree?<p>And finally, it looks like your tutorial [1] doesn&#x27;t actually exist! You refer to it in a blog post [2], but it&#x27;s a dead link.<p>[0] <a href="https:&#x2F;&#x2F;automerge.org&#x2F;docs&#x2F;cookbook&#x2F;modeling-data&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;automerge.org&#x2F;docs&#x2F;cookbook&#x2F;modeling-data&#x2F;</a><p>[1] <a href="https:&#x2F;&#x2F;automerge.org&#x2F;docs&#x2F;tutorial&#x2F;introduction&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;automerge.org&#x2F;docs&#x2F;tutorial&#x2F;introduction&#x2F;</a><p>[2] <a href="https:&#x2F;&#x2F;automerge.org&#x2F;blog&#x2F;automerge-2&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;automerge.org&#x2F;blog&#x2F;automerge-2&#x2F;</a>
评论 #38197645 未加载
xrdover 1 year ago
If you are interested in this, check out the video from StrangeLoop 2023:<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=Mr0a5KyD6BU">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=Mr0a5KyD6BU</a><p>Also, check out the unconf for localfirst that happened right after 2023:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;LoFiUnconf&#x2F;stlouis2023">https:&#x2F;&#x2F;github.com&#x2F;LoFiUnconf&#x2F;stlouis2023</a><p>Ink &amp; Switch is doing such interesting stuff. Their after party at StrangeLoop was so cool.
评论 #38196218 未加载
satvikpendemover 1 year ago
Nice, I use automerge with Rust via autosurgeon [0] which is their Rust wrapper, but looks like it hasn&#x27;t been updated recently, any updates on that? I&#x27;m guessing with a small team that web support is taking priority right now, as I&#x27;m running this on my Rust client (technically Flutter but via the FFI package flutter_rust_bridge [1]) and server (via the Axum web server crate).<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;automerge&#x2F;autosurgeon">https:&#x2F;&#x2F;github.com&#x2F;automerge&#x2F;autosurgeon</a><p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;fzyzcjy&#x2F;flutter_rust_bridge">https:&#x2F;&#x2F;github.com&#x2F;fzyzcjy&#x2F;flutter_rust_bridge</a>
评论 #38196817 未加载
caelinsutchover 1 year ago
Curious how you think about this compared to Electric SQL [1] - I&#x27;m currently deciding what sync solution we&#x27;re going to use for a product rebuild and have been looking at quite a few<p>[1] <a href="https:&#x2F;&#x2F;electric-sql.com&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;electric-sql.com&#x2F;</a>
scotttrinhover 1 year ago
Super excited to see Automerge getting this high-level API out. Been following since before 1.0 and I can&#x27;t wait to play around with the latest incarnation! Congrats to the Automerge team.
评论 #38195584 未加载
zyangover 1 year ago
Last time I looked into CRDT, automerge was not as fast&#x2F;efficient as yjs, but the team was actively improving the algorithm. Is there any benchmark to show the progress.
评论 #38196211 未加载
digitalsanctumover 1 year ago
This is exciting in several ways including the fact that Martin Kleppmann is involved with the project. Filed at the top of my reading list if nothing else to see an undoubtedly good example of a complex Rust project.
评论 #38202419 未加载
anglinbover 1 year ago
This is super powerful, been playing around with the previous releases for the past few days. It works really well, but still needs a few dx tweaks to make it performant for large applications. You have to watch the callbacks yourself to update slices of state and unless your app is small enough that the whole thing can re-render every update.<p>That being said, I love everything automerge is doing and hope this pace will keep up!
zbyover 1 year ago
So is it like <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Google_Wave" rel="nofollow noreferrer">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Google_Wave</a> - but with limited scope and with new algos and finally usable?
评论 #38202423 未加载
bomewishover 1 year ago
Seems we have a really great technical spec — but aren’t y’all gonna build a product on it and let us pay you to use? A google docs for markdown&#x2F;quarto documents would be brilliant but apparently does not yet exist…
评论 #38197476 未加载
GeneralMaximusover 1 year ago
Would Automerge be a good choice for a non-realtime single-user app that just needs to have reliable offline support?<p>E.g a personal note-taking app where the user will never have any collaborators, but where they expect the app to work fully offline on multiple devices and reliably sync up when they come online.
评论 #38202504 未加载
idoshover 1 year ago
How is it compared replicache, watermelondb and the rest?
parhamnover 1 year ago
Anyone have any info on who is behind this project, how reliable it is (will it be around in 2 years), etc? Considering using it for one of my projects.
评论 #38197743 未加载
评论 #38197750 未加载
评论 #38199700 未加载
davgoldinover 1 year ago
Congrats! Many moons ago the lack of undo&#x2F;redo was the main blocker. Has this been added?
评论 #38202405 未加载
coding123over 1 year ago
It sounds like ms word saving to onedrive
benatkinover 1 year ago
By calling it &quot;repos&quot;, they&#x27;re trying to capitalize on the popularity of VCS repositories, but these don&#x27;t have their history implicitly tracked the way Automerge does, just explicitly tracked by committing and pushing.<p>I think it&#x27;s cool, but I still see CRDTs as very niche.<p>I also want &quot;local-first&quot; but what I really want is something closer to how traditional desktop apps just open up, edit, and save files, not some real time collaboration that is already set up before I add my first collaborator.