bunsenbrowser / bunsen

🔥 Bunsen Browser provides easy to use offline P2P application and file distribution that is verifiable on Android devices. https://bunsenbrowser.github.io/
117 stars 7 forks source link

Feature: implement DatArchive API #66

Open chrisekelley opened 6 years ago

chrisekelley commented 6 years ago

Bunsen should provide access to all of the DatArchive API as well as tests and examples.

chrisekelley commented 6 years ago

Here's what we have so far:

So far there's create, getInfo, mkdir, and writeFile in this commit.

RangerMauve commented 6 years ago

I think @pfrazee was looking into standardizing an HTTP API for accessing Dat Archives.

Not sure if he had something you could work off of.

pfrazee commented 6 years ago

I'm not focusing on that right now so I wouldnt wait for me.

chrisekelley commented 6 years ago

Collecting some resources to implement the DatArchive API in Bunsen. So far there's create, getInfo, mkdir, and writeFile in www/nodejs-project/index.js

What others do we need to implement?

Some resources:

RangerMauve commented 6 years ago

Don't forget dat-archive-web 😀

chrisekelley commented 6 years ago

@RangerMauve ahhh yes, thanks! added to list.

chrisekelley commented 6 years ago

List of DatArchive functions to consider for implementation. Most of these are from node-dat-archive, but also note ones from dat-archive-web.

chrisekelley commented 6 years ago

I just made a new release of Bunsen which exposes some of these DatArchive API methods. It's now on the Play Store.

Check out Using the DatArchive API in Bunsen to create dat applications for dev info, and https://github.com/bunsenbrowser/bunsen/releases/tag/1.1.3 for info about this release.

You can test out this DatArchive support using the Bunsen Play dat:

dat://bunsen-play.hashbase.io

Next big step is to confirm if sharing is working - Some some modifications to dat-gateway may be needed to recognise and share new dats.

RangerMauve commented 6 years ago

This is so awesome! Great job! 😀💜

chrisekelley commented 6 years ago

RJ contributed the implementations of watch and load!