Jake Lazaroff avatar Jake Lazaroff

A Local-First Case Study

Screenshot of “A Local-First Case Study”

It helps a lot that various libraries in the ecosystem compose well. Just snapping together ProseMirror, Yjs and Y-Sweet gave me a collaborative rich text editor with shared cursors. Adding in yjs-indexeddb made it work offline. This was all mostly out of the box, with very little setup; the degree to which everything Just Works is impressive.

  1. How much data should my Service Worker put upfront in the offline cache?

    I love when Web site/apps work even when I'm offline. I've made my SVG game esviji work offline thanks to appcache just after attending Jake Archibald conference about why Application Cache is a Douchebag during the 2012 edition of the Paris Web conference. Fortunately, we have now Service Workers (in some browsers), which gives us more control over this kind of cache for offline browsing. But as Uncle Ben says, “With Great Power Comes Great Responsibility”.