A minimalist personal-finance application — accounts, categories, records, monthly budgets, savings goals, an overview and analytics.
Prudent is built on jZen, a framework for full-stack applications: a Quarkus server, a Flutter client, and a contract in Protobuf. jZen is a declared dependency — Prudent is its consumer, not part of it, and nothing here ever edits the jZen checkout.
On wide windows, page content stays centred in a readable column. Charts have more room, while navigation and page headers continue to use the available width.
Prudent comes in two forms that share every screen (packages/prudent_ui, ADR-108):
- The server-connected app —
client/talking toserver/. You sign in; your ledger lives in the server's Postgres database; the server enforces the rules. It targets Android, iOS, the web, macOS, Linux and Windows. Its privacy policy isdocs/privacy-policy.md. - Prudent Local —
local/prudent_local_client. No server, no sign-in, no account: the whole ledger runs on the device over jZen's encrypted store and syncs between a person's own devices through iCloud (Apple) or a folder they choose (Android, Windows, Linux). It is built for iOS, macOS, Android, Windows and Linux; there is no web build. Its privacy statement isdocs/privacy-policy-local.md.
Prudent Local is not released. Its code is built, merged and proven by tests, the parity suite against the live server and CI, which compiles it for all five platforms. It has been run only as an unsigned debug build on a Mac, by its integration test (ADR-121), which keeps its secrets in memory; the real Keychain was reached only to see it refuse an unsigned build (
-34018). It has never run on a phone, never as a signed build, never as a person would use it. It is not released until unit 12 ofdocs/implemented-plans/PRUDENT-LOCAL-PLAN.md(real devices, signing, CloudKit) has been done by a person.
# the server-connected app: Supabase + backend + web client together, one Ctrl-C stops it
task run:dev
# Prudent Local on a native device (no server is started or looked for; the web is refused)
task run:local DEVICE=macosOn macOS an unsigned Prudent Local cannot reach the Keychain and refuses to open, except a debug
build with ZEN_ENV=dev, which keeps its key in the login keychain (ADR-121, ADR-127).
The repository root is language-neutral on purpose: no root pom.xml, no root pubspec.yaml,
no root package.json. Each tier owns its own build file, and the root owns none of them.
prudent/
├── Taskfile.yml the single entry point; includes ../jZen/Taskfile.app.yml
├── client/ the server-connected Flutter app (Android, iOS, web, macOS, Linux, Windows)
├── server/ the Quarkus backend
├── packages/ prudent_ui (every screen, shared by both apps) and prudent_proto (wire messages)
├── local/ Prudent Local: its rules, its ledger on jZen's store, and its app (no web)
├── tools/ the parity server that holds Local's figures to the live server's
├── admin/ the react-admin panel (assembles @jzen/admin-core)
├── proto/ the wire contract (canonical for models)
├── docs/ the architecture, the plan, and the decision log
├── .github/ CI (Linux, Windows and macOS) and the scheduled dependency audit
└── LICENSE
flutter runno longer works from the repository root. The root is not a Dart package any more, so it iscd client && flutter run. That is the price of a language-neutral root, and it is the one thing that will surprise someone returning to this repository. Everytaskcommand below is run from the root; only the rawflutter/mvnwones are run from inside a tier.
jZen's packages are unpublished — every one is 0.1.0, with publish_to: none on the Dart
side, -SNAPSHOT on the Maven side, and no npm registry entry. Until they are published, Prudent
consumes them from a sibling checkout that must be at exactly ../jZen:
some-folder/
├── jZen/ <- the framework, read-only from here
└── prudent/ <- this repository
git clone https://github.com/jZenDev/jZen.git
git clone https://github.com/jlogicsoftware/prudent.git
cd prudentThere is no version boundary between the two repositories. They move in lockstep: a git pull
in ../jZen can break this build, with no version to point at. The reasoning, the cost and the exit
are recorded in docs/DECISIONS.md ADR-001.
task zen:info # run this FIRST — see below
task zen:framework:install # build jZen's Java libraries into your local Maven repository
task deps # resolve every tier's dependencies (Maven + pub + pnpm)
task run:dev # Supabase + backend + web client together, one Ctrl-C stops itapp: prudent
app root: /path/to/prudent
tiers: client=client server=server proto=proto
jZen: /path/to/jZen
jZen rev: 73e2b18
Because the framework arrives by path rather than by version, the only honest answer to "which
jZen is this?" is a commit — and the only warning that the answer is unstable is a dirty tree,
which zen:info reports as (DIRTY - uncommitted changes; this build is not reproducible). Every
failure mode of a path-consumed framework looks like a broken build rather than a missing sibling,
so check this before reading a stack trace.
Non-resolvable parent POM for prudent:prudent-server:0.1.0-SNAPSHOT:
zen:zen-parent:pom:0.1.0-SNAPSHOT was not found
The POM is not broken. server/pom.xml inherits zen-parent with an empty <relativePath/>,
which resolves it from your local Maven repository — and something has to put it there first. Maven
cannot express that prerequisite, because a build cannot declare "go build another repository". The
fix is:
task zen:framework:installRun it again after every git pull in ../jZen. The long version of this reasoning lives in
server/pom.xml, next to the <parent> block it explains.
Everything is driven by task (go-task), which triggers native tools and
never replaces them: mvnw owns Java, flutter/dart pub owns Dart, pnpm owns TypeScript.
| Command | What it does |
|---|---|
task zen:info |
Which jZen checkout, which revision, dirty or not |
task zen:framework:install |
Installs jZen's Java libraries into the local Maven repository |
task deps |
Resolve every tier's dependencies — Maven (server) + pub (client) + pnpm (admin) |
task generate |
Regenerate every generated artifact (proto, OpenAPI, admin types, l10n); no gate |
task verify:contracts |
generate, then fail if a tracked generated file drifted (the CI gate) |
task verify:boundaries |
Fails if the client (or the admin panel) reaches past Prudent's own server |
task verify:controls |
Fails if a client screen uses a raw Material control zen_ui_widgets replaces |
task test:server |
The backend suites against a throwaway Postgres |
task zen:test:client |
Every Dart/Flutter suite |
task test:admin |
Typechecks the admin panel |
task test:e2e |
The release gate — the real Supabase + Quarkus stack, no mocks (Linux-only) |
task test:native |
Builds the native image and smokes it in Docker — the long check before a deploy |
task audit |
Dependency CVE scan (Java + TypeScript); needs network, runs on a schedule, not in CI |
task run:dev |
Supabase + backend + web client together, one Ctrl-C tears it down |
task run:server / task run:client / task run:supabase / task run:admin |
The tiers separately |
task zen:build:runners |
Every delivery runner this host can build; skips are announced |
(cd client && flutter run) |
Runs the server-connected application |
task run:local DEVICE=<native device> |
Runs Prudent Local; the web is refused by name |
task build:local:runners / task build:local:runners:release |
Compiles Prudent Local's runners this host can build (release with ZEN_ENV=prd) |
task test:local-core / task test:local-store |
Prudent Local's rules and its ledger on the store (pure Dart, no server) |
task verify:local-release |
Fails if Local could ship a backup of its store, the unencrypted sync transport or a web target |
task verify:golden |
Fails if Local's rules drift from the server's golden vectors |
The zen: tasks — and deps / generate / verify:contracts plus the whole run:* family,
which are one-line aliases to them — come from jZen's Taskfile.app.yml, which Prudent
includes rather than copies: jZen runs the same file for its own reference application, so
these are shared tasks rather than a lookalike that drifts (ADR-027 through ADR-029). The build,
the gates and the deploy are Prudent's own, written phase by phase as each phase produced
something for them to act on — see docs/DECISIONS.md for what each one found along the way.
.github/workflows/ci.yml runs on Ubuntu, windows-latest and macos-latest — Windows exists to
build the Windows desktop apps, which Flutter refuses to cross-compile, and macOS to build Prudent
Local's iOS and macOS runners (ADR-124). Every job checks out ../jZen
at a pinned SHA (env.JZEN_REF) rather than main, because a CI runner has no sibling checkout
and no local Maven repository of its own — see docs/DECISIONS.md ADR-018 for the full reasoning and
its cost. .github/workflows/audit.yml runs task audit on a weekly schedule, deliberately outside
the merge gate.
Nothing is released. The server-connected app's deploy path — a native image, a same-origin-staged
web and admin bundle, migration run as a one-shot job ahead of the serving revision — is
task deploy:cloudrun and task verify:deploy (ADR-020, ADR-021, ADR-023). It has run against
disposable cloud environments that were then deleted (ADR-065 to ADR-067) and once against a persistent
proof of concept that holds test data only and has no backups (ADR-068, ADR-069,
docs/persistent-environment.md). The persistent environment's values are
committed in deploy/persistent.env and deployed with task deploy:persistent (ADR-131); nothing else's are,
and no credential ever (ADR-021). Prudent Local has nothing to deploy.
The server-connected app targets Android, iOS, web, macOS, Linux and Windows; Prudent Local targets the same less the web (jZen ADR-073: a browser has no durable place for the encrypted store and no secure key storage). CI compiles Prudent Local for all five (ADR-124); apart from the unsigned macOS debug build its integration test runs on a Mac, with secrets in memory, no Local build has been run on a device yet.
Desktop and Apple builds are host-only: Flutter refuses build linux off a Linux host and
build windows off a Windows host, and the Apple targets need Xcode. No single machine verifies
the full set, which is why task zen:build:runners announces what it skipped instead of passing
silently, and why CI needs more than one operating system. See
docs/DECISIONS.md ADR-003.
Flutter is pinned to 3.50.0 in .fvmrc, matching jZen. This is load-bearing rather
than tidiness: the Android build delegates its NDK version to the SDK (flutter.ndkVersion), so two
developers on different Flutter releases resolve different NDKs and hit build failures
asymmetrically. Until CI enforces it, the pin is advisory — check flutter --version matches.
One Java version everywhere; only the distribution differs — GraalVM 25 for Maven, Quarkus and
the native image; Temurin 25 for Android, because AGP's jdkImage transform shells out to
jlink and GraalVM's cannot run it:
sdk install java 25.0.3-tem
flutter config --jdk-dir "$HOME/.sdkman/candidates/java/25.0.3-tem"That second command is a machine-wide setting which outranks JAVA_HOME and applies to every
Flutter project on the machine — so no task in this repository can set it, and installing a
different Java version to satisfy one project would break the others. See
docs/DECISIONS.md ADR-005.
If an Android build fails with a message whose entire text is a version number like 25.0.3, the
Gradle distribution is too old for the JDK. After changing it, kill the daemon — one started under
the old distribution keeps serving it:
pkill -f GradleDaemon| Document | What it is |
|---|---|
docs/zen-architecture.md |
Prudent's cornerstone — the design philosophy this product is built on. Read it before non-trivial work. |
docs/DECISIONS.md |
Prudent's own decision log, numbered from ADR-001, append-only |
docs/erste-csv-contract.md |
The Erste Polska CSV statement format as observed, what the importer must validate, and the synthetic fixtures (M6) |
docs/privacy-policy.md |
The server-connected app: what it keeps, how to copy it, how to erase it, and what erasure does not remove |
docs/privacy-policy-local.md |
Prudent Local: what stays on the device, what the sync service sees, erasure, and what is not protected or not verified |
docs/product-roadmap.md |
The product's milestones and where each stands |
docs/implemented-plans/prudent-migration-plan.md |
The approved plan the server-connected app was built to, and its phase sequence |
docs/implemented-plans/PRUDENT-LOCAL-PLAN.md |
Prudent Local's plan: each unit's PRs and ADRs, and what unit 12 (real devices) still owes |
docs/jzen/README.md |
Where jZen's rules live — pointers into ../jZen, never copies |
jZen's documents are read from ../jZen, not copied here: a copy drifts, and a drifted rule is
worse than an absent one. docs/jzen/ is deleted the day jZen publishes its packages, since a
versioned dependency's documentation travels with the package.
Apache License 2.0 — see LICENSE.