Build a real app: Saldo
A hands-on, chapter-by-chapter tutorial that builds Saldo — a multilingual, SQLite-backed
personal expense & money manager — from an empty scaffold to a store-ready app, entirely in Rust on
Mobiler. Every chapter is a working increment with the exact code, and the
finished app lives in demos/saldo/. Its native shells are exactly what mobiler new and
mobiler plugin add produce, kept current with mobiler upgrade on every CLI release (ADR-0060).
Saldo is a real, full-featured money manager — a ledger of income / expense / transfer entries
across multiple accounts, organized by categories, summarized with charts, exportable to
CSV, localized into English, German, French, Italian and Ukrainian, and locked behind a
passcode. We build it on the framework’s existing capabilities: the sqlite, files,
filepicker and biometric plugins, the Chart widget, mobiler_core::format, and the
mobiler_core::i18n translation primitive. Saldo is the app that added i18n, cx.now() and Ukrainian
formatting to the framework; all three shipped in mobiler-core 0.31, so on today’s framework you just
use them. The chapters say where each one came from.
Chapters
Section titled “Chapters”- Scaffold & first screen —
mobiler new, the mobile-only project layout, theMobilerApp(Model / Msg /update/input/view), the four-tabscaffold, a floating action button, a bottom sheet, and an in-memory expense ledger. - Persist with SQLite — the schema, creating it on launch,
insert/query with bound params, the
cx.now()capability (added for Saldo), day-grouping, period filters, and the “the Model isn’t persisted — re-read it on launch” pattern. - Accounts & transfers — a unified income/expense/transfer
ledger across accounts, balances + net worth on the Assets tab, and a
PRAGMA user_versionschema migration that carries the Chapter-2 data forward. - Categories & the entry sheet — a seeded category tree
(income/expense, two levels), a hierarchical category picker, and a native date picker for
back-dating (
cx.pick_date). - Stats — a category-breakdown donut (income/expense toggle, per period) with a
ranked list, a net-worth trend line, and a monthly income-vs-expense bar chart — all from the
Chartwidget over pure aggregation helpers. - Money & formatting — route every amount and date through
mobiler_core::format, pick the locale from the device (cx.device_locale), and add Ukrainian (Locale::UkUa/Currency::Uah) to the framework (inmobiler-coresince 0.31). - Go multilingual —
mobiler_core::i18n(sincemobiler-core0.31; language negotiation + a fallback-awareCatalog): translate every string into en/de/fr/it/uk, pick the language from the device, and let the user override it in Settings. - Recurring transactions — a
recurringrules table, a “Repeat” choice on the entry sheet, and catch-up materialization on launch (dependency-free civil-date arithmetic). - Export & backup — a CSV export of the ledger and a full JSON
backup/restore (the
files+filepickerplugins), from a Data card in Settings. - Security, settings & polish — an optional biometric app lock
(
biometric, device-passcode fallback), the Saldo brand theme (with_theme) with a light/dark toggle, and a real app icon.
The look is intentionally clean and modern — Mobiler renders the same Rust
Widgettree to native SwiftUI, Jetpack Compose, and the web, so we describe what the UI is and the platforms draw it.