Pocket is a full-stack, personal expense, cash-flow, and debt tracking ecosystem.
Structure • Mobile App • Backend Server • Architecture • Roadmap
This repository is organized as a clean, unified Monorepo:
pocket/
├── app/ # Flutter Mobile & Web Client (Offline-First, GetX)
├── server/ # Bun + Express 5 + TypeScript + Prisma 7 Backend
├── SYSTEM_DESIGN.md # System Architecture, Database Design & Delta Sync Protocol
├── TODO.md # Feature Roadmap & Implementation Checklist
└── README.md # Root Documentation
- Location:
app/ - Tech Stack: Flutter, Dart, GetX, Shared Preferences (
window.localStorageon Web), Google Fonts (Plus Jakarta Sans). - Core Features:
- ⚡ Local-First & 100% Offline Capable: Runs smoothly without internet; syncs seamlessly when online.
- 💰 Total Cash & Real Adjusted Balance: Raw cash-in-hand alongside net balance factoring in loans.
- 🤝 Two-Way Debt Management: Track who owes you money vs. who you owe, with partial/full repayment tracking.
- 📊 Period Spending Visualizer: Clean donut chart for Week, Month, Year, and All-time periods.
- 🎨 Minimal Borderless Design: Flat surfaces, custom
#3D83F5theme, and light/dark modes.
- Location:
server/ - Tech Stack: Bun runtime, Express 5, TypeScript, Prisma 7 with PostgreSQL adapter (
pg), SWC + Jest. - Core Features:
- 🔐 Google OAuth & JWT: Cryptographically verified Google tokens and secure 7-day app JWTs.
- 🔄 Delta Sync Protocol: Monotonic version-tracked sync (
syncVersion) avoiding payload bloat. - 🔢 Strict Financial Precision: Uses PostgreSQL
Decimal(14, 2)to eliminate floating-point rounding errors. - 🛡️ Defensive Architecture: Vertical slice / feature-first design with Zod request validation and centralized
AppErrorhandling.
For the complete architectural design, database schemas, and the client-server Delta Sync Protocol, see:
👉 SYSTEM_DESIGN.md
For current development progress and the feature checklist:
👉 TODO.md
cd app
flutter pub get
flutter runcd server
bun install
bun run devThis project is open-source and available under the MIT License.