A browser designed to open safe://
websites on the SAFE Network.
Maintainer: Krishna Kumar ([email protected])
-
Prerequisites:
-
Clone this GitHub repository:
git clone https://github.com/maidsafe/safe_browser.git
-
Install the dependencies:
cd safe_browser yarn
If you're actively developing, you can run
NODE_ENV=dev yarn
instead in order to get thesafe_client
libraries which use theMockVault
file rather than connecting to the SAFE Network.yarn
will attempt to use multiple processes to speed up installation, which will cause errors on Windows. So, before runningyarn
, runyarn config set child-concurrency 1
.- You'll notice that you can't run
NODE_ENV=dev yarn
in command prompt or PowerShell. Instead, before runningyarn
, run$env:NODE_ENV = "dev"
in PowerShell orset NODE_ENV=dev
in command prompt. Both of which will only last as variables for the duration of that shell session.
-
Build the SAFE Browser and open it:
yarn run build yarn start
If you're actively developing, you can use
yarn run watch
to have assets built automatically when they change. -
Package the SAFE Browser for production:
yarn run package
The packed SAFE Browser will be found inside
dist
folder.
If you pull the latest from the repo and get weird module errors, try:
yarn run burnthemall
This will remove your node_modules
and do the full install, rebuild, build SAFE Authenticator, and package processes for you. After this, yarn start
should work again.
You can discuss development-related questions on the SAFE Dev Forum. Here's a good post to get started: How to develop for the SAFE Network.
SAFE Browser is a lightly modified fork of the Beaker Browser.
Modified MIT as per the BeakerLicense