DevelopmentBuild from source
Build from source
Prerequisites
| Tool | Version |
|---|---|
| Rust | pinned in rust-toolchain.toml (installed automatically by rustup) |
| Node.js | 22.12 or newer |
| pnpm | 10 (corepack enable) |
| Docker | for the protocol integration tests |
| CMake, a C/C++ compiler, libclang | for the on-device AI engine (llama.cpp), enabled by default |
Platform build dependencies follow the Tauri prerequisites. On Debian or Ubuntu:
sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev \
libssl-dev libayatana-appindicator3-dev librsvg2-dev libudev-devFor mobile targets you additionally need Android Studio (SDK and NDK) and, on macOS, Xcode.
Get the code and run it
git clone https://github.com/DavidNiessen/vaultport.git
cd vaultport
pnpm install
pnpm dev # desktop app with hot reloadMobile development builds:
pnpm --filter @vaultport/desktop tauri android dev
pnpm --filter @vaultport/desktop tauri ios devA release build for your platform:
pnpm build # = pnpm --filter @vaultport/desktop tauri buildThe UI also runs in a plain browser (pnpm --filter @vaultport/desktop dev) against a mock backend, which is handy for UI work and screenshots.
Without local AI
The local-ai cargo feature (default) compiles llama.cpp from source. To build without it — for example when CMake is not available — disable the app's default features:
cargo build -p vaultport --no-default-featuresThe app then reports local AI as unavailable; everything else works. On Apple silicon, the metal feature enables GPU offload.
Quality gates
All of these run in CI and must pass before a merge:
pnpm format:check # prettier
pnpm lint # eslint (zero warnings)
pnpm typecheck # tsc --noEmit
pnpm test # vitest
cargo fmt --all --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
cargo deny checkProtocol integration tests use throw-away OpenSSH servers in Docker:
docker compose -f docker/test-servers/compose.yml up -d --build
cargo test -p ssh-engine --features integration -- --test-threads=1
cargo test -p sftp-engine --features integrationThis website
The site lives in docs/ and is built with VitePress:
pnpm --filter @vaultport/docs dev # live preview
pnpm --filter @vaultport/docs build # static output in docs/.vitepress/dist
pnpm --filter @vaultport/docs preview # serve the buildThe build also writes llms.txt, llms-full.txt, robots.txt and a Markdown copy of every page. Set DOCS_BASE=/ to build for a custom domain instead of /vaultport/.