Solo-built personal finance tracker for mg (LumenDev internal product line). Centralizes transactions across multiple bank accounts, enforces per-category budgets, visualizes cash flow on a dashboard, and ingests transactions via an AI-assisted bulk-import pipeline. Ships as an offline-capable PWA so transactions can be added on-the-go and synced when reconnected. Despite the "Notion" in the project name, there is no active Notion integration — @notionhq/client is in dependencies but unused; the integration that matters is OpenRouter + a scheduled external agent that scrapes BCA bank emails and pushes transactions through a bearer-authenticated REST API.
src/. Single service: npm run dev on port 3000.src/lib/models/ (alias @model/*) — userModel, bankModel, transactionModel, transactionCategoryModel, transactionTemplateModel, wishlistModel, rateLimitModel, refreshTokenSessionModel, tokenBlacklistModel.src/lib/actions/ (alias @actions/*). REST is reserved for the external integrations surface.src/app/api/integrations/v1/ — bearer-token authenticated; used by external AI agents to push parsed transactions (bulk + preview).jose, password hashing via bcryptjs, HTTP-only cookies; route protection via Edge middleware (src/middleware.ts). Token blacklist model handles signout/revocation.src/lib/validations/.src/components/ui/), Lucide + Heroicons. Charts via ApexCharts and Recharts.next-pwa service worker. Offline outbox uses IndexedDB under src/lib/offline/ — writes queue locally and reconcile via sync worker on reconnect. E2E specs in tests/e2e/offline-*.spec.ts.src/lib/imports/ — chunked LLM normalization, LLM response cache, image downscale for receipt uploads.tests/pom/) + Vitest unit tests. Commands: npm run test:e2e, npm run test:unit.MONGODB_URI, JWT_SECRET_KEY (32+ chars), NODE_ENV, OPENROUTER_API_KEY, OPENROUTER_MODEL. Template in .env.example.815bdc7)./api/integrations/v1/transactions/bulk with bearer auth. Spec: docs/integrations/ai-agent-push-transactions.md.@notionhq/client is in package.json deps but not wired into the current codebase.AGENTS.md — env, repo layout, bootstrap, gotchasdocs/README.md — architecture, features, integrations, testing, user guideDESIGN.md — design tokens, typography.cursor/skills/ — forms, error handling, E2E, caching, typing patternsdocs/todo.md in app repo