Evolve
Build better habits. Own your data.
"We don't rise to the level of our goals. We fall to the level of our systems." — James Clear
Evolve is a habit and goal tracker for iPhone, iPad and Mac. Build a daily protocol and hold a streak, plan macro goals from lifetime down to the week, log how you actually felt, and ask a coach that reasons over your data — not a generic chatbot.
It runs two ways: a fully local, encrypted Private mode that costs nothing and unlocks everything, or a Cloud mode that syncs across your devices. You choose which, and you can switch.
This repository —
mattioli.OS— is the monorepo behind Evolve: two Flutter clients, a React web client, and a shared Supabase backend.
![]() |
![]() |
![]() |
Two ways to use Evolve
The distinction is not "free trial vs paid". It's where your data lives — and the private option is the one with nothing held back.
| 🔒 Private mode | ☁️ Cloud mode | |
|---|---|---|
| Where data lives | On your device, in a SQLCipher-encrypted database | Supabase (Postgres) |
| Account | None required | Email or Sign in with Apple |
| Sync | Optional end-to-end encrypted iCloud/CloudKit sync across your Apple devices | All your devices, plus the web client |
| Crash reporting | Never starts — the SDK is torn down, not just muted | Opt-in only, PII-scrubbed, revocable at any time |
| Price | Free — every Pro feature unlocked, no paywall shown | Free core; Evolve Pro subscription unlocks advanced analytics |
Private mode isn't a limited tier. The clients force full entitlement when it's active, and no upgrade prompt is ever displayed — the code treats a private user as entitled by construction.
And because this repo is source-available, self-hosting the Cloud mode against your own Supabase project has no paywall either.
Features
| Daily protocol | Per-habit streaks, per-day-of-week scheduling, quick check-off, month / week / year / lifetime views |
| Macro goals | Lifetime → annual → quarterly → monthly → weekly planning, with historical performance and multi-year trends |
| Statistics | Completion trends, improvement alerts, per-day-of-week performance, habit correlations, yearly heatmaps |
| Mood & energy | A daily check-in that surfaces how your habits actually affect how you feel |
| AI coach | Context-aware coaching over your own history. Desktop can run it entirely on-device against a local Ollama or LM Studio model, so it never leaves your machine |
| Privacy | Local SQLCipher encryption, E2E-encrypted CloudKit sync (AES-GCM), biometric lock, no ads, no tracking |
| Localised | English, Italian, Spanish, German, Arabic — including full RTL |
Platforms
| Client | Runs on | Stack | Availability |
|---|---|---|---|
mobile/ |
iOS 16+ · iPadOS · Android | Flutter · Riverpod · go_router | On the App Store (iOS). Android builds from source; not published. |
desktop/ |
macOS 12.3+ · Windows · Linux | Flutter · Riverpod | Build from source — see desktop/README.md |
web-app/ |
Any browser | React 18 · Vite 7 · Tailwind | The Mattioli.OS website + browser tracker |
iPhone & iPad
The primary client. Offline-first, 60/120 FPS, biometric lock, and the full Private-mode stack with encrypted iCloud sync.
![]() |
![]() |
Mac, Windows & Linux
A native desktop client — not a wrapped web page. Keyboard-first: ⌘1–⌘5 to move between sections, ⌘K for a fuzzy command palette that jumps straight to any habit or goal, and arrow-key paging through periods. On macOS it adds encrypted CloudKit sync and a local Ollama-backed AI coach.
![]() |
![]() |
Web
The Mattioli.OS website and a browser-based tracker, served from one Vite build. See web-app/README.md.
Architecture
Three clients, one shared backend. The Flutter clients share their sync and verification cores as local Dart packages.
mattioli.OS/
├── mobile/ Flutter — iOS · iPadOS · Android
├── desktop/ Flutter — macOS · Windows · Linux
├── web-app/ React + Vite — website + browser tracker
├── packages/
│ ├── evolve_sync/ E2E-encrypted CloudKit sync core (AES-GCM)
│ ├── evolve_verification/ Habit auto-verification engine
│ ├── evolve_targets/ Quantitative habit targets (count / duration / limit)
│ └── evolve_legal/ The public legal + support URLs, defined once
├── schema.sql Postgres schema — the single source of truth
├── migrations/ Versioned SQL migrations (shared by all clients)
├── supabase/ Edge functions — RevenueCat webhook, Apple token revocation
└── docs/ User manuals, contribution guide, assets
schema.sql and migrations/ live at the root deliberately: all three clients depend on them, and mobile/test/schema_drift_test.dart fails CI if any .rpc() or view the app calls is missing a definition — so the schema can't silently drift from the code.
Development
Each client is a self-contained project root. Build the one you need.
git clone https://github.com/simo-hue/mattioli.OS.git
cd mattioli.OS
| Client | Commands |
|---|---|
| Mobile | cd mobile && flutter pub get && dart run slang && flutter run |
| Desktop | cd desktop && flutter pub get && flutter run -d macos |
| Web | cd web-app && npm install && npm run dev |
Both Flutter clients need local config files that are git-ignored for secrets — copy the .example templates in mobile/lib/core/ and fill them in. Full instructions: mobile/README.md · desktop/README.md · web-app/README.md.
For the backend, run schema.sql in your own Supabase project.
Privacy
- No ads, no third-party tracking, no data resale. There is no advertising or analytics SDK in either client.
- Private mode keeps everything on-device, in a SQLCipher-encrypted database. Crash reporting doesn't run at all — the SDK is shut down rather than merely silenced, because muting the logger alone would leave the native crash handler reporting.
- Crash reporting is opt-in, never assumed. The first launch stays silent until you're actually asked; events are PII-scrubbed (emails, tokens, secrets) before leaving the device, and you can withdraw consent later.
- iCloud sync is end-to-end encrypted (AES-GCM) — payloads are encrypted on-device before they reach CloudKit.
- Cloud mode stores only what you enter, behind Postgres row-level security.
- Account deletion is a first-class action and removes your data server-side.
Full details: Privacy Policy.
Documentation
| 🇺🇸 English | 🇮🇹 Italiano |
|---|---|
| User Manual | Manuale Utente |
| Web Technical Guide | Guida Tecnica Web |
- Technical Deep Dive — web architecture, state, RLS
- Habit Statistics Audit — how every statistic is derived, verified across SQL, mobile and desktop
- Contributing
Philosophy
Evolve is opinionated. It assumes:
- Friction is the enemy. Logging a day must take seconds, or you won't do it.
- Privacy is not a feature. It's the default — which is why the private tier is the free one.
- Aesthetics matter. A tool you find ugly is a tool you'll abandon.
License
PolyForm Noncommercial 1.0.0 — free to use, modify and self-host for any noncommercial purpose.
Built by Simone Mattioli







