Skip to content
Engine
Generator
Design
RAG
Agent
Models
Data
Roadmap
FR
Demo
Overview
Engine
Generator
Design
RAG
Agent
Models
Data
Roadmap
Open the demo
Français
Overview
Design
Design
The same app drawn seven ways.
uc Account and integrations
An admin is a user who can also invite. An AI assistant may read, and writes only with approval.
CostMap
User
Admin
AI assistant
«include»
«include»
«extend»
Sign in
Back up data
Export or delete data
Create an access token
Invite someone
Send a one-time link
Encrypt the backup
Query spending
Answer a question
Ask for approval
uc Account and integrations
Use cases
3 diagrams
→
class Product recognition
A printed line goes in; a product, a confidence and other candidates come out.
Resolver
- aliases : Map
- shared : Map
- catalog : List
- judge : Judge [0..1]
+ resolve(line) : Resolution
+ key(raw_name) : str
«dataclass»
Line
+ raw_name : str
+ merchant_key : str
+ weighed : bool
+ vat_rate : float [0..1]
+ section : str [0..1]
«interface»
Judge
+ choose(line, candidates)
«dataclass»
Resolution
+ product : str [0..1]
+ category_id : str [0..1]
+ confidence : float
+ source : str
+ signals : List<str>
+ needs_question() : bool
«dataclass»
Normalized
+ text : str
+ tokens : List<str>
+ size_value : float [0..1]
+ size_unit : str [0..1]
+ pack : int [0..1]
+ organic : bool
«dataclass»
Candidate
+ name : str
+ category_id : str
+ score : float
+ source : str
takes
0..1
«create»
1
1
*
1
class Product recognition
Classes
5 diagrams
→
stm Bank line
An imported line stays unmatched until something accounts for it.
unmatched
matched
explained
ignored
import
a receipt matches
receipt deleted
income, rule, subscription or answer
the user ignores it
stm Bank line
State transitions
4 diagrams
→
act Import a bank statement
The app only asks the user when it cannot decide.
User
CostMap
Choose the CSV or
Excel file
Find date, label
and amount columns
[not found]
Point at the
columns
[found]
Keep only the
new lines
Look for the receipt
of each payment
[unsure]
Say which receipt
it is
[clear or none]
Show the summary
act Import a bank statement
Activities
4 diagrams
→
sd Import a statement
Importing the same file twice adds nothing.
User
App
API
Database
file
POST /bank/preview
columns found
POST /bank/import
insert new lines
[each payment]
match a receipt
link or question
loop
summary
sd Import a statement
Sequences
4 diagrams
→
er Money and receipts
A purchase belongs to a wallet; a receipt and a bank line point at the purchase.
wallets
PK id
FK user_id
name
kind
currency
opening_balance_cents
archived
purchases
PK id
FK user_id
FK wallet_id
FK category_id
merchant
occurred_on
amount_cents
…
receipts
PK id
FK user_id
FK purchase_id
status
source
doc_type
merchant
…
receipt_items
PK id
FK user_id
FK receipt_id
idx
raw_name
merchant_key
qty
…
bank_transactions
PK id
FK user_id
FK wallet_id
occurred_on
amount_cents
description
dedup_key
…
subscriptions
PK id
FK user_id
name
amount_cents
currency
cycle
next_due
…
categories
PK id
FK user_id
FK parent_id
name
color
icon
hidden
products
PK id
FK user_id
name
FK category_id
*
1
*
1
*
1
*
1
*
1
*
1
*
1
*
1
*
1
er Money and receipts
Data model
2 diagrams
→
dep Deployment
The app runs in the browser and on Cloudflare. The agent runs on my computer and calls the same API.
«device» browser
«cloud» Cloudflare
«device» my computer
Web app (Svelte)
Checking engine
TypeScript
ONNX models
reading, products
Device-only mode
Python in the browser
API (Python Worker)
D1
R2
Workers AI
reading model
Timer and email
MCP server
Agent
(LangGraph)
Search index
(RAG)
Other MCP clients
REST
HTTPS
MCP
dep Deployment
Architecture
3 diagrams
→