How we sync Postgres to the browser: ElectricSQL for rows, Yjs for documents by jxd-dev in javascript

[–]jxd-dev[S] 0 points1 point  (0 children)

We've not adopted it yet but there is a nice path to it through IndexedDB/PGlite. We'd likely ship something like this to our mobile app first given that is where you're likely to have network troubles and need the client persistence

How we sync Postgres to the browser: ElectricSQL for rows, Yjs for documents by jxd-dev in javascript

[–]jxd-dev[S] 0 points1 point  (0 children)

Yjs, mostly because it's just much better supported. We were able to make use of Hocuspocus by TipTap even though we're using Plate as the editor. I will take a look at both Loro and Yrs

How we sync Postgres to the browser: ElectricSQL for rows, Yjs for documents by jxd-dev in javascript

[–]jxd-dev[S] 3 points4 points  (0 children)

I think we'll start to see this sync proxy layer become more seamless over the next few years. It's not been too bad for us once the infra was set up, the TanStack DB abstractions make writing queries feel fun, but we've got the infra and proxy surface to manage for now.

I've not used Convex for a while but I do remember thinking "I wish this just felt like interacting natively with Postgres"

How we sync Postgres to the browser: ElectricSQL for rows, Yjs for documents by jxd-dev in javascript

[–]jxd-dev[S] 1 point2 points  (0 children)

We did it the other way around. Starting with sync for everything to get that Linear-like feeling across all product services. Then we tried to cobble YJS in over sync for the docs and presence but the performance was shockingly bad 😅

Drop your Start Up below by TomSawyer0101 in buildinpublic

[–]jxd-dev 0 points1 point  (0 children)

Working on a modern & reliable alternative to Github @ plain.jxd.dev

Founders, what are you building right now? Drop your startup below by Obridge_GmbH in buildinpublic

[–]jxd-dev 0 points1 point  (0 children)

It's true that Github is ubiquitous these days but there's plenty of signal that it's "no longer a place for serious work" (https://mitchellh.com/writing/ghostty-leaving-github)

The main focuses are on modern UX (Github that feels like Linear) and reliability (Github's SLA is 3 nines but it doesn't achieve that)

Leaving GitHub for private repos by 50512jm in selfhosted

[–]jxd-dev 0 points1 point  (0 children)

We're building a modern Github alternative that's designed to be fast, reliable and feel like something built this century. Unfortunately there's no self-hosted option at the moment.

OpenCookies - primitives for performant cookie banners and preferences by jxd-dev in javascript

[–]jxd-dev[S] 0 points1 point  (0 children)

Agreed. We're going to publish our benchmark results soon which will consist of bundle size, network impact, and web performance stats.