"You are not a resource. You are a human being."
Macaroon is an offline-first, privacy-first journaling and intentions companion for the web and Android. It is built around gentle daily intentions, journaling and reflection rather than streaks and productivity scores, and it runs a small language model on the device so that nothing you write ever leaves your phone.
- On-device AI companion. On Android, chat and check-ins run on a local GGUF model (Phi-4-mini-reasoning) through a custom Capacitor plugin wrapping llama.cpp (Kotlin + C++/JNI). No server, no account.
- Encrypted backups. The vault exports your data encrypted with AES-GCM, with the key derived by PBKDF2-SHA-256 (310,000 iterations) using the WebCrypto API.
- Three languages and right-to-left support. English, French and Arabic (plus Moroccan Darija strings), with full RTL layout and bidi-safe rendering.
- Offline PWA. A service worker precaches every asset. The precache list is generated from
index.htmlso it cannot drift. - Reflection features. Daily intentions, journaling, a weekly letter and quarterly review, letters to your future self, focus sessions with ambient soundscapes, and a reading corner.
- Care in the details. Crisis-support routing, rest mode, accessibility (focus management, screen-reader labels, contrast checks across themes), and time-of-day themes.
- Tested. 62 Vitest suites with about 1,240 tests covering logic, i18n coverage, accessibility, contrast and offline caching.
- Optional AI backend (
macaroon-ai-backend/): FastAPI with RAG over journal context and SSE/WebSocket streaming, for running a larger model on a server.
| Layer | Tools |
|---|---|
| App | Vanilla JavaScript (ES2020+), HTML, CSS, no framework |
| Mobile | Capacitor 8, Android (Kotlin), SQLite via @capacitor-community/sqlite |
| On-device AI | llama.cpp via JNI/CMake, GGUF models |
| Backend (optional) | Python, FastAPI, RAG |
| Tooling | Vite, Vitest + jsdom, custom Node build scripts (icons, fonts, service worker) |
npm install
npm run dev # local dev server
npm test # run the test suitesh tools/fetch-llama-cpp.sh # fetch the pinned llama.cpp sources (about 140 MB)
npm run build
npx cap sync android
npx cap open androidThe model is downloaded on first use inside the app (download_model.py fetches it for local testing).
Macaroon has an optional personalisation layer for one specific user: letters, greetings and small gifts tied to dates. Its content is private, so it is handled like an .env file:
js/personal/personal.example.jsis committed. It holds the same keys with neutral placeholder text, so the app and every test run from a fresh clone.js/personal/personal.jsis git-ignored. When present, it overrides the example.
To try the layer with your own content, copy the example to js/personal/personal.js and edit it. tools/export-public.py builds the public copy of the project and refuses to export if any private name or sentence would leak.
- Intentions, not tasks. No to-do pressure, no punishing streaks.
- Your data stays yours. Local storage and SQLite, no accounts, no tracking.
- Calm interface. Source Serif 4 and Inter (IBM Plex Sans Arabic and Noto Naskh Arabic for Arabic), a warm palette, and gentle motion that respects reduced-motion settings.
MIT