Forest Explorer is a server-less inspector of the Filecoin blockchain.
Rust + Leptos application which is compiled to a server WASM module and a client WASM module. The server module is hosted by CloudFlare. It pre-renders a HTML response and hydrates it (i.e. add reactivity) via the client WASM module.
Anything pushed to main
will automatically be deployed at
https://forest-explorer.chainsafe.dev.
Installing node(LTS versions recommended).
Running corepack enable
to opt-in corepack, see
docs for details.
Running yarn
or yarn --immutable
once to install all required npm
dependencies.
Running yarn start
will spawn a local copy of the explorer.
To speed up the build during development, you can run yarn dev
which will skip
the optimization step.
You can define secrets for your local faucet in the .dev.vars
file. This file
is ignored by git.
SECRET_WALLET=
SECRET_MAINNET_WALLET=
RATE_LIMITER_DISABLED=true
Note - the RATE_LIMITER_DISABLED
variable is required to be set to true
in
order to bypass the rate limiter in the local environment if you want to test
the faucet.