GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - cubaseuser123/PocketPal---Gamified-Expense-Tracker-for-Gen-Z: Autonomous Financial Companion & Gamified Expense Tracker for Gen-Z

BranchesTags
Open more actions menu

Latest commit

 

History

106 Commits
106 Commits

Folders and files

NameName
Last commit message
Last commit date
.expo
.expo
 
 
.vscode
.vscode
 
 
apps
apps
 
 
datasets
datasets
 
 
detailed-docs
detailed-docs
 
 
docs
docs
 
 
packages
packages
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
.npmrc
.npmrc
 
 
.prettierrc
.prettierrc
 
 
.syncpackrc.json
.syncpackrc.json
 
 
.watchmanconfig
.watchmanconfig
 
 
README.md
README.md
 
 
TODO.md
TODO.md
 
 
Unsloth_Training_For_Pally.ipynb
Unsloth_Training_For_Pally.ipynb
 
 
docker-compose.yml
docker-compose.yml
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pnpm-workspace.yaml
pnpm-workspace.yaml
 
 
render.yaml
render.yaml
 
 
tsconfig.json
tsconfig.json
 
 
turbo.json
turbo.json
 
 

Repository files navigation

🚀 PocketPal

Autonomous Financial Companion & Gamified Expense Tracker for Gen-Z

Watch the Demo

React Native Express.js Vercel AI SDK Mistral AI


💡 The Core Philosophy

PocketPal is a gamified financial companion designed to fix the broken spending habits of Gen-Z. It is not a passive budgeting spreadsheet—it is an active, behavior-modifying engine.

The core behavioral loop is simple but powerful:

  1. Set Goals: Define a weekly saving goal (short-term) or a major milestone like a new MacBook (long-term).
  2. Save & Build Streaks: Every day you successfully save money or resist an impulse purchase, you earn a streak. Think of it as Snapchat streaks meeting FamPay.
  3. Earn Rewards: Maintaining longer streaks unlocks in-app rewards, coins, and badges.
  4. Gamify Everything: Restraint becomes a reward. Boss battles, 1v1 wagers, and daily spins make financial discipline addictive.

📱 Part 1: The App Ecosystem

PocketPal's frontend is a fully-featured React Native mobile application designed with behavioral psychology at its core.

  • Wallets (Real Money, Real Stakes): RBI-compliant PPI (Prepaid Payment Instrument) infrastructure via Cashfree & Setu. Users can instantly load money via UPI. Tier 1 allows for ₹10,000 limits without KYC, while Tier 2 unlocks up to ₹2,00,000.
  • The Arcade: This is the gamification hub. Users can participate in community Boss Battles (e.g., defeating the "Inflation Dragon" by collectively saving money), challenge friends in 1v1 Duels, and spend earned coins in the Coin Shop to buy Streak Shields or UI themes.
  • Goals & Tracking: Visual progress bars for every goal, automated categorized spending analytics, and subscription tracking to ensure users always know where their money is going.

🧠 Part 2: The AI & Agentic Architecture

The AI in PocketPal isn't a gimmick wrapper; it is deeply integrated into the user's financial lifecycle through multi-agent orchestration.

1. Pally: The Fine-Tuned Financial LLM

We fine-tuned a Mistral 7B model using Unsloth on a custom dataset specifically tailored for financial interactions and strict chatbot behavioral guidelines. (Note: While the custom fine-tuned weights have been trained and validated, the current live environment utilizes Gemini 2.0 Flash via the Vercel AI SDK due to hosting constraints for the 7B model).

2. Conversational Tool-Calling Agents

Pally is designed with strict Zero Hallucination constraints. It is equipped with a suite of 15 specialized backend tools.

  • When a user asks "Where did I spend most?", the agent doesn't guess. It intelligently routes the intent to a specific tool, executes a database query, retrieves the exact ₹ amount and percentage, and synthesizes a deterministic, data-backed response.

3. The Autonomous Notification Swarm

A proactive background agent scheduled via node-cron that runs every morning.

  • Context Injection: It analyzes the user's current financial state, active streaks, and goal proximity.
  • LLM Decision Engine: Based on the data, the LLM decides whether a notification is warranted, assigns a priority level, and generates a personalized push notification.
  • Constraints: To prevent notification fatigue, the agent is strictly bounded to generating messages <100 characters and is hard-capped at 1 push per day.

4. The Spending Guardian (Monitoring Agent)

An on-device monitoring system designed to intervene before a bad financial decision is made.

  • Contextual Awareness: Detects when the user opens known spending/delivery apps (like Swiggy, Zomato, or Myntra).
  • Real-Time Processing: Cross-references this real-time signal against the user's weekly budget and recent spending habits.
  • Proactive Nudge: Fires a high-priority intervention nudge to stop impulse buying, seamlessly tying back into the core loop by offering Arcade coins as a reward for restraint.

🏗️ Architecture & Tech Stack

PocketPal is structured as a Turborepo monorepo:

  • Mobile App: Expo, React Native, NativeWind (TailwindCSS for RN)
  • Backend API: Node.js, Express.js, MongoDB
  • AI & Agents: Vercel AI SDK, Gemini 2.0 Flash, Mistral 7B + Unsloth
  • Tooling: pnpm workspaces, ESLint, TypeScript

(Note: The apps/web directory contains legacy Next.js web dashboard code that is currently inactive in favor of the mobile-first strategy).


🛠️ Local Development Setup

Prerequisites

  • Node.js v20+
  • pnpm v8+
  • Android Studio / Xcode (for mobile builds)

1. Clone & Install

git clone https://github.com/cubaseuser123/PocketPal-Revamped.git
cd PocketPal-Revamped
pnpm install

2. Running the Apps

Backend API (Express.js)

pnpm dev --filter backend

Mobile App (Expo)

pnpm dev --filter mobile
# Or run natively:
cd apps/mobile
npx expo run:android  # or run:ios

3. Monorepo Commands

Command Action
pnpm dev Run active apps concurrently
pnpm build Build the entire monorepo
pnpm lint Run ESLint across all packages
pnpm update -r Update dependencies globally

🤝 Contributing

  1. Create a feature branch
  2. Make your changes
  3. Run pnpm lint and pnpm build
  4. Submit a Pull Request

Built for the Mastek Project Deep Blue Season 11.

About

Autonomous Financial Companion & Gamified Expense Tracker for Gen-Z

pocket-pal-revamped-web.vercel.app/

Topics

expohuggingfacemistral-7breactnativevercelaisdk

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.