A Rust-powered connection and transfer workspace for desktop and Android.
Pair deliberately. Transfer directly when possible. Give extensions only the access they need.
Active development · Not a supported release · Apache-2.0
Build ·
Architecture ·
Extensions ·
Documentation ·
Security
| Bring your devices together | Keep the decisions yours |
|---|---|
| Direct-first connections — retain configurable relay fallbacks, enable them independently and choose their order. | Explicit trust — deliberate pairing, incoming-transfer review and capability grants. |
| One application owner — the CLI, desktop and Android frontends share application contracts and transfer policy. | Visible extension controls — enable, restart, configure and review installed extensions without opening package details. |
| Desktop + Android — native frontends with platform-specific integration, not a desktop package relabelled for phones. | Extensible by contract — manifests describe capabilities, settings, actions and versioned services. |
Important
The source is public, but Peersus is still in development and is not a supported public release. The screenshot above is from the actual Android application. A successful build does not establish runtime support on every platform. The extension store is available only when a maintainer trust key and a signed catalog are configured.
Workspace metadata — generated from the actual project
Workspace version: 0.1.0 (development; not a release claim). Rust toolchain: 1.96.1; declared MSRV: 1.96. License: Apache-2.0.
A single owner handles commands, snapshots, pairing, transport and transfers. Frontends present that state; they do not each invent a separate transfer policy.
flowchart TB
Desktop[Desktop UI] -->|commands| Owner[Application owner]
Android[Android UI] -->|commands| Owner
CLI[CLI] -->|commands| Owner
Owner -. snapshots .-> Desktop
Owner -. snapshots .-> Android
Owner -. snapshots .-> CLI
Owner --> Trust[Pairing and permission policy]
Owner --> Transport[Connection and transfer coordinator]
Owner --> Extensions[Extension manager and hosts]
Transport --> Direct[Direct connection first]
Transport --> Fallback[Enabled relay fallbacks in configured order]
Extensions --> Grants[Manifest capabilities and explicit grants]
style Owner fill:#203b31,stroke:#ef8069,color:#f3eee2
style Direct fill:#203b31,stroke:#6bab8e,color:#f3eee2
style Grants fill:#203b31,stroke:#6bab8e,color:#f3eee2
Direct-first is not a claim of zero relay contact: signalling can use a relay before the transfer path is established. Configured fallbacks and their enabled state remain under your control.
Architecture guide · Application and API contracts
An extension declares what it offers and what it needs. The host assigns its identity and enforces grants. The interface renders those contracts instead of recognising a plugin by its display name.
flowchart LR
Package[Extension package] --> Manifest[Manifest and declared capabilities]
Manifest --> Review[Review identity and permissions]
Review --> Host[Platform extension host]
Host --> Services[Versioned services and actions]
Host --> Controls[Configuration and device controls]
style Review fill:#203b31,stroke:#ef8069,color:#f3eee2
style Host fill:#203b31,stroke:#6bab8e,color:#f3eee2
Installed and available catalog entries share one list. Store membership stays visible across installation and removal, while installed-plugin configuration and actions remain directly accessible. Manual installation remains an explicit trust decision, not an assertion of official approval.
The application carries no extension. Extensions are submitted to the extension branch, reviewed there, and installed by the person from the store or by hand. The table below is generated from the manifests of extensions that are members of this workspace, and is empty when there are none; declared platforms are not proof of end-to-end validation.
Warning
Cloud upload has not passed a live end-to-end upload test. Android supports isolated WASM extensions, and the upload extension is built as one. The application itself carries no extension: nothing is built into the APK or installed at first start, and the person installs upload from the store or by hand through the ordinary package manager, which shows what it asks for and grants no file or HTTPS permission automatically. Native desktop and Android WASM builds share one upload identity and one catalog entry, with platform-specific artifacts selected inside that entry. Device picker/consent checks and live-upload acceptance remain separate from automated tests with synthetic host responses.
| Extension in this workspace | Declared platforms | Exported services |
|---|
Extension-store contract · Security boundaries
Use the toolchain in rust-toolchain.toml and the platform prerequisites in the development guide. Cold builds compile Skia from source and need its compiler dependencies and network access.
./dev.sh desktopRoot helpers separate development builds, release-artifact preparation, checks, local store fixtures and website previews. They do not implicitly install applications or publish content.
Development setup and helper reference
Release-profile desktop build and Linux staging
FORCE_SKIA_BUILD=1 cargo xtask build
./target/release/peersus-uiThis builds the owner, UI, extension hosts and store fetcher. No extension is built: extensions are installed from the store or by hand. Keep the helpers beside the owner. A custom CARGO_TARGET_DIR changes the output directory; building only the UI is not a complete distribution.
python3 scripts/stage-linux.pyStaging writes <target-directory>/distribution/linux/ and refuses to overwrite an existing distribution. It does not install, sign or publish it.
./dev.sh androidAndroid needs SDK 36, the compatible NDK, Java 17, cargo-ndk and the packaged Rust target ABIs. Minimum platform: API 31. Building and installing are separate operations; explicit device deployment verifies signing compatibility and preserves application data.
The community flavor enables native extensions. Do not assume the Play flavor has the same executable-extension policy. cargo xtask android prepares unsigned release artifacts; it does not sign, publish or install them.
Android build and validation boundaries
Run peersus to open the desktop window, or peersus owner to start headless. Other subcommands control the running owner.
./target/release/peersus --help
./target/release/peersus peers
./target/release/peersus pluginsPairing, transfers, settings and plugin commands use the same application contracts. Consult each subcommand's --help for current syntax. Enter relay credentials through Settings, never through command arguments.
Everything the window can do is reachable without a dedicated subcommand: peersus commands lists every command the application accepts from outside, peersus call '{"command":"test-link","peer":"…"}' sends one exactly as the window does, peersus state prints the state the window draws from (--watch prints one line per change), and peersus page <plugin> <page> / peersus page-event <plugin> <page> '<event>' drive an extension's own page. peersus status gathers what a script waits on; peersus answer <id> --accept --secret-stdin answers an extension's question with a secret read from standard input, never from arguments. Internal commands that carry handles or platform facts are not accepted.
The application owner and UI share first-party tracing configuration. Desktop output
uses a bounded, off-thread stderr writer; keep the initialization guard alive until
shutdown. Queue overflow can drop records and is exposed by the guard's counter.
Android uses the native Logcat backend, not an assumed stderr redirect. Neither
backend opens a listener or sends telemetry. Isolated helpers retain their fixed,
payload-free stderr failure contracts.
Normal output is warn/error. On desktop, PEERSUS_LOG=peersus_app::runtime=debug
enables owner context; PEERSUS_LOG=peersus_ui::gesture=trace enables local gesture
coordinates and decisions. Third-party targets remain excluded even with trace.
An invalid filter falls back to safe defaults without echoing its value. Android
development builds also enable owner/platform debug context and gesture traces.
android-dev-native explicitly enables development-diagnostics, including for
optimized Rust libraries; release packaging does not enable this feature and
remains warn/error. The APK's debuggable flag alone does not configure Rust logging.
Android can additionally suppress debug/verbose records before Logcat receives them.
For an explicitly selected development device, record the current value of
log.tag.peersus.android, temporarily set that tag to VERBOSE, and inspect
logcat -s peersus.android:V. Restore the original property afterward (including
an originally empty value); do not change the global log level or clear shared logs.
Fields are reviewed at emission sites: fixed reason/operation codes, counts and local UI state, never credentials, arbitrary plugin error text or file contents. Opt-in action context includes manifest identities; review local logs before sharing. Gesture tracing does not create or synchronously append a diagnostic file.
cargo xtask gateFormatting, metadata and Python tooling, desktop-target compilation, Clippy, tests, the advisory audit and the Android upload WASM package gate run together. The upload gate also exercises the real isolated worker with synthetic host responses. Install the declared validators and cargo-audit first; the toolchain declaration includes the WASM target. The gate does not replace real desktop rendering, Android execution or an actual transfer, and failures must not be hidden by suppressing checks.
CodeQL source findings and dependency advisories are separate signals. A source finding is triaged against the scanned revision and the shipping build: fixtures and vendored examples are not automatically runtime vulnerabilities, but shipped vendored code must be reviewed too. A local fix does not clear a hosted finding; verify it against a fresh analysis of the published revision. See Security for private reporting.
Dependency maintenance is an active release gate, not a hosted-CI status claim. Local compatibility patches retain upstream licenses and record their source revisions: network monitoring and Wayland title rendering. Winit 0.31 uses the published font renderer; the local manifest selects skrifa instead of the unmaintained ttf-parser chain without removing window decorations. Application About and the prototype's security notes disclose local patches.
The remaining token-pasting consumers use the maintained pastey macro through manifest-only compatibility patches: Freya core, Freya components and rav1e. Their original source and licenses are retained. Local workspace checks, Clippy, tests and the strict advisory audit pass; complete platform-runtime verification and hosted CI success are not claimed.
The direct Linux sleep and desktop-theme watchers use zbus 6 (MIT), including its maintained wire-format implementation. Isolated private-bus sleep and initial/live theme tests pass. The credential-related legacy dependency blocker was removed by the compatibility patch described below; these results do not establish full platform behavior or a passing hosted CI run.
The local mundy compatibility patch preserves desktop appearance and accessibility preferences while migrating the Linux portal consumer to zbus 6. Its Apache-2.0 license and upstream revision are retained. Nested-variant wire decoding tests pass; actual desktop portal preference behavior remains unverified. No accessibility feature is disabled to bypass the audit.
The accessibility migration retains the AT-SPI common/protocol validation, Unix AccessKit integration and XML signature validator. The desktop UI compiles, retained protocol/signature regressions pass, and an isolated private-bus test verifies registry embedding, duplicate registration, cache installation and a cross-connection method call. Full screen-reader/platform behavior remains unverified.
The keyring compatibility patch omits an unused asynchronous backend and its legacy serialization dependencies. Existing Apple/Windows native backends, synchronous encrypted Secret Service access, credential lookup precedence and legacy fallback remain in place. This internal copy deliberately does not offer upstream async backend features; the application's configured features are preserved. The regenerated root lockfile passes the strict local cargo xtask audit gate with no vulnerabilities or warnings; 37 targeted identity, relay-token, upload, About/license and locale tests pass. Actual OS credential access, complete platform-runtime verification and hosted CI success are not claimed.
Workflow definitions — not a live claim that CI is passing
These are workflow definitions, not live passing-status claims.
- Architecture map data
- Local release preparation
- Quality gates
- CodeFlow card
- Dependency news
- Dependency roll into dev
- Generated documentation
- Admit reviewed extension
- Extension source submission
- Check language files
- Website preview artifact
- Development release
- Security audit
- Pull request metadata triage
| You want to… | Start here |
|---|---|
| Understand ownership and data flow | Architecture |
| Integrate against application contracts | API reference |
| Build, run or inspect validation limits | Development guide |
| Understand catalog signatures and installation | Extension store |
| Prepare the static website | Website guide |
| Check what has and has not been demonstrated | Release readiness |
| Contribute or report a security issue | Contributing · Security |
The website is dependency-free. Its build validates local resources and stages a fresh output directory; the application, not the website, verifies catalog signatures. Local tooling does not implicitly deploy the website or populate production trust.
Latest development changes
- Capture crashes on Linux, off by default (Settings → Diagnostics,
--crash-capture): a separatepeersus-diagprogram watches the owner and each window from outside and writes a minidump to the local diagnostics folder when one crashes; nothing is sent, and the page lists, opens and deletes the reports. - Let an extension, with the person's permission, read the date and time on the device to the minute (
peersus.clockwall,clock.wall) and record from the microphone into its own storage as a WAV (peersus.audiorecord/finish/cancel,audio.record; on Android the system's microphone question is asked from the open window). - Publish signed development releases from CI on request (
.github/workflows/release.yml): desktop programs, the Android package signed with the fixed development key, and the signed list of files. - Let extension pages nest four levels deeper (
MAX_DEPTH16) and send only the style properties that differ from the default, so a conversation with threads and voice messages fits on a desktop page. - Show Restore on the window's enlarge button while it is maximised, with marks drawn like Heresia's and names for screen readers.
- Route Back by scope: what the application opened closes first, then an extension page that takes Back (
backpage feature,Event::Back), then the first screen; on Android leaving takes a second Back with a short notice (Settings → Device, on by default). Escape is Back on a desktop. - Fold each extension on the Permissions tab to its name and how many of its permissions are allowed; a press opens its switches.
- Let an extension page show this device's own picture (
Node::Avatarwiththis-device). - Add a searchable Architecture page to the site with five views and guided flows. CI refreshes the public data independently of site deployments; the page keeps a fallback snapshot.
- Move the desktop window bar between the top and bottom in Settings → Appearance. The choice is saved and menus open toward the page.
- Choose the renderer in Settings → Appearance and see which backend the window actually uses. Vulkan is tried first where supported, including on Android. On desktop, compare local frame times, main-thread CPU and resident memory against the current renderer using the same short synthetic scene.
- Download the person's language for this release from the repository's languages branch (the device's language by default), keep it cached, show English for whatever it does not translate, and add a Languages page to Settings that shows how far each language is translated, imports a language file, saves the template and opens the page to share a translation; extensions can ask for the person's language (
peersus.language). - Keep an extension's unchanged permissions across a Store update when its sound predecessor also came from the Store; a manual replacement starts with nothing allowed.
- Let an extension page follow a two-finger twist (
rotatepage feature,Event::Rotate), so a map can turn on a phone. - Allow extensions to render accessible canvases in their own process: WASM uses Skia CPU in its helper, while native libraries and standalone executables supply their own finished frames. The owner relays only bounded rasters and the window composites them.
- Attach a paired desktop proportionally to a local edge while keeping its real display sizes. The pointer enters and returns at the corresponding fraction of the edge; free placements still use their original coordinates.
- Let desktop pages paint and receive pointer input in the gaps of the window bar, without taking away the window controls or resize grips.
- Keep Android Vulkan rendering at the current window size after rotation or resize instead of stretching pixels from a buffer with the previous dimensions.
- Release held input when either device withdraws access or the paired visit disconnects, even between data streams. A remote refusal reveals no reason and is not reported as a transfer error.
- Keep only current grants whose declaration is unchanged in a Store update or reviewed development replacement. An untrusted predecessor or forgotten pairing carries no grants forward.
- Open the desktop window from bare peersus and use peersus owner for headless or login-service starts.
- Keep catalog extensions in one stable list across installation and removal, with a green Store badge, inline enable/disable and update actions, always-visible installed-plugin configuration and actions, expandable package details and installation from file beside shared search.
- Keep direct connections first with independently enabled, reorderable relay fallbacks, retained addresses, advanced timing and credential controls, and a compatible migration to the new project relay default.
- Native helper compilation and Linux staging honor CARGO_TARGET_DIR so desktop programs and their helpers use the same build output.
- Keep one bounded previous generation of the desktop owner log without breaking inherited log handles or the window's startup error reader.
- Install Linux user executables together under lib/peersus behind one bin/peersus symlink, preserving it during in-app updates and reporting legacy files without removing them.
- Linux staging refuses to overwrite an existing distribution; regression scenarios cover default, relative and absolute target paths.
- Use the shared atomic writer for the catalog rollback floor instead of a predictable temporary file.
- Allow full-width extension action labels to wrap rather than forcing them onto one line.
- Keep all desktop header controls visible in narrow windows with flexible navigation and reduced decorative spacing.
- Let the desktop device-name field shrink so its Save button stays readable in narrow windows.
- Keep the language list inside safe window bounds, flip it above the selector when needed, and contain wheel and touch scrolling within the list.
- Include generated AppImage files, checksums and runtime notes in the release-preparation artifact.
- Draw a translucent shape of an extension's drawing in a layer the size of that shape instead of the whole drawing, cutting the window's CPU per map zoom step by about 35-40%.
- Require every extension manifest to name its execution kind. Discovery, installation and store checks refuse an omitted declaration instead of treating it as a standalone executable.
- Keep pan and zoom previews on finished canvas bitmaps only. Remove declarative subtree following and the unused scale and overscan options; keep small drawings and bounded retained strokes.
- Keep reviewed trace events in optimized desktop deploy builds and add bounded, private development-only panic and hang reports. Desktop release preparation rejects development diagnostics at compile time.
- Backport maintained netlink and title-font dependencies without disabling network monitoring or native window decorations; retain upstream licenses and patch provenance.
- Replace unmaintained token-pasting dependencies through minimal Freya and rav1e compatibility manifests while retaining image-format support.
- Migrate Linux sleep, theme, portal preferences and accessibility wire consumers to zbus 6 while retaining protocol/signature checks and original licenses; full platform runtime verification remains pending.
- Remove the unused asynchronous keyring backend's legacy wire dependencies without replacing the application's native credential stores or lookup behavior; the regenerated root lockfile passes the strict local audit without suppressions, while hosted CI and platform runtime verification remain pending.
- Keep application About, prototype security notes and dependency documentation synchronized with local security patches and their actual verification limits.
- Implement the Android upload WASM guest and explicit caller-scoped file, consent and HTTPS host services, with opaque credentials, cancellation and a manual development package; device and live-upload acceptance remain pending.
- Gate the upload guest's formatting, strict lint, protocol tests, WASM compilation and real isolated-worker exchange with synthetic host replies; retain platform-verifier licenses and pinned Android artifact provenance.
- Include the licensed upload WASM package in Android builds and initialize it through the normal removable-package installer, preserving existing packages, disabled state and later removal without automatically granting file or network access.
- Add explicit development desktop and Android builds plus signature-checked, data-preserving deployment to selected devices without implicit installation or uninstall.
- Add root build, strict-check, isolated store-demo and loopback-only website-preview shell helpers using the existing build tasks.
- Stage clearly labelled public store fixtures under store-test/ without populating or changing production trust.
- Provide a disposable desktop store owner backed by the real verifier, installer and module hosts.
- Consolidate build caches under target/ and place Android native staging, Gradle intermediates and packages there instead of source directories.
- Pin the Rust build and formatting toolchain and use its declaration in CI and release-artifact workflows.
- Include the toolchain declaration in local Flatpak source snapshots and add staging regression checks to the metadata gate.
- Generate marked README and changelog sections from workspace metadata, plugin manifests, workflow definitions and curated change entries; check reproducibility in CI.
- Wait for sender-side profile exchange completion before checking picture-transfer counters in integration tests.
- Keep translation catalog coverage across multiline Rust calls and include the remaining settings controls in that check.
- Update the withdrawn async-executor 1.14.0 dependency to patch release 1.14.1.
- Describe each application release only by its signed SHA256SUMS: the tag v<version>-<channel>.<build> locates it, the artifact names carry the version, channel and build, and archives list each program's digest. Development builds follow the dev channel; the first installation script and the download page read the same signed list. An installation from a release keeps that list beside its programs; the owner checks them once per start and puts a missing or damaged program back from the running build's release.
- Add architecture, API, development, website, contribution and security documentation.
- Add issue, pull-request and discussion templates with guidance for non-sensitive diagnostics.
- Align website build instructions with the desktop helper and Android distribution-flavor build tasks.
Licensed under Apache-2.0. See NOTICE for third-party attribution and the changelog for the complete development history.