Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 1.94 KB

brave.md

File metadata and controls

27 lines (22 loc) · 1.94 KB

IPFS Companion in Brave

🚧 Current Status

Developer version of ipfs-companion works in Brave. To try it out today you need to run Brave from source. We are working with Brave to get seamless IPFS support working out of the box (with embedded js-ipfs node).

Our progress can be tracked in #312 🏗️

👷 Developer Instructions for Running HEAD in Brave

  1. Configure your local ipfs gateway to run on port 9090 (the default, port 8080, conflicts with the brave webpack dev server)
  2. Clone and build ipfs-companion as in README
  3. Clone brave/browser-laptop
  4. Symlink the ipfs-companion/add-on dir to browser-laptop/app/extensions/ipfs
  5. Add the following to browser-laptop/app/extensions.js#L500-L502
    // Enable IPFS
    extensionInfo.setState('ipfs', extensionStates.REGISTERED)
    loadExtension('ipfs', getExtensionsPath('ipfs'), undefined, 'component')
  6. In the browser-laptop project run npm install then in separate shells run npm run watch and npm start. If you have any trouble running Brave from source, check: https://github.com/brave/browser-laptop#installation
  7. Brave will start up and you should see a badge with your number of connected ipfs peers next to the brave button, top right. (If it does not, make sure these patches are merged: issue, pr)
  8. Click on the badge and update your gateway settings to use port 9090, then go share something with your peers: brave ipfs