Pipedash
Resources

Development

Pipedash dev environment setup with mise, running the app, every mise task, the Tauri prerequisites and the cargo features.

A working toolchain takes mise, a clone of the repository and two commands. This page lists the tools, the tasks and the cargo features of the Pipedash repository.

Environment setup

The repository uses mise for tools and tasks. mise.toml pins these tools:

ToolVersion
Rustnightly-2026-10-31, with the components rust-src, llvm-tools, clippy, rustfmt and rustc-dev
Node26
Bun1.4.4
zizmor1.32.0
OSV Scanner2.7.0

The file sets RUST_LOG=debug and K8S_OPENAPI_ENABLED_VERSION=1.32. rust-toolchain.toml selects nightly-2026-10-31 for Cargo with the components rustfmt, rustc-dev, clippy, rust-src, llvm-tools-preview and rust-std.

Keep the Rust versions in both files aligned. Run cargo fmt without a toolchain override so formatting uses the pinned compiler.

These commands install mise, clone the repository, install the tools and then the frontend dependencies:

curl https://mise.run | sh

git clone https://github.com/hcavarsan/pipedash.git
cd pipedash
mise install
mise run install

The desktop app needs the system libraries that Tauri lists in its prerequisites. The CI jobs on Ubuntu install these packages:

sudo apt install -y build-essential curl wget file libxdo-dev libssl-dev \
  libayatana-appindicator3-dev librsvg2-dev libwebkit2gtk-4.1-dev patchelf xdg-utils

Running the app

mise run dev

dev runs the full stack with hot reload. It starts the backend with cargo watch and the Vite frontend side by side, and the frontend starts after the backend answers /api/health. mise run dev:tauri starts the native app.

Mise tasks

TaskWhat it does
devBackend with cargo-watch and the Vite frontend
dev:front, dev:backFrontend only, backend only
dev:tauriDesktop app
dev:ios, dev:androidMobile development
buildRelease build of pipedash-web after build:front
build:frontFrontend assets
build:tauriDesktop bundles
build:ios, build:androidMobile builds
build:analyzeFrontend build with bundle analysis
check, check:front, check:backTypeScript type check with tsc --noEmit and cargo check --workspace --all-targets --all-features
lintlint:front, lint:back, lint:actions, lint:structure and lint:dup
lint:frontFrontend Biome checks (bun run lint), followed by lint:screenshots
lint:screenshotsFrozen dependency installation, TypeScript checking and knip in ios/app-store-screenshots
lint:backClippy with warnings denied
lint:actionszizmor --persona=pedantic .github
lint:structureTests the structure checker, then audits source structure
lint:dupbunx jscpd, with a 1% duplication threshold
audit:depsosv-scanner scan source --recursive .
new:pluginGenerates a provider crate and adds its registry dependency
fix, fix:front, fix:backbiome check --write . and cargo clippy --fix --allow-dirty
fmt, fmt:front, fmt:backbiome format --write . and cargo fmt --all
fmt:check, fmt:front:check, fmt:back:checkbiome format . and cargo fmt --all -- --check
test, test:backcargo test --workspace --all-features
test:postgresPostgreSQL tests of pipedash-core. The task needs TEST_DATABASE_URL
cifmt:check, lint, check and test
precommitfmt, lint and check in sequence
releaseci and build
bump:patch, bump:minor, bump:majorVersion bump with the bump_version binary in hacks, then cargo update
installInstalls frontend dependencies with bun install
install:ios, install:androidInitializes the mobile targets
examples:sqlite:up, examples:sqlite:downBuilds and starts the SQLite Docker example, or stops it and deletes its volumes
examples:postgres:up, examples:postgres:downThe same for the PostgreSQL example
examples:demo:up, examples:demo:downBuilds and starts the public demo stack, or stops it and deletes its volumes
cleancargo clean and removal of crates/pipedash-web/dist and the Vite cache
knipFinds unused code
iconsGenerates app icons from app-icon.png into crates/pipedash-desktop/icons with the Tauri CLI
deps, deps:minorUpdates dependencies with taze, major or minor

bun run test type-checks tests with tsc -p tsconfig.test.json and runs bun test --isolate src. Bun isolates each test file. DOM tests unmount React roots and clear React Query clients before unregistering Happy DOM.

Run python3 scripts/test_icons.py to check icon generation in a temporary checkout without changing tracked icons. The CI Biome job runs this check after dependency installation, followed by lint:front and bun run test.

Contributor checks

mise run ci runs formatting, lint, type checks and the Rust workspace tests. It does not run bun run test or the ignored PostgreSQL tests.

The repository requires this full check sequence:

mise run fmt:check && mise run lint && mise run check && mise run test:back && bun run test

TEST_DATABASE_URL=postgresql://postgres:[email protected]:5432/pipedash_test \
  mise run test:postgres

mise run precommit formats, lints and type-checks. It does not run tests.

Dependency auditing runs locally with mise run audit:deps. CI dependency scanning is paused for existing Tauri Linux dependency findings. Changes must not add findings. The contributing page lists the code rules that lint:structure and lint:dup enforce.

Cargo features

FeatureCratesEffect
postgrespipedash-core, pipedash-desktop, pipedash-webCompiles PostgreSQL support. It is in the default features of all 3 crates
fullpipedash-core, pipedash-webEnables postgres
devtoolspipedash-desktopEnables tauri/devtools
custom-protocolpipedash-desktopEnables tauri/custom-protocol
embedded-frontendpipedash-webEmbeds frontend assets. Enabled by the crate's default features and required by its binary

A PostgreSQL storage backend needs the postgres feature at build time. The storage backends page covers the runtime choice.

The pipedash-web crate defaults to postgres and embedded-frontend. Its full feature enables only postgres. The root workspace dependency disables default features so library consumers can choose them.

Next step

The architecture page shows where a change belongs, and the contributing page covers the templates and checks. The iOS release page covers the iOS build and release workflows.