A personal finance, multi-wallet wealth management, and smart budgeting web application engineered to run 100% on Cloudflare's serverless edge ecosystem (Free-tier friendly, zero egress fees, edge latency < 50ms).
- Edge Runtime: Cloudflare Pages & Cloudflare Workers Functions (
/functions/api/[[route]].ts) - API Framework: Hono v4 with CORS, D1 bindings, and type-safe routing
- Database: Cloudflare D1 (SQLite Edge) with Drizzle ORM
- Object Storage: Cloudflare R2 for receipt and slip photos
- Caching: Cloudflare KV for FX currency rates and session data
- Automation: Cloudflare Cron Triggers for scheduled recurring bills and subscriptions
- AI Receipt Scanner: Cloudflare Workers AI / Gemini for automatic OCR receipt parsing
- Frontend SPA: React 19, TypeScript, Tailwind CSS, Lucide Icons, Zustand, Recharts
- Information Architecture & Dashboard:
- Soft-slate financial theme (
#F4F7FAcanvas,#12C48Bbrand teal,#F55353alert red,#324C5Bslate text). - Global Navbar with active wallet dropdown context switcher.
- Quick Add transaction modal with multi-mode switcher (
Expense,Income,Transfer).
- Soft-slate financial theme (
- Multi-Wallet & Account Containers:
- Support for Cash, Checking, Savings, Credit Cards, and Crypto wallets.
- Real-time atomic double-entry wallet-to-wallet fund transfers.
- Smart Budgets:
- Multi-category monthly spending caps with live pacing indicators (green -> amber -> red threshold warnings).
- Data Visualization:
- Cash Flow Dynamics: Daily income inflow (green) vs outflow (red) bar chart.
- Expense Breakdown: Donut chart with centered total and ranked category spending breakdown with % bars.
- CSV Import & AI Receipt Scanning:
- Drag & drop PapaParse CSV importer for bank statements and exported data.
- Camera/image receipt extraction assistant.
npm install# Pure frontend development with local storage fallback
npm run dev# Build frontend assets
npm run build
# Run local Cloudflare Pages dev server with D1, KV, and R2 bindings
npm run cf:devnpx wrangler d1 create simplicity-d1Copy the database_id from the output into your wrangler.jsonc.
npx wrangler d1 migrations apply simplicity-d1 --remotenpx wrangler pages deploy distIn your Cloudflare Dashboard:
- Navigate to Zero Trust > Access > Applications.
- Add an application protecting your Simplicity Pages custom domain (e.g.
money.yourdomain.com). - Set policy to allow only your personal Google / email address with OTP.
- Done! Zero-code enterprise authentication at the edge.
The repository includes a ready-to-use GitHub Actions workflow (.github/workflows/deploy.yml):
- Pull Requests to
main: Runs build and TypeScript validation. - Push to
main: Automatically runs D1 migrations and deploys to Cloudflare Pages.
Go to your GitHub repository Settings > Secrets and variables > Actions and add:
CLOUDFLARE_API_TOKEN: Cloudflare API Token withCloudflare Pages: EditandD1: Editpermissions (Create via Cloudflare Dashboard > My Profile > API Tokens > Create Token).CLOUDFLARE_ACCOUNT_ID: Your Cloudflare Account ID (Found in the Cloudflare Dashboard right sidebar on any domain overview page).