Awesome
The IPFS web browsers integration group
Informal group working on improving IPFS presence in web browsers
Our goal is to facilitate native support for IPFS and other decentralized protocols in web browsers in order to benefit ....
- Browser users: Browser extensions and native-included IPFS alike expose IPFS features in a robust and intuitive way
- Web developers: Web developers can enjoy a smooth experience working with IPFS in browser contexts
- Browser vendors: Browser developers are empowered to meet the requirements of the distributed web
Contents
Current projects
IPFS Companion browser extension
IPFS Companion is a browser extension that simplifies access to IPFS resources and adds browser support for the IPFS protocol. It runs in <img src="https://unpkg.com/@browser-logos/firefox@2.0.0/firefox_16x16.png" width="16" height="16">Firefox (desktop and Android) and Chromium-based browsers including <img src="https://unpkg.com/@browser-logos/chrome@1.0.4/chrome_16x16.png" width="16" height="16">Chrome or <img src="https://unpkg.com/@browser-logos/brave@3.0.0/brave_16x16.png" width="16" height="16">Brave. Check out all of IPFS Companion's features and install it today!
<img src="https://unpkg.com/@browser-logos/firefox/firefox_16x16.png" width="16" height="16"> Firefox | Firefox for Android | <img src="https://unpkg.com/@browser-logos/chrome/chrome_16x16.png" width="16" height="16"> Chrome | <img src="https://unpkg.com/@browser-logos/brave/brave_16x16.png" width="16" height="16"> Brave | <img src="https://unpkg.com/@browser-logos/opera/opera_16x16.png" width="16" height="16"> Opera | <img src="https://unpkg.com/@browser-logos/edge/edge_16x16.png" width="16" height="16"> Edge |
---|---|
<br> | <br> |
Notable past web extension experiments
- Mozilla hosted a community effort called
libdweb
to implement experimental APIs for Firefox WebExtensions, with a goal of enabling dweb protocols in Firefox through browser add-ons:- IPFS libdweb experiments, including a native protocol handler, local DNS-SD discovery and TCP transport
- The long-term goal of this project was to integrate these APIs into the WebExtensions ecosystem, but as of Q3 2020 it is not yet in Firefox Nightly
- Exposing the IPFS API via
window.ipfs
(experiment ended in 2020) - Support for
chrome.sockets.*
APIs in Chromium browsers (ended due to EOL 2022)
IPFS and the JavaScript ecosystem
Helia
Helia is a lean, modular, and modern TypeScript implementation of IPFS for the prolific JS and browser environments.
See the Manifesto, the FAQ, and the State of IPFS in JS blog post from October 2022 for more info.
Usage examples:
- examples at
ipfs/helia
- an advanced, end-to-end example of using
@helia/verified-fetch
node inServiceWorker
can be found at https://inbrowser.link (sources)
Legacy JS-IPFS
The js-ipfs
/ ipfs-core
is is no longer maintained.
See State of IPFS in JS blog post from October 2022 for rationale.
How to address IPFS on the web
- For regular users, see
- For browser vendors and user agent developers, see this memo for the current set of URL conventions for the IPFS community; we invite everyone to submit questions and suggestions for improvements via issues/PRs
How to run own HTTP Gateway
- If you are a desktop user, try IPFS Desktop
- If you only want to run a Gateway as a public HTTP server, and the data is provided by separate IPFS nodes, use the latest Rainbow, which is a specialized gateway daemon.
- If you want to host your own data and prefer to work with command-line, use the latest Kubo daemon and follow gateway recipes.
- If you have a lot of data, consider running Kubo with IPFS Cluster.
How to implement HTTP Gateway
See specification and implementer notes at https://specs.ipfs.tech/http-gateways/.
DNSLink
DNSLink enables you to map a domain name to an IPFS address (CID or IPNS libp2p-key) by means of a DNS TXT record.
- Read the DNSLink guide for details, including how to set it up on your own website
- See details on DNSLink in IPFS Companion to see additional benefits of using IPFS Companion with DNSLink support
Collaborations
W3C
Protocol Labs is a W3C Member. Current focus is to watch, learn, and participate in WebExtensions Community Group.
- 2023-Q3: ServiceWorker-like protocol handlers for WebExtensions mentioned during WECG TPAC 2023 (notes)
IPFS and Igalia collaborate on dweb in browsers
In 2020 IPFS and Igalia started a collaboration that continues to this day. Read more: https://blog.ipfs.tech/2021-01-15-ipfs-and-igalia-collaborate-on-dweb-in-browsers/
The most notable highlights (chronological order):
- IPFS and Igalia started a collaboration that will continue beyond 2021+
- Distributed web schemes have been safelisted in Chrome 86’s implementation of custom handlers and registered at IANA.
- Chrome 89 will allow browser extensions to register cross-origin handlers or handlers for schemes with prefix
ext+
. Refinement is pending for the permission UI. - Firefox 84 marks
http://*.localhost/
URLs as secure context, which means websites loaded from local subdomain gateway will have access to the same Web APIs as HTTPS version. - Firefox 84 has improved support for loading locally delivered mixed-resources. Patches have also been submitted to WebKit but are pending on reviews and discussions.
- Work is in progress to improve Chromium’s consistency and specification compliance regarding the notion of secure contexts, including removing non-standard localhost names.
- Miscellaneous other fixes have landed for the Firefox and Chromium’s implementations of custom handlers.
- WIP refactor to make it easier to register custom protocol handlers (example, related talk: Integrating New Protocol Handlers into Chrome [BlinkOn 15])
- 2022-05-10: HTML spec PR: add IPFS and IPNS as safelisted schemes for
registerProtocolHandler()
- 2022-05-18: Chromium status update: New Custom Handlers Component (BlinkOn 16)
- 2022-06-28: Explainer: Predefined Custom Handlers + Chromium discussion thread
- 2022-07-20: Chromium SchemeRegistry patch MERGED: New list in SchemeRegistry to manage schemes with predefined handlers
- 2022-08-03: After refactors, adding predefined, redirect-based handlers is 2 LOC – demo Implement Predefined Handlers for IPFS schemes using the SchemeRegistry
- 2022-08-01: Blogpost: New Custom Handlers component for Chrome
- 2022-09-28: Intent to Prototype: Curve25519 in Web Cryptography
- 2023-Q3: Kick-off work with Igalia on prototyping ServiceWorker-like protocol handlers for WebExtensions
- 2024-Q3: Curve25519 in Web APIs is implemented in Chromium and WebKit behind a runtime flag #, remaining work is around WPT and specification details.
Brave
- 2021: Brave v1.19 has integrated IPFS into their desktop web browser for Windows, macOS and Linux.
- When Brave detected an address which is an HTTP gateway URL to IPFS content or a native IPFS address such as
ipfs://
oripns://
it prompted the user to install and enable the native IPFS node (Kubo), or to use an HTTP gateway. - Initial release (v1.19) was focused on daemon orchestration and on URI support (read blogs and press)
- When Brave detected an address which is an HTTP gateway URL to IPFS content or a native IPFS address such as
- 2024: After over three years, the Brave team decided to remove support for running IPFS node as we could not find a mutually agreeable set of terms to make this integration sustainable.
- Users can retain their PeerID and onboarded data by switching to IPFS Desktop + Companion extension. More details at Migrating from Brave to IPFS Desktop.
ipfs-chromium
- 2023-Q3: Project introduction blogpost at IPFS Multi-Gateway Experiment in Chromium
- 2023-Q3: ipfs-chromium project ships first builds
- 2023-08-30: Intent to Experiment: Verifying IPFS client via HTTP APIs
Opera
Opera for Android 57 introduced support for resolving ipfs://
or ipns://
via a customizable gateway.
Read more: https://blog.ipfs.tech/2020-03-30-ipfs-in-opera-for-android/
Get involved!
<!-- TODO: well, maybe we can bring this back one day... ### Join a meeting We'd love to meet you in person at one of our open Web Browsers & GUI Working Group meetings. They're a great way to get quickly up to speed on our work, including latest developments and awesome demos. - Meeting details at https://github.com/ipfs/team-mgmt/issues/790 You can also explore [recordings](https://www.youtube.com/playlist?list=PLuhRWgmPaHtRIXVTy_ngBwvsXvWw10mR8) and [notes](https://github.com/ipfs/team-mgmt/tree/master/meeting-notes) from past meetings any time. -->Contribute to an issue
Contributions to our work are more than welcome! Every IPFS Project repo makes use of the project-wide global issue labeling scheme. Good labels to look for are ...
help wanted
good first issue
- and there are even occasional
bounty
labels for issues with rewards as part of the IPFS Bounty Board!
If you see an issue that catches your eye, leave a comment so we know you're interested, and we'll go from there!
We're an open project and a friendly group, so please be nice and read the contributing guidelines when you're ready to jump in.
Discuss
For the sake of async communication, archiving, and searchability, we encourage browser-related technical discussions to happen in the context of GitHub issue comments whenever practical.
If you want to ask support question, or just chat informally to learn and brainstorm, feel free to join chat community or discussion forum at https://discuss.ipfs.tech
Improve docs
https://docs.ipfs.tech is backed by the repo at https://github.com/ipfs/ipfs-docs – any help in improving docs related to browsers (or not) is appreciated!
Improve specs
Proof-read ipfs/specs and fill an issue for: (1) outdated specs (2) missing specs (3) bits that are confusing and need to be clarified.
Resources
If you're looking for endeavors related to IPFS browser integration work, these resources may be helpful.
- IPFS in Brave Browser: TLDR explanation how Brave supports IPFS out of the box (either as local node, or by delegating to a public gateway of user's choice)
- IPFS Companion: Harness the power of your local IPFS daemon directly inside your favorite Chromium or Firefox browser, enabling support for ipfs:// addresses, automatic IPFS gateway loading of websites and file paths, easy IPFS file import and sharing, and more
- IPFS Web UI: The IPFS dashboard shipped with the IPFS daemon or IPFS Desktop
- js-ipfs-core: Core IPFS implementation in JavaScript for use in browser (without Nodejs daemon parts)
- HTTP Gateway API docs - implementation-agnostic interface for trusted and trustless data retrieval
- HTTP RPC API docs: Guide to the RPC over HTTP API exposed when a Kubo IPFS node (go-ipfs) is running as a daemon; allows you to control the node and run the same commands you can from the command line
- For up-to-date info about which JS client to use, see https://github.com/ipfs/kubo/issues/9125
- IPFS GUI group - The other half of the IPFS Web Browsers & GUI Working Group, dedicated to creating and implementing standards and patterns for IPFS that are simple, accessible, reusable, and beautiful