thmsbfft / oryoki

Ōryōki [応量器] is an experimental web browser with a thin interface.
http://oryoki.io/
MIT License
484 stars 32 forks source link

Dat Readability #43

Open jondashkyle opened 6 years ago

jondashkyle commented 6 years ago

Load Dat archives! This would be view only, and enable use of Beakers web-api and webdb. This could require breaking out some of the core Beaker functionality for viewing Dat archives, but until then perhaps there are some redundant implimentations.

Reference

neauoire commented 6 years ago

I've been hitting my head on getting this running all day. I think I can figure this out.

jondashkyle commented 6 years ago

@neauoire I also have a very rudimentary version of this running locally. Also, am somewhat sure Paul and Brave have been discussing formalizing the Web API within Beaker into a library which would be plugable for any electron app more or less. Dunno where that is now, but certainly on the map.

neauoire commented 6 years ago

I've modified the view.js 's load() to catch dat:// requests/load the content of the dat:// url. It works for html/text content but none of the images/included files are loading. I'm currently using pauls-dat-api, I'll spend a bit more time on this, but this project can definitely become a base to bring dat to any electron browser.

Maybe we can bring @pfrazee in the thread.

jondashkyle commented 6 years ago

@neauoire Interesting; could you push that branch of your fork? Curious to take a look.

thmsbfft commented 6 years ago

Also curious about you two's work in this area. I'm not very familiar with Dat yet, was planning to take a crack at it once Beaker's Web API has legs of its own. In any case, great to see this issue gaining traction.

neauoire commented 6 years ago

I'm busy with something this morning, but as soon as I have a few minutes, i'll push my changes, and we'll see how we can go from there :) I'm excited.

pfrazee commented 6 years ago

I have a plan to factor out Beaker's dat-handling code, but it won't be on my task list for a little longer. You should be able to copy out Beaker's code without too much trouble.