Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experiment with embedded js-ipfs #183

Closed
lidel opened this issue Dec 17, 2016 · 4 comments
Closed

Experiment with embedded js-ipfs #183

lidel opened this issue Dec 17, 2016 · 4 comments
Labels
kind/enhancement A net-new feature or improvement to an existing feature status/blocked/missing-api Blocked by missing API

Comments

@lidel
Copy link
Member

lidel commented Dec 17, 2016

Not sure how feasible JS implementation is at this time, but in future it should be possible to bundle it with the add-on and add a setting "Use embedded IPFS node" which would automatically start js-ipfs instance and use it instead of external HTTP gateway.

Ref.
https://github.com/ipfs/js-ipfs#use-in-the-browser-with-browserify-webpack-or-any-bundler

@lidel lidel added status/blocked/missing-api Blocked by missing API kind/enhancement A net-new feature or improvement to an existing feature labels Dec 17, 2016
@lidel
Copy link
Member Author

lidel commented Feb 21, 2017

There is ongoing effort at ipfs/in-web-browsers#42 (comment)

@lidel lidel mentioned this issue Feb 23, 2017
9 tasks
@dignifiedquire
Copy link
Member

Subscribing, please ping me if there is anything you need help with making this happen.

@lidel
Copy link
Member Author

lidel commented Feb 26, 2017

@dignifiedquire
In short, WebExtension could use embbeded js-ips for two things:

  1. Expose IPFS API as window.ipfs on EVERY page, so that site developers can look for it and take advantage of it.
    There is unfinished PoC at https://github.com/VictorBjelkholm/js-ipfs-in-the-browser.git
    This is something we may revisit in future, but is not production ready yet due to security concerns. There is a ticket about securing API with ACL and Tokens at HTTP API, access control and API tokens notes#159

  2. Provide local IPFS2HTTP Gateway (just like go-ipfs does) so that WebExtension can run without go-ipfs and redirect HTTP requests to a local js-ipfs node.
    This is something I could integrate with right now, but js-ipfs's gateway functionality is not ready yet.
    I think if you could look at No routes for HTTP Gateway js-ipfs#693 and Add gateway route /ipfs/* js-ipfs#698 it would be a good step towards that goal. 👍

@lidel
Copy link
Member Author

lidel commented May 9, 2017

Continued in #248

@lidel lidel closed this as completed May 9, 2017
@ipfs ipfs locked and limited conversation to collaborators May 9, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/enhancement A net-new feature or improvement to an existing feature status/blocked/missing-api Blocked by missing API
Projects
None yet
Development

No branches or pull requests

2 participants