Vultisig Desktop & Vultisig Extension
This monorepo contains two main components:
- The Vultisig Desktop Application (Windows and Linux)
- The Vultisig Extension Browser Extension - A Chrome extension for bridging your Vultisig vaults to dApps
Desktop Application
Technical Requirements
This project uses Wails. Please refer to https://wails.io/docs/gettingstarted/installation/ for installation instructions.
For Linux Users
Linux builds link WebKitGTK 4.1 (libwebkit2gtk-4.1-0), which is available on
Ubuntu 22.04+, Debian 12 and Debian 13:
sudo apt update
sudo apt install libwebkit2gtk-4.1-0
wails.json sets the webkit2_41 build tag, so every wails build and
wails dev on Linux needs libwebkit2gtk-4.1-dev. A binary built against
WebKitGTK 4.0 does not start on Debian 13, which no longer ships it.
Development
To run the desktop application in development mode:
yarn dev:desktop
The startup receipt prints separate Wails, Vite, and local mediator URLs. Open the Wails URL; the Vite server does not have the required Wails-injected scripts. The primary checkout defaults to ports 34115, 5173, and 18080. Linked worktrees receive stable, isolated ports and a worktree-local development database automatically.
Building
To build the desktop frontend:
yarn build:desktop
To build the native desktop binary:
sudo apt install libgtk-3-dev libwebkit2gtk-4.1-dev
wails build
Before packaging a Linux release, confirm the binary links WebKitGTK 4.1:
bash scripts/verify-linux-webkit.sh build/bin/vultisig
Vultisig Extension Extension
What is Vultisig Extension?
Vultisig Extension is a Chrome extension similar to MetaMask but much safer. It does not store any critical information such as private keys or passwords. Instead, it acts as a bridge that allows you to connect your Vultisig app to DeFi applications, enabling you to interact with them and sign transactions securely on your devices.
How Safe is Vultisig Extension?
You only need to import public keys and vault information into Vultisig Extension. Unlike MetaMask, if someone hacks your Chrome or the extension, they cannot execute transactions without your approval on your Vultisig devices, as they only have access to public information.
Requirements
Before building Vultisig Extension, ensure you have the following installed:
Node.js(version 18.10.0 or later)yarn(for managing packages)
Development
To run the Vultisig Extension extension in development mode:
yarn dev:extension
Building
To build the regular Vultisig extension:
yarn build:extension
The Vultisig artifact is written to clients/extension/dist.
To build the Station extension:
yarn build:extension:station
The Station artifact is written independently to
clients/extension/dist-station. Building one flavor does not replace the
other.
Installing in Chrome
- Open Chrome and navigate to
chrome://extensions - Enable "Developer mode" (top-right corner)
- Click "Load unpacked" and select
clients/extension/distfor Vultisig orclients/extension/dist-stationfor Station. - Verify the extension card says
Vultisig ExtensionorStation Wallet, note its extension ID, and reload the exact directory selected above before reviewing UI. - The extension should now be installed and ready to use.
Vultisig Extension Integration Guide
For details on integrating Vultisig Extension with your project, see the Integration Guide.
Vultisig SDK
This project depends on multiple packages from the vultisig-sdk monorepo, published individually on npm:
@vultisig/sdk— main SDK@vultisig/core-chain— blockchain/chain utilities@vultisig/core-config— configuration@vultisig/core-mpc— multi-party computation@vultisig/lib-utils— shared utilities
CI also runs a non-blocking compatibility check against the SDK main branch to catch integration issues early.
Developing with the latest SDK (unreleased)
Since vultisig-sdk is a monorepo, yarn link won't work due to peer dependency conflicts. A script is provided that builds the SDK, packs all packages into tarballs, and overrides them via resolutions:
./scripts/use-local-sdk.sh /path/to/vultisig-sdk
This will build the SDK, pack all shared packages, add resolutions to package.json, and run yarn install.
To restore npm versions:
git checkout package.json yarn.lock
yarn install
Releasing
Production builds always use npm-published SDK versions. Before releasing, ensure all @vultisig/* dependencies in package.json point to stable npm versions, not git references or local links.
Development Guidelines
Code Organization: Domain-Driven Structure
This codebase uses domain-driven organization - files are grouped by business purpose rather than technical type.
❌ Avoid: Dumping everything in generic folders like core/ui/components
✅ Follow: Place files based on their business domain. For example, ReshareVaultPage goes in core/ui/mpc/keygen/reshare/ because:
core/- shared across projectsui/- user interface codempc/- multi-party computation domainkeygen/- key generation subdomainreshare/- specific reshare functionality
This makes code easier to find, understand, and maintain by keeping related functionality together.
Top-Level Folder Structure
When adding new code, choose the appropriate top-level folder based on abstraction level:
lib/ - Pure, reusable code that could work in any project
- Zero dependencies on Vultisig business logic
- Examples: UI components, utilities
- Think: "Could I copy this to a completely different project?"
core/ - Vultisig-specific business logic shared across clients
- Contains domain knowledge about vaults, MPC, chains, etc.
- Shared between desktop and extension clients
- Examples: vault management, MPC protocols, chain integrations
clients/ - Application-specific code for each platform
clients/desktop/- Desktop app UI and platform-specific codeclients/extension/- Browser extension UI and Chrome APIs- Should import from
core/andlib/, not the other way around
Rule of thumb: Code flows from abstract (lib/) → domain-specific (core/) → application-specific (clients/).
Within Feature/Domain Folders
Inside each feature or domain folder, organize files by their technical purpose:
config.ts - Shared constants and configuration
- Feature-specific constants that might be reused
- Default values, enums, static configurations
- Example:
core/ui/passcodeEncryption/core/config.tsfor passcode-related constants
state/ - React state management organized by entity
- One subfolder per data entity being managed
- Example:
state/mpcServerType/contains hooks and providers forMpcServerType - Include both the hook and provider in the same folder
core/ - Pure business logic for this feature
- Types, interfaces, classes, utility functions
- No React dependencies - pure TypeScript/JavaScript
- Example:
core/ui/chain/coin/addCustomToken/coreThis includes functions for adding custom tokens based on a specified chain, serving as the foundational logic for this feature.
queries/ - React Query queries for data fetching
- GET operations, data fetching hooks
- Organized by entity or API endpoint
- File names don't need the full hook name (e.g.,
coinBalance.tsinstead ofuseCoinBalanceQuery.ts)
mutations/ - React Query mutations for data modification
- POST, PUT, DELETE operations
- State-changing operations
- File names don't need the full hook name (e.g.,
changePasscode.tsinstead ofuseChangePasscodeMutation.ts)
Note: No /components folder needed - most files are already components, and non-component code goes into the folders above.
