This project includes the following apps / packages:
guardian-ui: Web app experience for setting up and administering fedimints. This is used by the Fedimint guardiansgateway-ui: Web app experience for managing Fedimint gateways. This is used by Gateway administrators
ui: Shared React UI component library for building Fedimint UI experiencesutils: Shared utility functions like the current translation framework on Fedimint UI appseslint-config: Sharedeslintconfigurations (includeseslint-plugin-reactandeslint-config-prettier)tsconfig: Sharedtsconfig.jsons used throughout Fedimint UI apps
Fedimint UI releases use semantic versioning (major.minor.patch)
- Major and minor versions of
fedimint/uiare made to be compatible major and minor versions offedimint/fedimint- For instance, any
1.1.xrelease of the UI should work with any1.1.xrelease of Fedimint
- For instance, any
- Patch versions of
fedimint/uiare made independent offedimint/fedimint- For instance, you could run
fedimint/ui@1.0.1againstfedimint/fedimint@1.0.0and vice versa - It is always recommended to run the latest patch release of any version as they may contain important fixes
- For instance, you could run
- The
masterbranch offedimint/uiattempts to trackmasteroffedimint/fedimint- This tracking is a best effort, and sometimes the two will fall out of sync. Feel free to open an issue if you notice an incompatibility.
- It is not recommended to run
masterin production as breaking changes may occur without warning
git clone git@github.com:fedimint/ui.git fedimint-ui
cd fedimint-ui/apps/guardian-ui
yarn install
PORT=3000 REACT_APP_FM_CONFIG_API="ws://127.0.0.1:18174" yarn build && yarn startReplace PORT with a port of your choice, and REACT_APP_FM_CONFIG_API with the domain and port of your fedimintd API.
git clone git@github.com:fedimint/ui.git fedimint-ui
cd fedimint-ui/apps/gateway-ui
yarn install
PORT=3001 REACT_APP_FM_GATEWAY_API="http://127.0.0.1:8175" REACT_APP_FM_GATEWAY_PASSWORD="yourpassword" yarn build && yarn startNote: Docker images are only built for linux/amd64. Your docker will need to support virtualization to run on other platforms.
The guardian UI container is available at fedimintui/guardian-ui
docker pull fedimintui/guardian-ui:0.1.0
docker run \
--platform linux/amd64 \
--env "REACT_APP_FM_CONFIG_API='ws://127.0.0.1:18174'" \
-p 3000:3000 \
fedimintui/guardian-ui:0.1.0Replace -p 3000:3000 with a port of your choice, and REACT_APP_FM_CONFIG_API with the domain and port of your fedimintd API.
The gateway UI container is available at fedimintui/gateway-ui
docker pull fedimintui/gateway-ui:0.1.0
docker run \
--platform linux/amd64 \
--env "REACT_APP_FM_GATEWAY_API='ws://127.0.0.1:8175'" \
--env REACT_APP_FM_GATEWAY_PASSWORD=password \
-p 3001:3000 \
fedimintui/gateway-ui:0.1.0Replace -p 3001:3000 with a port of your choice, REACT_APP_FM_GATEWAY_API with the domain and port of your gatewayd API, and REACT_APP_FM_GATEWAY_PASSWORD with the password you set your gateway up with.
From root repo directory:
- Ensure Docker and yarn/nodejs are installed.
- Run
docker compose up(brings up a 2 server Fedimint) yarn install(First time only)yarn build(Needs to be rerun when code inpackageschange)- You can run any of the following commands during development
yarn dev- Starts development servers and file watchers for all apps and packages- Due to port conflicts, there are dev commands for each app to run individually
yarn dev:gateway-uiyarn dev:guardian-ui
- Due to port conflicts, there are dev commands for each app to run individually
yarn test- Tests all apps and packages in the projectyarn build- Build all apps and packages in the projectyarn clean- Cleans previous build outputs from all apps and packages in the projectyarn format- Fixes formatting in all apps and packages in the project
After running through the config setup UI flow once, you will need to delete the fedimintd data to run through it again. To do this, delete the fm_1, fm_2, fm_3, and fm_4 folder from the repo. These are data directories mounted to Docker containers running fedmintd and are listed in .gitignore so are safe to remove.
- Install mprocs
- Run
mprocs -c mprocs.yml
After running this command, you'll be present with the mprocs display. Along the left side are the list of processes currently available by mprocs. Along the bottom are hotkeys for navigating/interacting with mprocs. The main pane shows the shell output for the currently selected process.
The start-servers process shows combined logging for fedimintd, bitcoind, gatewayd, and lnd.
The stop-servers process can be used to stop all docker containers by hitting the s key to start the process. After doing so, you can return to the start-servers process and hit r to restart things.
The guardian-ui-1 and guardian-ui-2 are instances of guardian-ui apps, each running on different ports and connected to a unique fedimintd server instance (running in the start-servers process).
The gateway-ui is an instance of gateway-ui app, connected to a gatewayd server instance (running in the start-servers process).
You can see more details by viewing the mprocs.yml file.
The docker containers and devimint are for specific releases or commits of fedimint/fedimint. If you would like to run the UIs against a particular version of fedimint, or using changes you have made locally to fedimint itself:
- Run
cargo buildin fedimint - Run
env DEVIMINT_PATH=$(realpath ../fedimint/target/debug) yarn nix-guardian(assuming that you haveuiandfedimintrepos checked out in the same directory)
This will put binaries in fedimint/target/debug at the front of your $PATH. Devimint will use these binaries instead of the ones installed via Nix.

