-
Notifications
You must be signed in to change notification settings - Fork 30
js-ipfs bundled into browser extensions #132
Comments
i did some poking around js-ipfs chrome extension. i found https://github.com/rynomad/protochrome which is a good hack. the idea is to use chrome's "web protocol handlers" https://developers.google.com/web/updates/2011/06/Registering-a-custom-protocol-handler?hl=en which redirects a protocol of the form Another option i considered was to use https://developer.chrome.com/apps/manifest/url_handlers -- but these seem only to work with http? maybe i'm wrong. Firefox is different, firefox allows custom protocols. @lidel — of https://github.com/lidel/ipfs-firefox-addon fame — probably knows exactly where to add js-ipfs. I think that's the way to go. @diasdavid @dignifiedquire maybe ask @lidel where to add js-ipfs based resolution to the firefox extension, so that users can browse |
There's this for firefox addons. looks old but may work https://github.com/Gozala/jetpack-protocol Do we know what are the easiest and best ways to add protocols to Firefox is now? cc @Gozala |
Regarding Firefox Addons: The jetpack-protocol can't be used: it relies on things like direct access to XPCOM. The only future-proof API/SDK for writing Firefox Addon "today" is WebExtensions (WE). There will be a grace period when old SDK is still supported, but all addons using XPCOM (inluding ipfs-firefox-addon) will have to be migrated to WE, eventually. I created a plan for moving to WE some time ago: ipfs/ipfs-companion#20, but no actual work has been done yet. Still waiting for WE to provide similar functionality as the old SDK (checked few moths ago: I was unable to find any info about custom protocols nor socket API in WebExtensions API). tl;dr most of my Firefox SDK know-how is outdated and I did not learn WebExtensions yet, sorry :/ @jbenet if you want solid feedback on this, the add-ons/development at mozilla-community.org seems to be the best place to ask about current state of custom protocol support in WebExtensions. |
I am a bit out of my league here, but I am wondering if james mcfarland
|
i think this happened |
Yes, you can opt-in and play with js-ipfs embedded in ipfs-companion: Keep in mind that js-ipfs in browser context comes with some limitations, some of them will be addressed in Q3. |
@lidel you should share a big update here :) |
Bunch of thoughts are elsewhere, but here to track this specific effort.
Now that https://github.com/ipfs/js-ipfs is ready, we can bundle it directly into browser extensions to provide an IPFS node resolving things directly from the browser. This is different than just in a tab; it's a less expensive version where connections are shared, but does require users installing the extension.
The text was updated successfully, but these errors were encountered: