feat(app): add the Nostro app, a window for phones and desktops

Linux phones have no banking apps, and a command line is no answer on a
phone. The app does everything the nostro command does and, like it, only
talks to nostrod: it holds no key and no token.

- Nostro.Ui, a toolkit whose screens are functions that fill a frame, ported
  from imsd-messages ca5cd72d; Nostro.App, the app's state, forms and screens;
  Nostro.Ui.Shell, which puts them on a Wayland window with Crafter.Graphics;
  nostro-app; and Nostro.DebugCommands for the --debug-api build.
- Client: every method also in an asynchronous form for an sd-event loop,
  with DaemonMissing and OutcomeUnknown.
- nostrod's Flatpak is net.catcrafts.Nostrod now and the app takes
  net.catcrafts.Nostro; install.sh moves the state. The app's Flatpak, both
  Flatpaks cross-built for aarch64, and the licence texts they carry.
- nostro-fake-system, a made-up bus and bank with a real nostrod on them, to
  look at the app against. The README's screenshots are taken on it.
- The nostro command: an API key's environment is the key's own to say, so
  --sandbox is for bunq-oauth alone, and a virtual card is listed as VIRTUAL.

The published contract changes in three places, before any release (design
rule 10):
- Transactions' query takes `stored`: answered from what nostrod has stored,
  without asking the bank. The app searches with it; before, every search was
  a call to bunq.
- AddBunq's `environment` no longer chooses over what the key says of itself:
  a key of the other environment is refused.
- SetCardStatus refuses to freeze or unfreeze a virtual card. bunq reports one
  as DEACTIVATED however well it pays, and leaves it as it is when asked,
  without an error.

The app is GPL-3.0-only, the library stays LGPL-3.0-only, and no code moved
from one to the other (design rule 13). Transaction's schema is unchanged.

Verified: the 17 tests pass with every line, function and region of what they
link run, and the five lint runs are clean. Every screen was looked at on the
made-up system, at a phone's and a desktop's sizes in the light and the dark
look, on Plasma under Wayland. What is said of bunq's cards comes from its
sandbox, with throwaway users, and from one real virtual card. Known to have
been used against production: connecting, and reading accounts, payments and
cards. Not known to have been tried: a payment from the app against bunq,
OAuth against bunq, and anything on a phone.

Building the app takes --graphics=, a Crafter.Graphics checkout on its branch
claude/nostro-app, until that branch is merged and pinned here.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Jorijn van der Graaf 2026-11-19 12:27:14 +01:00
commit 5b4037955b
106 changed files with 17804 additions and 289 deletions

View file

@ -0,0 +1,139 @@
#!/bin/sh
# SPDX-License-Identifier: LGPL-3.0-only
# SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
# build-aarch64.sh: Nostro's two Flatpaks for aarch64, a phone's architecture, into an OSTree repository: the app
# (net.catcrafts.Nostro) and the service with the nostro command (net.catcrafts.Nostrod). crafter-build cross-compiles
# the executables against the sysroot of make-aarch64-sysroot.sh (run that first), and flatpak's build commands
# assemble them on org.freedesktop.Platform 26.08, with the libc++ they were linked against in /app/lib.
#
# packaging/flatpak/build-aarch64.sh <repo> [branch] # branch: stable by default
#
# The repository is created when it does not exist. On the phone, as root, with the repository copied over:
# packaging/system/install.sh --repo <repo> --app. The cache and $CRAFTER_REF are make-aarch64-sysroot.sh's.
# $NOSTRO_GRAPHICS names a Crafter.Graphics checkout's project.cpp for the app, for as long as project.cpp asks for one
# (--graphics=). Needs flatpak, flock, readelf and appstreamcli.
set -eu
REPO=${1:?usage: build-aarch64.sh <repo> [branch]}
BRANCH=${2:-stable}
APP_ID=net.catcrafts.Nostro
SERVICE_ID=net.catcrafts.Nostrod
ARCH=aarch64
TRIPLE=aarch64-unknown-linux-gnu
MULTIARCH=aarch64-linux-gnu
RUNTIME_VERSION=26.08
CRAFTER_REF=${CRAFTER_REF:-net.catcrafts.CrafterBuild//stable}
CACHE=${NOSTRO_FLATPAK_CACHE:-${XDG_CACHE_HOME:-$HOME/.cache}/nostro-flatpak}
INSTALLATION="$CACHE/installation"
SYSROOT="$CACHE/sysroot-$ARCH"
LIBCXX="$CACHE/libcxx-$ARCH"
SRC=$(CDPATH= cd -- "$(dirname "$0")/../.." && pwd)
# flatpak commands that need the aarch64 Sdk and Platform see their installation; crafter-build runs from wherever it
# is installed.
withsdk() { FLATPAK_USER_DIR="$INSTALLATION" "$@"; }
command -v readelf >/dev/null 2>&1 || { echo "readelf (binutils) is needed: the NEEDED checks below run on it" >&2; exit 1; }
# One build at a time on this cache: the build directories are removed and made again by every run.
mkdir -p "$CACHE"
exec 9>"$CACHE/lock"; flock 9
[ -f "$SYSROOT/.made-from" ] || { echo "no sysroot at $SYSROOT: run packaging/flatpak/make-aarch64-sysroot.sh first" >&2; exit 1; } # under the lock: a sysroot being made is not missing
# Generic armv8-a: a Flatpak is for any aarch64 machine, not one SoC. An output directory's name ends in a hash of the
# configuration, and an older variant left in bin/ would be a second match below: this run's are the only ones.
rm -rf "$SRC/bin/"*"-$TRIPLE-armv8-a-generic-"*
crafter() { (cd "$SRC" && flatpak run "$CRAFTER_REF" --march=armv8-a --mtune=generic --banks=bunq "$@" -- --target="$TRIPLE" --sysroot="$SYSROOT"); }
# The one executable of that name this run built. The library and the command are both called nostro, so a directory
# is told by what it holds.
built() {
name=$1
set -- "$SRC/bin/$name-$TRIPLE-armv8-a-generic-"*/"$name"
[ $# = 1 ] && [ -x "$1" ] || { echo "expected one $name for $TRIPLE under $SRC/bin, found: $*" >&2; exit 1; }
echo "$1"
}
echo ">> the executables for $TRIPLE"
crafter
crafter --product=daemon
crafter --product=app ${NOSTRO_GRAPHICS:+"--graphics=$NOSTRO_GRAPHICS"}
cli=$(built nostro)
daemon=$(built nostrod)
app=$(built nostro-app)
platform=$(withsdk flatpak --user info --show-location --arch="$ARCH" "org.freedesktop.Platform//$RUNTIME_VERSION")/files
# Every library an executable and the libraries it carries need is in the Platform or in /app/lib, or the first start
# would fail on the phone. And one unwinder: LLVM's libunwind, which the carried libc++abi uses, never the Platform's
# libunwind 8 beside it.
checked() {
files=$1
shift
missing=0
for elf in "$@" "$files/lib/"lib*.so.1; do
for lib in $(readelf -d "$elf" | sed -n 's/.*(NEEDED).*\[\(.*\)\]/\1/p'); do
if [ ! -e "$platform/lib/$MULTIARCH/$lib" ] && [ ! -e "$platform/lib/$lib" ] && [ ! -e "$files/lib/$lib" ]; then
echo "$(basename "$elf") needs $lib, which neither the Platform nor /app/lib has" >&2
missing=1
fi
done
if readelf -d "$elf" | grep -q 'NEEDED.*\[libunwind\.so\.8\]'; then
echo "$(basename "$elf") links libunwind 8, not LLVM's libunwind" >&2
missing=1
fi
done
[ "$missing" = 0 ] || exit 1
}
# What both carry: the C++ runtime they were linked against, and the licences of what is in them, which
# packaging/licenses/NOTICE names.
carried() {
files=$1
id=$2
mkdir -p "$files/lib"
cp -a "$LIBCXX/usr/lib/"libc++.so.1* "$LIBCXX/usr/lib/"libc++abi.so.1* "$LIBCXX/usr/lib/"libunwind.so.1* "$files/lib/"
install -Dm644 "$SRC/packaging/flatpak/$id.metainfo.xml" "$files/share/metainfo/$id.metainfo.xml"
install -Dm644 -t "$files/share/licenses/$id" "$SRC/LICENSE" "$SRC/LICENSE.GPL" "$SRC/packaging/licenses/NOTICE" \
"$SRC/packaging/licenses/nlohmann-json-MIT.txt" "$SRC/packaging/licenses/LLVM-LICENSE.TXT"
}
# The AppStream catalogue entry software centres list an app by, with PNG icons: appstreamcli's default, JPEG XL, is
# not read by older clients.
catalogued() {
appstreamcli compose --prefix=/ --origin="$2" --image-format=png \
--result-root="$1" --data-dir="$1/share/app-info/xmls" --icons-dir="$1/share/app-info/icons/flatpak" "$1"
}
mkdir -p "$(dirname "$REPO")"
echo ">> $SERVICE_ID from $cli and $daemon"
build="$CACHE/build-service-$ARCH"
rm -rf "$build"
withsdk flatpak build-init --arch="$ARCH" "$build" "$SERVICE_ID" org.freedesktop.Sdk org.freedesktop.Platform "$RUNTIME_VERSION"
files="$build/files"
install -Dm755 "$cli" "$files/bin/nostro"
install -Dm755 "$daemon" "$files/bin/nostrod"
carried "$files" "$SERVICE_ID"
checked "$files" "$files/bin/nostro" "$files/bin/nostrod"
catalogued "$files" "$SERVICE_ID"
# nostrod talks to the bank, and to the bus, logind and polkit on the system bus; the command talks to nostrod there.
# As packaging/flatpak/net.catcrafts.Nostrod.yaml has it for x86_64.
withsdk flatpak build-finish "$build" --command=nostro --share=network --socket=system-bus
withsdk flatpak build-export --arch="$ARCH" "$REPO" "$build" "$BRANCH"
echo ">> $APP_ID from $app"
build="$CACHE/build-app-$ARCH"
rm -rf "$build"
withsdk flatpak build-init --arch="$ARCH" "$build" "$APP_ID" org.freedesktop.Sdk org.freedesktop.Platform "$RUNTIME_VERSION"
files="$build/files"
# The app finds its fonts and the window library's shaders beside itself.
mkdir -p "$files/bin"
cp -a "$(dirname "$app")/." "$files/bin/"
carried "$files" "$APP_ID"
install -Dm644 "$SRC/packaging/flatpak/$APP_ID.desktop" "$files/share/applications/$APP_ID.desktop"
install -Dm644 "$SRC/packaging/flatpak/$APP_ID.svg" "$files/share/icons/hicolor/scalable/apps/$APP_ID.svg"
install -Dm644 -t "$files/share/licenses/$APP_ID" "$SRC/assets/OFL.txt" "$SRC/packaging/licenses/stb-LICENSE.txt" \
"$SRC/packaging/licenses/wayland-protocols-NOTICE.txt" "$SRC/packaging/licenses/Vulkan-Utility-Libraries-Apache-2.0.txt" \
"$SRC/packaging/licenses/libevdev-COPYING.txt"
checked "$files" "$files/bin/nostro-app"
catalogued "$files" "$APP_ID"
# The compositor, the graphics device, and nostrod on the system bus; the desktop's portals need no permission. As
# project.cpp has it for the x86_64 Flatpak crafter-build makes.
withsdk flatpak build-finish "$build" --command=nostro-app --socket=wayland --device=dri --system-talk-name=net.catcrafts.Nostro1
withsdk flatpak build-export --arch="$ARCH" "$REPO" "$build" "$BRANCH"
echo ">> done: app/$SERVICE_ID/$ARCH/$BRANCH and app/$APP_ID/$ARCH/$BRANCH in $REPO"

View file

@ -0,0 +1,138 @@
#!/bin/sh
# SPDX-License-Identifier: LGPL-3.0-only
# SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
# make-aarch64-sysroot.sh: what Nostro's aarch64 executables are cross-compiled against, for a phone. crafter-build's
# own Flatpak, which the x86_64 Flatpaks are built with, exists for x86_64 alone, so an aarch64 build is a cross build
# from it against this sysroot: the Freedesktop Sdk for aarch64 (glibc, OpenSSL, libsystemd, Wayland, xkbcommon, udev
# and the Vulkan loader, the libraries the Platform runtime has at run time) plus LLVM's libc++ of the release
# crafter-build itself carries, built for aarch64, which the runtime does not have.
#
# packaging/flatpak/make-aarch64-sysroot.sh
#
# Everything goes under $NOSTRO_FLATPAK_CACHE (default ${XDG_CACHE_HOME:-~/.cache}/nostro-flatpak), outside /tmp, which
# the crafter-build sandbox does not share:
# installation/ a flatpak installation of the aarch64 Sdk and Platform (build-aarch64.sh builds the apps on it)
# sysroot-aarch64/ the Sdk's files as usr/, with libc++ added
# libcxx-aarch64/ libc++, libc++abi and libunwind as installed, which the Flatpaks carry in /app/lib
# A sysroot made from the same Sdk commit, LLVM release and recipe is kept.
#
# Needs flatpak, flock, curl, tar, xz and sha256sum; crafter-build ($CRAFTER_REF, the Crafter.Build Flatpak) provides
# clang, cmake and ninja. Network: Flathub and the LLVM release on GitHub.
set -eu
ARCH=aarch64
TRIPLE=aarch64-unknown-linux-gnu
MULTIARCH=aarch64-linux-gnu
MARCH=armv8-a
RUNTIME_VERSION=26.08
# The LLVM release crafter-build itself carries, whose std module source it ships. The tarball and hash are the ones
# Crafter.Build's manifest builds that LLVM from.
LLVM_VERSION=23.1.2
LLVM_SHA256=c98bbef08a2b4c2613cd50e9aa9ae7b69b1fe6c16b2c40373bc0ab6116fdf78a
CRAFTER_REF=${CRAFTER_REF:-net.catcrafts.CrafterBuild//stable}
CACHE=${NOSTRO_FLATPAK_CACHE:-${XDG_CACHE_HOME:-$HOME/.cache}/nostro-flatpak}
INSTALLATION="$CACHE/installation"
SYSROOT="$CACHE/sysroot-$ARCH"
LIBCXX="$CACHE/libcxx-$ARCH"
# The Sdk and the Platform for aarch64 go into a flatpak installation of their own; crafter-build is run from wherever
# it is installed.
sdkpak() { FLATPAK_USER_DIR="$INSTALLATION" flatpak --user "$@"; }
# Flathub's CDN answers 502 now and then, and flatpak reports a summary it could not fetch as a runtime that does not
# exist.
retry() {
for attempt in 1 2 3 4 5; do
"$@" && return 0
echo "attempt $attempt of 5 failed: $*" >&2
[ "$attempt" = 5 ] || sleep 30
done
return 1
}
mkdir -p "$CACHE"
# One run at a time on this cache: the sysroot and the LLVM build are removed and made again by a run that finds them
# stale.
exec 9>"$CACHE/lock"; flock 9
echo ">> the $ARCH Sdk and Platform $RUNTIME_VERSION into $INSTALLATION"
retry sdkpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
retry sdkpak install -y --noninteractive --no-related --arch="$ARCH" flathub \
"org.freedesktop.Sdk//$RUNTIME_VERSION" "org.freedesktop.Platform//$RUNTIME_VERSION"
retry sdkpak update -y --noninteractive --no-related --arch="$ARCH"
sdk=$(sdkpak info --show-location --arch="$ARCH" "org.freedesktop.Sdk//$RUNTIME_VERSION")
sdk_commit=$(sdkpak info --show-commit --arch="$ARCH" "org.freedesktop.Sdk//$RUNTIME_VERSION")
# A sysroot is kept while the Sdk commit, the LLVM release and this recipe stay the same.
stamp="sdk $sdk_commit llvm $LLVM_VERSION recipe $(sha256sum "$0" | cut -c1-16)"
if [ -f "$SYSROOT/.made-from" ] && [ "$(cat "$SYSROOT/.made-from")" = "$stamp" ] && [ -f "$LIBCXX/usr/lib/libc++.so.1" ]; then
echo ">> $SYSROOT is current ($stamp)"
exit 0
fi
echo ">> $SYSROOT from the Sdk at $sdk_commit"
rm -rf "$SYSROOT" "$LIBCXX"
mkdir -p "$SYSROOT"
# A copy: libc++ is installed into it, and the installation's files are hard links into its object store.
cp -a --reflink=auto "$sdk/files" "$SYSROOT/usr"
# Linker scripts and the dynamic linker's path name /lib.
ln -s usr/lib "$SYSROOT/lib"
# libc++'s linker script adds -lunwind, which would find the Sdk's libunwind 8 (in the multiarch directory, searched
# first) beside the LLVM libunwind its libc++abi uses: without the Sdk's link name it finds LLVM's.
rm "$SYSROOT/usr/lib/$MULTIARCH/libunwind.so"
src="$CACHE/llvm-project-$LLVM_VERSION.src"
tarball="$CACHE/llvm-project-$LLVM_VERSION.src.tar.xz"
if [ ! -d "$src/runtimes" ] || [ ! -d "$src/libc/shared" ]; then
echo ">> LLVM $LLVM_VERSION's runtimes source"
retry curl -fsSL -o "$tarball" "https://github.com/llvm/llvm-project/releases/download/llvmorg-$LLVM_VERSION/llvm-project-$LLVM_VERSION.src.tar.xz"
got=$(sha256sum "$tarball" | cut -d' ' -f1)
[ "$got" = "$LLVM_SHA256" ] || { echo "llvm-project-$LLVM_VERSION.src.tar.xz: sha256 $got, expected $LLVM_SHA256" >&2; exit 1; }
rm -rf "$src" "$src.part"
mkdir -p "$src.part"
# Only part of the tree is unpacked; libc is among it because libc++'s from_chars parses floating point with LLVM
# libc's shared headers. It lands under $src only once complete: a tar cut short leaves nothing a later run would
# take for the source.
tar -xJf "$tarball" -C "$src.part" --strip-components=1 \
"llvm-project-$LLVM_VERSION.src/runtimes" "llvm-project-$LLVM_VERSION.src/libcxx" \
"llvm-project-$LLVM_VERSION.src/libcxxabi" "llvm-project-$LLVM_VERSION.src/libunwind" \
"llvm-project-$LLVM_VERSION.src/cmake" "llvm-project-$LLVM_VERSION.src/llvm/cmake" \
"llvm-project-$LLVM_VERSION.src/llvm/utils" "llvm-project-$LLVM_VERSION.src/third-party" \
"llvm-project-$LLVM_VERSION.src/libc"
mv "$src.part" "$src"
rm -f "$tarball"
fi
echo ">> libc++, libc++abi and libunwind $LLVM_VERSION for $TRIPLE"
build="$CACHE/libcxx-build-$ARCH"
rm -rf "$build"
# The classic layout (include/c++/v1, lib/) is where crafter-build looks in a sysroot. libc++abi unwinds with LLVM's
# libunwind, as crafter-build's own libc++ does. Programs come from the sandbox, never from the sysroot: the Sdk's own
# ninja and tools are aarch64 binaries. The C++ compiler cannot link a test program before there is a libc++ to link;
# the C compiler's check still runs.
flatpak run --command=sh "$CRAFTER_REF" -eu -c '
cmake -S "$1/runtimes" -B "$2" -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR="$3" \
-DCMAKE_SYSROOT="$4" \
-DCMAKE_MAKE_PROGRAM=/usr/bin/ninja \
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ONLY \
-DCMAKE_C_COMPILER=/app/bin/clang -DCMAKE_CXX_COMPILER=/app/bin/clang++ -DCMAKE_ASM_COMPILER=/app/bin/clang \
-DCMAKE_CXX_COMPILER_WORKS=ON \
-DCMAKE_C_COMPILER_TARGET="$5" -DCMAKE_CXX_COMPILER_TARGET="$5" -DCMAKE_ASM_COMPILER_TARGET="$5" \
-DCMAKE_AR=/app/bin/llvm-ar -DCMAKE_RANLIB=/app/bin/llvm-ranlib -DCMAKE_NM=/app/bin/llvm-nm \
-DCMAKE_C_FLAGS="-march=$6" -DCMAKE_CXX_FLAGS="-march=$6" \
-DCMAKE_INSTALL_PREFIX="$7/usr" \
"-DLLVM_ENABLE_RUNTIMES=libcxx;libcxxabi;libunwind" \
-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF \
-DLIBCXXABI_USE_LLVM_UNWINDER=ON \
-DLIBCXX_INSTALL_MODULES=ON \
-DLLVM_INCLUDE_TESTS=OFF -DLIBCXX_INCLUDE_TESTS=OFF -DLIBCXXABI_INCLUDE_TESTS=OFF \
-DLIBUNWIND_INCLUDE_TESTS=OFF -DLIBCXX_INCLUDE_BENCHMARKS=OFF
ninja -C "$2" install
' sh "$src" "$build" "$ARCH" "$SYSROOT" "$TRIPLE" "$MARCH" "$LIBCXX"
rm -rf "$build"
grep -q "_LIBCPP_VERSION 230102" "$LIBCXX/usr/include/c++/v1/__config" || { echo "the installed libc++ headers are not $LLVM_VERSION" >&2; exit 1; }
cp -a "$LIBCXX/usr/." "$SYSROOT/usr/"
echo "$stamp" > "$SYSROOT/.made-from"
echo ">> done: $SYSROOT ($stamp)"

View file

@ -0,0 +1,17 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
[Desktop Entry]
Type=Application
Name=Nostro
GenericName=Banking
Comment=See your bank accounts and pay from them
Exec=nostro-app
Icon=net.catcrafts.Nostro
Terminal=false
Categories=Office;Finance;
Keywords=bank;banking;bunq;payment;money;IBAN;
StartupNotify=false
SingleMainWindow=true
X-KDE-FormFactor=handset;tablet;desktop;
X-Purism-FormFactor=Workstation;Mobile;

View file

@ -5,8 +5,8 @@ Branch=stable
Url=https://flatpak.catcrafts.net/repo/
SuggestRemoteName=catcrafts
Homepage=https://catcrafts.net
Comment=Banking client for Linux
Description=nostro and nostrod, its daemon; install it system-wide with the system files from packaging/system
Comment=Your bank accounts on a Linux phone or desktop
Description=The Nostro app; it needs Nostro's service, net.catcrafts.Nostrod, installed system-wide with its system files
Icon=
RuntimeRepo=https://dl.flathub.org/repo/flathub.flatpakrepo
IsRuntime=false

View file

@ -1,27 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- SPDX-License-Identifier: CC0-1.0 -->
<component type="console-application">
<component type="desktop-application">
<id>net.catcrafts.Nostro</id>
<name>Nostro</name>
<summary>Banking client for Linux</summary>
<summary>Your bank accounts on a Linux phone or desktop</summary>
<metadata_license>CC0-1.0</metadata_license>
<project_license>LGPL-3.0-only</project_license>
<project_license>GPL-3.0-only AND OFL-1.1</project_license>
<developer id="net.catcrafts">
<name>Catcrafts</name>
</developer>
<description>
<p>
Nostro talks to your bank's API directly: accounts, transactions, payments, requests, schedules, draft payments
and cards, for bunq so far. Its daemon, nostrod, runs as a system user of its own and keeps every local user's
bank connections where no program of theirs can read them; the nostro command asks it over the system bus, and
your password is asked for before anything moves money.
Nostro shows your bank accounts and pays from them, by talking to your bank's API directly: accounts and their
payments, paying now or on a schedule, requests for money, draft payments and cards. bunq is the bank it knows
so far.
</p>
<p>
Apps can have Nostro pay an order at checkout, from an account you chose, once you have confirmed the payment.
This is the app. It holds no key of yours: your bank connections are kept by Nostro's service, where no program
you run can read them, and your system asks for your password before anything moves money. The service,
net.catcrafts.Nostrod, is installed for the whole system together with a few system files; Nostro's README says
how.
</p>
</description>
<provides>
<binary>nostro</binary>
</provides>
<launchable type="desktop-id">net.catcrafts.Nostro.desktop</launchable>
<url type="homepage">https://catcrafts.net</url>
<supports>
<control>touch</control>
<control>pointing</control>
<control>keyboard</control>
</supports>
<recommends>
<display_length compare="ge">360</display_length>
</recommends>
<content_rating type="oars-1.1"/>
<releases>
<release version="0.1.0" date="2026-11-19">
<description>
<p>The first release: everything the nostro command does, in a window that fits a phone and a desktop.</p>
<ul>
<li>Accounts and their payments, with search and filters</li>
<li>Paying now, on a schedule or as a draft, and asking for money</li>
<li>Requests sent and received, scheduled payments and drafts</li>
<li>Cards: freeze, unfreeze, report lost or stolen</li>
<li>Bank connections with an API key or through OAuth, and the account apps are paid from at checkout</li>
</ul>
</description>
</release>
</releases>
</component>

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- SPDX-License-Identifier: GPL-3.0-only -->
<!-- SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts® -->
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">
<rect x="8" y="8" width="112" height="112" rx="28" fill="#2e70ed"/>
<!-- A bank: a roof, the columns under it and the ground they stand on. -->
<path d="M64 27 102 47v7H26v-7z" fill="#ffffff"/>
<rect x="34" y="60" width="12" height="26" rx="2" fill="#ffffff"/>
<rect x="58" y="60" width="12" height="26" rx="2" fill="#ffffff"/>
<rect x="82" y="60" width="12" height="26" rx="2" fill="#ffffff"/>
<rect x="26" y="92" width="76" height="9" rx="3" fill="#ffffff"/>
</svg>

After

Width:  |  Height:  |  Size: 721 B

View file

@ -0,0 +1,13 @@
[Flatpak Ref]
Title=Nostro service
Name=net.catcrafts.Nostrod
Branch=stable
Url=https://flatpak.catcrafts.net/repo/
SuggestRemoteName=catcrafts
Homepage=https://catcrafts.net
Comment=The daemon and command behind the Nostro banking client
Description=nostrod and the nostro command; install it system-wide with the system files from packaging/system
Icon=
RuntimeRepo=https://dl.flathub.org/repo/flathub.flatpakrepo
IsRuntime=false
GPGKey=GPG_KEY_BASE64_PLACEHOLDER

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- SPDX-License-Identifier: CC0-1.0 -->
<component type="console-application">
<id>net.catcrafts.Nostrod</id>
<name>Nostro service</name>
<summary>The daemon and command behind the Nostro banking client</summary>
<metadata_license>CC0-1.0</metadata_license>
<project_license>LGPL-3.0-only</project_license>
<developer id="net.catcrafts">
<name>Catcrafts</name>
</developer>
<description>
<p>
Nostro talks to your bank's API directly: accounts, transactions, payments, requests, schedules, draft payments
and cards, for bunq so far. Its daemon, nostrod, runs as a system user of its own and keeps every local user's
bank connections where no program of theirs can read them; the nostro command and the Nostro app ask it over the
system bus, and your password is asked for before anything moves money.
</p>
<p>
Apps can have Nostro pay an order at checkout, from an account you chose, once you have confirmed the payment.
</p>
</description>
<url type="homepage">https://catcrafts.net</url>
<provides>
<binary>nostro</binary>
</provides>
<content_rating type="oars-1.1"/>
</component>

View file

@ -1,13 +1,15 @@
# SPDX-License-Identifier: LGPL-3.0-only
# SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
#
# nostro as a Flatpak: the CLI, which is the command, and nostrod, which systemd runs from it as the system user nostro
# (packaging/system/nostrod.service). Install it system-wide, with the system files packaging/system/install.sh or
# packaging/arch/PKGBUILD put in place; a Flatpak cannot install those itself.
# nostrod and the nostro command as a Flatpak: the CLI, which is the command, and nostrod, which systemd runs from it as
# the system user nostro (packaging/system/nostrod.service). Install it system-wide, with the system files
# packaging/system/install.sh or packaging/arch/PKGBUILD put in place; a Flatpak cannot install those itself. Its id was
# net.catcrafts.Nostro until the Nostro app took that name; install.sh moves the state of a nostrod installed under it.
#
# Built with crafter-build's own Flatpak as the base app, for its clang 23 and libc++, then stripped back to the two
# binaries and the three C++ runtime libraries they link. libssl, libcrypto and libsystemd come from the Platform.
app-id: net.catcrafts.Nostro
# binaries and the three C++ runtime libraries they link. libssl, libcrypto and libsystemd come from the Platform. That
# base app exists for x86_64 alone: the aarch64 Flatpak, for a phone, is a cross build, packaging/flatpak/build-aarch64.sh.
app-id: net.catcrafts.Nostrod
runtime: org.freedesktop.Platform
runtime-version: '26.08'
sdk: org.freedesktop.Sdk
@ -24,23 +26,19 @@ modules:
- name: nostro
buildsystem: simple
build-options:
# crafter-build fetches Crafter.Network, Crafter.Thread, Crafter.DB and Crafter.LintRules from git, unpinned (see
# AGENTS.md).
# crafter-build fetches Crafter.Network, Crafter.Thread, Crafter.DB and Crafter.LintRules from git, unpinned, and
# Crafter.Debug's build helper at a pinned commit (see AGENTS.md).
build-args:
- --share=network
# A baseline CPU: crafter-build builds for the building machine's own (-march=native) unless told otherwise.
env:
NOSTRO_MARCH: x86-64-v2
arch:
aarch64:
env:
NOSTRO_MARCH: armv8-a
build-commands:
- HOME="$PWD/.home" crafter-build --banks=bunq --march=$NOSTRO_MARCH --mtune=generic
- HOME="$PWD/.home" crafter-build --banks=bunq --product=daemon --march=$NOSTRO_MARCH --mtune=generic
# A baseline CPU: crafter-build builds for the building machine's own (-march=native) unless told otherwise.
- HOME="$PWD/.home" crafter-build --banks=bunq --march=x86-64-v2 --mtune=generic
- HOME="$PWD/.home" crafter-build --banks=bunq --product=daemon --march=x86-64-v2 --mtune=generic
- install -Dm755 "$(ls -t bin/nostro-*/nostro | head -n1)" /app/bin/nostro
- install -Dm755 "$(ls -t bin/nostrod-*/nostrod | head -n1)" /app/bin/nostrod
- install -Dm644 packaging/flatpak/net.catcrafts.Nostro.metainfo.xml -t /app/share/metainfo/
- install -Dm644 packaging/flatpak/net.catcrafts.Nostrod.metainfo.xml -t /app/share/metainfo/
# The licences of what it carries besides Nostro itself; packaging/licenses/NOTICE says what each text covers.
- install -Dm644 packaging/licenses/NOTICE packaging/licenses/nlohmann-json-MIT.txt packaging/licenses/LLVM-LICENSE.TXT -t /app/share/licenses/net.catcrafts.Nostrod/
sources:
- type: dir
path: ../..
@ -51,13 +49,12 @@ modules:
- build
cleanup-commands:
# The base app's toolchain is in /app too: keep what nostro needs at run time, its metainfo, and the licenses of what
# it ships: its own, which flatpak-builder recorded, and LLVM's, for libc++, libc++abi and libunwind.
# it ships: its own, which flatpak-builder recorded, and the ones the build put beside them.
- mkdir -p /var/tmp/keep/bin /var/tmp/keep/lib /var/tmp/keep/share/metainfo /var/tmp/keep/share/licenses
- cp -a /app/bin/nostro /app/bin/nostrod /var/tmp/keep/bin/
- cp -a /app/lib/libc++.so.1* /app/lib/libc++abi.so.1* /app/lib/libunwind.so.1* /var/tmp/keep/lib/
- cp -a /app/share/metainfo/net.catcrafts.Nostro.metainfo.xml /var/tmp/keep/share/metainfo/
- cp -a /app/share/licenses/net.catcrafts.Nostro /var/tmp/keep/share/licenses/
- install -Dm644 /app/share/licenses/net.catcrafts.CrafterBuild/llvm/LICENSE.TXT /var/tmp/keep/share/licenses/net.catcrafts.Nostro/llvm/LICENSE.TXT
- cp -a /app/share/metainfo/net.catcrafts.Nostrod.metainfo.xml /var/tmp/keep/share/metainfo/
- cp -a /app/share/licenses/net.catcrafts.Nostrod /var/tmp/keep/share/licenses/
- find /app -mindepth 1 -maxdepth 1 -exec rm -rf {} +
- cp -a /var/tmp/keep/. /app/
- rm -rf /var/tmp/keep