Private GUI repository for Squigit.
Note: The public repository containing the core logic and the
squigit-rscrate is available at https://github.com/squigit-org/squigit.git.
squigit/: Main desktop application frontend (Electron + React 19 + TypeScript + Vite).backend/: Native Node.js N-API addon and runtime bindings.capture/: Qt6/QML native screen capture & annotation engine with Rust wrapper (capture-engine).xtask/: Workspace automation and task runner.
Project workflows and build tasks are managed via cargo xtask.
cargo xtaskUsage:
cargo xtask dev
cargo xtask doctor [--dev]
cargo xtask fmt [--all]
cargo xtask clean
cargo xtask build --squigit
cargo xtask build --backend
cargo xtask build --capture [--qt]
cargo xtask dev: Start the desktop application in development mode with hot reloading.cargo xtask doctor: Run health and diagnostics checks (TypeScript type checking, Cargo workspace validation, and CMake configure check). Use--devto check against the local facade through.cargo/dev.toml.cargo xtask fmt: Auto-format git-changed files only (rustfmt for Rust, Prettier for JS/TS/CSS/JSON/MD, clang-format for C++).cargo xtask fmt --all: Auto-format the entire repository.cargo xtask clean: Clean build artifacts across Cargo, native CMake build directories, and frontend distributions.cargo xtask build --squigit: Build the Squigit desktop application.cargo xtask build --backend: Build the backend native library with@napi-rs/cli.cargo xtask build --capture: Build the full lifecycle Capture Engine and bundle portable runtime packages intosquigit/binaries/<target-triple>.cargo xtask build --capture --qt: Fast incremental build for the Qt6/QML native binary (capture-bin/capture.app/capture.exe) without packaging.
API key reveal requests go through Electron's main process and the native backend. Ubuntu and Fedora use the system Polkit authentication agent, macOS uses LocalAuthentication with Touch ID or the account password, and Windows uses Windows Hello attached to the Squigit window. Successful native authentication grants the active profile a fixed 10-minute grace period across providers. The backend keeps this authorization in memory; later reveals do not extend it, and profile changes, sign-in, sign-out, or application restart clear it. Cancellation keeps the key hidden and grants no grace period. Persisted captcha timestamps do not authorize desktop reveals.
For Linux development, register the action once:
sudo sh squigit/resources/polkit/install-policy.sh
cargo xtask build --backend --dev
cargo xtask devPolkit automatically reads /usr/share/polkit-1/actions/org.squigit.policy. The action uses auth_self for active local sessions and denies inactive or remote sessions. It authenticates the signed-in Linux user without running Squigit or another command as root. GNOME and KDE supply the graphical prompt under both X11 and Wayland. Password or fingerprint availability follows the system's polkit-1 PAM configuration. Windows requires an enrolled Windows Hello method.
Linux AppImages include the policy and installer in resources/polkit; run that installer with sudo once before revealing keys. Future DEB/RPM package assembly must install the policy as a root-owned, mode 0644 file in /usr/share/polkit-1/actions and depend on the distribution's Polkit package (polkitd on Ubuntu, polkit on Fedora). The app reports missing policy or authentication-agent errors through the settings toast and keeps the key hidden.
The slide-captcha UI and its dedicated colors have been removed. Manually verify successful authentication, cancellation, rejected authentication, repeated reveals within the 10-minute grace period, a fresh prompt after expiry or restart, and changing profiles while a prompt is open on Ubuntu GNOME, Ubuntu X11, Fedora KDE, Windows, and macOS.