Skip to main content

Build Status Coverage

Dinary — Your Dinar Diary

See what went into the shopping bag.

Scan a fiscal receipt from Serbia or Montenegro and turn its line items into categorized expenses. Correct a category once and reuse that choice on future purchases. Track spending across currencies, trips, and tags, with optional Google Sheets export and AI-assisted analysis.

Pick your category set
Review receipt categories

Quick entry in any currency
  • Know what you bought. Split a supermarket receipt into item-level spending, review uncertain categories, and teach the app your preferences through corrections.
  • Capture it while you remember. Scan QR codes or enter expenses on your phone, including offline. Queued entries sync when the app reconnects.
  • Explore spending your way. Combine categories, trip or event context, and tags. Keep original currencies alongside converted totals, export to Sheets, or ask questions in the local analytics dashboard.

Setup and documentation · Install the PWA · Analytics

Under the hood

Corrections become reusable rules. Known items use stored classification rules; unfamiliar or uncertain items go to an LLM. A user correction takes precedence over the model and applies across branches of the same retail chain. Classification failures remain recoverable through retries and review. The classification design explains confidence, alternatives, and manual resolution.

Provider selection and failover are handled by llmbroker, a standalone library for applications that need a pool of LLM providers. Receipt logic stays in Dinary.

A saved expense outlives a failed network call. IndexedDB holds offline entries, and the QR scanner is bundled for offline use. On the server, the SQLite ledger is the source of truth. Google Sheets export runs through a retryable queue, so a spreadsheet outage does not prevent expense capture. See the offline design and Sheets integration.

Analysis has a separate home. The local analytics app uses DuckDB to query a read-only ledger replica, keeping heavy analytics dependencies off the capture server. Its AI can query spending and configure views without editing the ledger. The analytics design covers the dashboard and MCP interface.

Design decisions

Small, frequent lookups shaped the storage layer. In an early synthetic workload, 5,000 mapping lookups took 2.0 seconds with direct SQL and 19.9 seconds through Ibis. That comparison led to SQL files and migrations for the transactional backend. The architecture record documents the workload and trade-offs; the result describes that benchmark, not whole-application performance.

Contributing

Install uv and Node.js, then prepare the full development and test environment:

bash scripts/setup-test-env.sh
npm --prefix webapp ci
uv run inv dev --rebuild

The setup script installs all Python dependency groups and prepares the tools needed by analytics and backup tests. See the development guide for local configuration and platform prerequisites.

uv run inv pre
uv run pytest
npm --prefix webapp test

See AGENTS.md for repository conventions and the deployment guide for hosting.

Allure test report

Metadata

Release files for dinary 1.8.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dinary 1.8.2
File Size Uploaded
dinary-1.8.2.tar.gz 6.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for dinary 1.8.2
File Interpreter ABI Platform
dinary-1.8.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.7 MB

Release files / dinary-1.8.2.tar.gz

Download URL dinary-1.8.2.tar.gz
Size 6.5 MB
Tags Source
SHA-256 checksum
How to use checksums
59599646ee7f77030183b19681906e50296ce3443e16b592016f0700a22266eb
BLAKE2b-256 checksum
How to use checksums
d14e5b1805b4290145363fdf39edaf55a64ba4b35152b601992dab8b1fe3b072
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / dinary-1.8.2-py3-none-any.whl

Download URL dinary-1.8.2-py3-none-any.whl
Size 147.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e119976885b047944776bd6a54dd177470a33dd459c11873f638567f3d0d9d92
BLAKE2b-256 checksum
How to use checksums
451d5c1efb04ebc682bf2fade841b50b431e1f4946469d0074f708660c78018b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

1.10.0

2 release files

1.9.1

2 release files

1.9.0

2 release files

This release

1.8.2 This release

2 release files

1.8.1

2 release files

1.8.0

2 release files

1.7.2

2 release files

1.7.1

2 release files

1.7.0

2 release files

1.6.5

2 release files

1.6.4

2 release files

1.6.3

2 release files

1.6.2

2 release files

1.6.1

2 release files

1.6.0

2 release files

1.5.2

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page