A browser designed to open safe:// websites on the SAFE Network.
Maintainer: Krishna Kumar (krishna.kumar@maidsafe.net)
-
Prerequisites:
-
Clone this GitHub repository:
git clone https://github.com/maidsafe/safe_browser.git
-
Install the dependencies:
cd safe_browser yarnIf you're actively developing, you can run
yarn mockinstead ofyarnin order to get thesafe_clientlibraries which use theMockVaultfile rather than connecting to the SAFE Network.yarnwill attempt to use multiple processes to speed up installation, which will cause errors on Windows. So, before runningyarnoryarn mock, runyarn config set child-concurrency 1.
-
Build the SAFE Browser and open it:
yarn run build yarn start
If you're actively developing, you can use
yarn run watchto have assets built automatically when they change. -
Package the SAFE Browser for production:
yarn run package
The packed SAFE Browser will be found inside
distfolder. In order to be able to connect to the live SAFE Network, a crust.config file shall be placed in the same path of the browser executable. You can find a copy of the crust.config file atbuild/SAFE Browser.crust.configand copy it ontodist/safe-browser-<version>-<platform>/<safe browser exec name>.crust.config.
If you pull the latest from the repo and get weird module errors, try:
yarn run burnthemallThis 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.
This is dual-licensed under the Modified BSD (LICENSE-BSD https://opensource.org/licenses/BSD-3-Clause) or the MIT license (LICENSE-MIT https://opensource.org/licenses/MIT) at your option.