Skip to content


Repository files navigation


This is a Webextension which enables websites to be loaded over the dat:// protocol on Firefox. It uses the libdweb protocol handler to register the dat:// protocol, and polyfills for node's net and dgram APIs using libdweb's TCPSocket and UDPSocket in order to bundle the dat network implementation with the extension. More on how this works in this post

Try it out

Install dependencies and build:

npm install
npm run build

Run with web-ext (requires Firefox Developer Edition or Firefox Nightly installed):

npm run start

Install in Firefox

You will need Firefox Developer Edition or Nightly. Other Firefox releases do not allow unsigned extensions to be installed.

  1. Go to about:config and set the pref xpinstall.signatures.required to false and extensions.experiments.enabled to true.
  2. Download the latest version of the extension.
  3. Go to about:addons and choose 'Install addon from file' from the cog menu in the top right, then browse to zip file you just downloaded. The browser will ask for permissions to install.