A permissionless Flatpak store. Flathub's UX and artifact format, a Nostr-based trust model in place of a review gate: publishers ship directly, clients verify signatures and digests, and the store is a client, not a gatekeeper.
- Publishers push their app as an OCI image to any registry they
control and sign small Nostr events (listing, release, asset, profile)
that describe it.
--provealso drops a proof file into the linked source repository, so the repo link is a claim clients can check.PUBLISHING.mdis the guide, including the reusable publish workflow Orchard itself runs (oneuses:job in your repo). - The client merges those events into a catalog beside Flathub's (read from your local AppStream), shows the sandbox permissions the artifact really carries, pins the release to its manifest digest, and installs through flatpak. Installs are refused when bytes do not match the pin. Proven repositories wear a check; the chosen category chip wears its count, and the footer carries the store's total.
- Reviews are Nostr events too, signed through your own signer over NIP-46 Nostr Connect: the client never holds your identity key. One review per identity per app (replaceable: editing is republishing, and the composer pre-fills yours), publishers cannot review themselves into a rating, and a publisher key change is disclosed, with a signed handover shown as an authorized migration. Signed in, the review list opens on your circle: the people you follow first, everyone one click away.
- Nothing happens without a yes. Install, update, and remove confirm through a modal that repeats the release version, the publisher's standing, and the permissions that matter; the job then reports progress in the footer, and cancel interrupts flatpak cleanly.
- No central server. Discovery is a rendezvous set of public relays; binaries live on publisher registries; the client embeds a local index shim so every Orchard app is a normal Flatpak-remote app, visible to GNOME Software and Discover.
- Settings apply live. Channel visibility, relay sets, update
cadence, and privacy toggles live on a settings page (the account
menu; a gear on the toolbar when signed out); edits persist to
~/.config/orchard/settings.jsonand take effect immediately, no restart.
Early but released. Orchard publishes itself, and every release ships
through this repo's own workflow: tags land on the releases page as
signed OCI artifacts and native packages (deb, rpm, apk, Arch pkg),
and the installed client updates through Orchard's own catalog. The
full loop works end to end on real infrastructure:
publish, discover, verify, install, update, review. Multi-arch (x86_64
and aarch64) builds in CI. Not built yet: signed-lineage folding for
multi-publisher listings.
DESIGN.md is the architecture record; PUBLISHING.md is the publisher
guide.
Any Linux desktop with flatpak; the client itself is a native flatpak app (x86_64, aarch64), installed per-user. The release is two commands away, pinned to the exact bytes it signed:
curl -LO https://github.com/Letdown2491/orchard/releases/latest/download/orchard-linux-x86_64.oci.tgz
flatpak install --user -y oci-archive:orchard-linux-x86_64.oci.tgz
(On an aarch64 machine, use orchard-linux-aarch64.oci.tgz; the two
arches are separate artifacts.) The archive is the same artifact the
release signed, so the bytes are the pin. Not a docker://ghcr.io
one-liner because that cannot work: flatpak's image fetch never
authenticates, and ghcr always challenges (see DESIGN.md); the Orchard
client sidesteps this by downloading the verified artifact itself and
installing from the local layout. The install is per-user (flatpak's
system-scope image install is broken; see DESIGN.md), so no polkit
password appears. Native packages (deb, rpm, Alpine apk, Arch pkg, for
both arches) are on the releases page too, each wearing the same
minisign signature. Updates after that first install run through the
client's own registered remote (below): flatpak update sees Orchard's
releases the way it sees any remote's, and the GUI offers them the
ordinary way.
Verify the first copy before installing it: every release artifact
wears a minisign signature whose public half is committed in this repo
(packaging/minisign.pub), so the signature (the release) and the key
(the repo, or a distro package) travel different channels:
curl -LO https://github.com/Letdown2491/orchard/releases/latest/download/orchard-linux-x86_64.oci.tgz.minisig
minisign -Vm orchard-linux-x86_64.oci.tgz -p packaging/minisign.pub
minisign is in every distro's repos (dnf install minisign,
apt install minisign, apk add minisign, pacman -S minisign). The
catalog events pin the same digests from the publisher identity, so
either channel alone catches a tampered archive; together they do not
share a failure mode.
The host has no toolchain; everything builds in a container via
scripts/build.sh.
./scripts/build.sh check
./scripts/build.sh build --release
./scripts/run.sh
(Run through run.sh, not the binary directly: it sets the library
path the GPUI shell needs and warns at launch when a configured relay
is unreachable.)
Out of the box the client browses and installs the real Flathub catalog.
The Orchard channel lists the real releases from the rendezvous relays,
Orchard itself among them; see PUBLISHING.md to become a publisher.
(run.sh inherits the client's default, the public rendezvous set; run
it as ORCHARD_RELAYS=ws://127.0.0.1:8008 ./scripts/run.sh to point
the dev loop at the local demo relay instead.)
Orchard publishes itself. self/orchard.publish.toml is the manifest,
self/tree/ is the app tree (its assemble.sh drops the built binary
into files/bin; the metadata, desktop file, and launcher icon are
committed beside it), and self-publish.yml is the workflow that ties
it together. Architecture jobs push to GHCR and export asset metadata; one job
publishes a combined release. The version tag triggers it.
Preparation needs no key or network:
./target/release/orchard-publish self/orchard.publish.toml --prepare --out dist
Never run orchard-publish on self/orchard.publish.toml bare: the
manifest's relay list is the public rendezvous set, so a bare run is a
real publish. The local dry run must override both:
ORCHARD_NSEC=<key> ./target/release/orchard-publish self/orchard.publish.toml \
--registry https://localhost:5000/orchard --relays ws://127.0.0.1:8008
Orchard's catalog is a real flatpak remote, with or without the GUI. The
client registers it itself: while an Orchard session runs, the in-process
indexd serves the catalog at oci+http://127.0.0.1:7780 and the remote
orchard appears in flatpak remotes, so flatpak search, flatpak install orchard/<app-id>, flatpak update, GNOME Software, and Discover
all see Orchard apps (user installation; GNOME Software may show apps as
available until it queries user installs).
Hosted (no GUI): run orchard-indexd anywhere and point flatpak at it.
orchard-indexd --listen 127.0.0.1:7780 --relays wss://relay.orchard.rocks
# hosted: --public-url https://index.example.com, TLS at your reverse proxy
flatpak remote-add --if-not-exists --user orchard \
--title=Orchard --homepage=https://orchard.rocks \
oci+https://index.example.com
Rules the docs keep honest: orchard serves apps, Flathub serves runtimes
(a consumer needs Flathub enabled); the summary covers OCI images, so
Zapstore-shaped .flatpak bundles stay a client-only channel; and
uninstalling Orchard leaves the orchard remote behind (flatpak has no
post-uninstall hook). Remove it with flatpak remote-delete orchard; a
dead loopback remote fails fast rather than hanging. Hosted deployments
use the systemd unit in packaging/systemd/orchard-indexd.service.
crates/orchard-core: domain model, AppStream parser, OCI verifier, permissions translator.crates/orchard-flatpak: the single seam to the flatpak CLI.crates/orchard-indexd: the local catalog service (embedded in the client), relay sessions, event cache, and the flatpak OCI remote surface (/index/staticand the digest-pinned/v2proxy).crates/orchard-nostr: event model, builders, and the verified feed.crates/orchard: the GPUI client.crates/orchard-publish: the publisher CLI (PUBLISHING.md).demo/: a demo app tree and manifest for the local fixture.self/: Orchard publishing itself (manifest, app tree, assemble script), and its CI workflow.relay/: the operator kit for running a kind-restricted Orchard relay (config verified against nostr-rs-relay 0.10.0, verification probe, deployment notes).docs/: screenshots.assets/: the Orchard icon (listing and launcher rasters).
PUBLISHING.md: the publisher guide. The manifest, the CLI, multi-arch, the CI workflow, and key rotation.DESIGN.md: the architecture record. Locked decisions, the Nostr event draft, milestones.AGENTS.md: container build rules and the sharp edges of building on an atomic host.
MIT, see LICENSE.
The Hello multi-architecture smoke Actions workflow runs on pull requests
and can be dispatched manually. Native x86_64 and aarch64 jobs prepare Hello
without network access, then exercise --upload-only against disposable local
registries. A single job re-hosts both layouts, publishes one combined release
with --asset and --legacy-oci to a local relay, and reads the signed events
back. Native install jobs re-host the exact same bytes, verify and download the
component graph through Orchard's core, then install and launch Hello.
Layouts and signed events cross job boundaries as artifacts; loopback services are recreated on each runner. The workflow uses a public fixture key and no repository secrets, production relay, GHCR package, release tag or proof update. It tests CLI installation on both architectures, not graphical UI interaction.

