Comments (16)
@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)
from beaker.
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.
Yeah we're going to switch to Muon this year. Gotta get 0.8 out first.
from beaker.
We can certainly look into that
from beaker.
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.
Waiting on electron issue 9663 I guess...
from beaker.
Yes, unfortunately.
from beaker.
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.
Yeah it's a total shame. Having this and modules land in electron are going to be huge for dat.
from beaker.
@dcposch That looks awesome! I want to use ServiceWorker for something similar. (Converting URL requests into git repository lookups.)
from beaker.
@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.
(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.
@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.
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.
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.
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)
- [Question] JS: how to prompt self-cloning a site?
- FATAL:electron_main_delegate.cc(253)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
- [6059:0925/061055.321176:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /home/BEAKER/beaker/scripts/node_modules/electron/dist/chrome-sandbox is owned by root and has mode 4755.
- Can't start Beaker on MacOS 11.6 HOT 3
- Watchlist eyeball icon pops up next to the menu button, but when I click it I go to `beaker://watchlist` which produces "This site can't be reached"
- When trying to open browser immediately after installtion Java.Script Error
- Error: Can't walk dependency graph: Cannot find module '@beaker/dat-serve-resolve-path' f HOT 2
- Consider dat support in brave browser, reconsider ipfs in beaker
- implementation 'com.google.firebase:firebase-analytics:17.4.1'
- implementation 'com.google.firebase:firebase-analytics:17.4.1'
- Javascript error immediately after installation HOT 1
- Web browser extensions
- No more development? HOT 7
- No space between words in interface
- Beaker Installation Issues
- What about adding Aggregore features into Beaker Browser?
- Beaker Browser with Solid
- no IDN?
- PR: Prepare for alignment with upstream code-oss web-modules HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beaker.