protocol in the browser

FOSDEM 2020

Sam Macbeth, Cliqz

Why do we want dweb protocols?

No servers!

dat share /path/to/my/site/

Offline by default

Transparent

Self-archiving


              const archive = new DatArchive('dat://sammacbeth.eu');
              const changes = await archive.history({ start: 260 });
              console.log(changes[0]);
              /* = {
                path: "/blog/2019/09/04/geckoview-extensions.html",
                type: "put",
                version: 260
              } */
            

Files-based, single writer, data-synchronisation protocol


              # install CLI
              npm install -g dat
              # share a folder
              dat share /path/to/folder
              # pull a folder by its address
              dat clone 41f8a987cfeba80a037e51cc8357d513b62514de36f2f9b3d3eeec7a8fb3b5a5
            
## Current state * Available in Cliqz browser on desktop beta (Windows, Mac, Linux). * New Cliqz Android browser based on GeckoView (alpha)
## Demo ``` npm install -g dat dat clone dat://sammacbeth-fosdem.hashbase.io/ cd 3bea985... dat sync --http ```
## Demo * [dat://editor-cryptic.hashbase.io/](dat://editor-cryptic.hashbase.io/)