Hacker News new | ask | show | jobs
by h0l0cube 1356 days ago
> React does not allow us to build a new Figma (consistent undo/redo in collaborative settings, immediate low-latency mutation of app state to reflect user changes and building fundamentals to SaaS interoperability)

If I wanted to write the next Figma, the first thing I’d reach for is Phoenix Liveview + Channels with Vaxine/AntidoteDB or some other eventually consistent CRDT store for collaborative editing and host it on fly.io - I’d forgo the ‘front end’ completely

1 comments

> I’d forgo the ‘front end’ completely

Not to dismiss your argument/stack preference, but forgoing the front end for a graphic design tool might prove difficult. EDIT: But yes, CRDT-backed stores are definitely the way to go for a requirement like this.

> but forgoing the front end for a graphic design tool might prove difficult

How so?

Offline support? Collaborative tools don't really have a good offline story by nature.

Ping times? If you use fly.io you're going to have great availability and low latency. It's like a CDN for live apps.

I'm not biased against a 'client-side front end', it's just that a collaborative tool that is 'always online' might as well use a 'live app' style where the server drives the DOM. It solves all the problems that the OP raised in the quote, and it's less about where React should go next, because client-side front end literally can't solve those problems due to their nature.