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

@ -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>