Skip to content
robindev2007Public

About

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

41 Commits

Folders and files

Repository files navigation

Pocket

Pocket App Icon

Pocket is a full-stack, personal expense, cash-flow, and debt tracking ecosystem.

Structure • Mobile App • Backend Server • Architecture • Roadmap


📁 Repository Structure

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

📱 App (Flutter Client)

  • Location: app/
  • Tech Stack: Flutter, Dart, GetX, Shared Preferences (window.localStorage on 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 #3D83F5 theme, and light/dark modes.

⚙️ Server (Bun / Express Backend)

  • 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 AppError handling.

📖 Architecture & Sync Protocol

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


🚀 Quick Start

1. Run the Flutter App

cd app
flutter pub get
flutter run

2. Run the Backend Server

cd server
bun install
bun run dev

📄 License

This project is open-source and available under the MIT License.

About

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages