Git Product home page Git Product logo

Comments (16)

dcposch avatar dcposch commented on May 14, 2024 3

@pfrazee @feross and i almost got Wikipedia working in dat

currently, we're stuck on:

  • we can't serve a Wikipedia dump from a dat directly, because dat itself does not support archives with 1m+ files ( dat-ecosystem/dat#915 )
  • we can't easily serve a Wikipedia dump from a zip file, because Beaker doesn't have ServiceWorkers yet. (if it did, we would intercept requests in the the SW. we already have a pure-JS ZIP file library working which turns requests for a file--say, wiki/Hypertext.html--into range requests into a giant dat-hosted ZIP file)

screen shot 2018-01-18 at 10 55 58 pm

from beaker.

RangerMauve avatar RangerMauve commented on May 14, 2024 3

Once ServiceWorkers are enabled, are there any plans for Dat-specific APIs for them?

I think it would be super useful to have something similar to Push Notifications, but for Dat updates.

from beaker.

pfrazee avatar pfrazee commented on May 14, 2024 2

Yeah we're going to switch to Muon this year. Gotta get 0.8 out first.

from beaker.

pfrazee avatar pfrazee commented on May 14, 2024 1

We can certainly look into that

from beaker.

ikreymer avatar ikreymer commented on May 14, 2024 1

Just wondering if there are any updates on this. Have a very exciting use case for this.
If service workers were supported, could now load and render web archive data directly in the browser from WARC files stored in Dat..

from beaker.

millette avatar millette commented on May 14, 2024

Waiting on electron issue 9663 I guess...

from beaker.

pfrazee avatar pfrazee commented on May 14, 2024

Yes, unfortunately.

from beaker.

billiegoose avatar billiegoose commented on May 14, 2024

Well shucks. I'm guessing this is why I'm getting:

Failed to register a ServiceWorker: No URL is associated with the caller's document.

when trying to use my cool webapp over dat://

from beaker.

pfrazee avatar pfrazee commented on May 14, 2024

Yeah it's a total shame. Having this and modules land in electron are going to be huge for dat.

from beaker.

billiegoose avatar billiegoose commented on May 14, 2024

@dcposch That looks awesome! I want to use ServiceWorker for something similar. (Converting URL requests into git repository lookups.)

from beaker.

pfrazee avatar pfrazee commented on May 14, 2024

@dcposch oh clever solution. I've been poking around more in electron lately. I'll take another pass at fixing this. No promises, but I may get lucky.

from beaker.

pfrazee avatar pfrazee commented on May 14, 2024

(Even if we can get Service Workers to run on a custom protocol, I'm still unsure whether I'll be able to inject the APIs. We'll see.)

from beaker.

dcposch avatar dcposch commented on May 14, 2024

@pfrazee have you heard of Muon?

It's Brave's fork of Electron. They have similar goals to Beaker--they too are developing their own chromium-based browser.

(They also have lots of developers and Scrooge McDuck-esque piles of money from their recent token sale... point is, Muon is actively developed :) )

issues fixed in Muon

  • it tracks upstream Chromium faster than Electron
  • it supports ServiceWorkers
  • they did some security hardening. (unlike electron, muon is meant for rendering untrusted web content)
  • probably other stuff too

as far as i can tell, it's a fork of and (mostly) a drop in replacement for electron. worth considering!

from beaker.

pfrazee avatar pfrazee commented on May 14, 2024

AFAIK Electron already supports service workers, it just seems to be failing on custom protocols. Do we know for certain that muon supports service workers on custom protocols?

from beaker.

pfrazee avatar pfrazee commented on May 14, 2024

I spent a little more time with it in Electron. Even after I cheated my way around the current issue, SWs would randomly stall in installation and fail to intercept requests.

from beaker.

dcposch avatar dcposch commented on May 14, 2024

Do we know for certain that muon supports service workers on custom protocols?

i'm not sure!

we added torrent support to Brave recently. i think the easiest way to test SW support in Muon would be to turn a ServiceWorker "hello world" app into a torrent, then visit magnet:... in Brave

from beaker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.