{"slug": "i-let-gemma-4-analyze-my-credit-card-statements-so-i-wouldn-t-have-to", "title": "I let Gemma 4 analyze my credit card statements so I wouldn't have to", "summary": "The article describes Swipey, a local-first, privacy-focused web app that uses Google's Gemma 4 AI model to analyze credit card spending across multiple banks. By uploading CSV transaction files from Chase or Capital One, the app generates monthly digests with spending spotlights, patterns, suggestions, and editable transaction groupings. The author notes that Gemma 4 served as a capable open-source replacement for Claude in this workflow, successfully categorizing transactions and surfacing spending insights.", "body_md": "This is a submission for the Gemma 4 Challenge: Build with Gemma 4\nSwipey, a local-first, privacy focused web app for people juggling multiple credit cards across multiple banks. Drag in a CSV of transactions from Chase or Capital One, pick a month, and Gemma 4 produces a digest of that month's spending: a spotlight, a few patterns, and a few suggestions. It also proposes \"groups\" that bundle similar transactions and sum the spend, which you can edit inline.\nThe problem: I have four credit cards. I enjoy collecting credit card reward points (anyone else?!) to help subsidize travel costs 1. This usually means chasing different category bonuses on each (one for dining, another for travel, a third for everything else). Past two or three cards, no single bank app shows you the whole picture, and the interesting questions (\"what was my biggest category this month?\", \"how does this compare to last month?\") get hard to answer.\nThe first version shipped transaction-level data to Claude every month. Swipey on Gemma 4 keeps the same workflow but runs inference on Cloudflare Workers AI.\nNote: Transaction data was mocked for demo purposes\nMonthly insights digest (spotlight, patterns, suggestions)\nTransaction grouping that bundles similar merchants/themes and sums their spend\nA local-first, privacy-focused way to manage credit card spend across multiple banks, built with Next.js and PostgreSQL.\nSupports Chase and Capital One CSV exports.\n⚠️ Work in progress, local use only. This project is intended to run on your own machine against a local database. API routes have no authentication. If hosted, anyone who can reach the server can read or modify your transactions. The Docker Compose setup ships with default dev credentials that are not safe for any deployed environment. Don't expose this to the public internet as-is.\nModel: @cf/google/gemma-4-26b-a4b-it\n(the 26B MoE variant) on Cloudflare Workers AI. This is the only Gemma 4 variant Cloudflare hosts as of May 2026, but here's how I would have picked between variants:\nOne caveat during the migration: Gemma 4 needed a stricter setup than Claude to emit my parser's format reliably. The fix was a system prompt insisting on the exact format, plus wrapping the user prompt in XML with an <output>\nblock showing the shape to mirror. Since migration, every run has parsed cleanly.\nWhat stood out most is how capable open-source models like Gemma 4 have become at the kind of work Swipey leans on: categorizing/grouping transactions, summarizing a month of spend, and surfacing patterns. For this use case, Gemma 4 was a quality drop-in replacement against Claude. As these open-source models keep improving, I expect that gap to keep narrowing.\nSwipey has already surfaced spending habits I didn't even think of to track. It's an incredibly exciting time to see how AI-powered features augment into existing workflows and surface insights I would have otherwise missed.\nNow if you'll excuse me, Gemma 4 has some thoughts about my dining out habits that I have to reflect on. Cya!\nCareful. This only works if the balance is paid off in full each month. Otherwise the interest eats the perks many times over. The rewards stack up to something real if done responsibly. ↩", "url": "https://wpnews.pro/news/i-let-gemma-4-analyze-my-credit-card-statements-so-i-wouldn-t-have-to", "canonical_source": "https://dev.to/simonwu/i-let-gemma-4-analyze-my-credit-card-statements-so-i-wouldnt-have-to-4498", "published_at": "2026-05-24 05:44:43+00:00", "updated_at": "2026-05-24 06:01:25.677676+00:00", "lang": "en", "topics": ["artificial-intelligence", "machine-learning", "large-language-models", "developer-tools", "data"], "entities": ["Gemma 4", "Cloudflare Workers AI", "Chase", "Capital One", "Next.js", "PostgreSQL", "Claude", "Swipey"], "alternates": {"html": "https://wpnews.pro/news/i-let-gemma-4-analyze-my-credit-card-statements-so-i-wouldn-t-have-to", "markdown": "https://wpnews.pro/news/i-let-gemma-4-analyze-my-credit-card-statements-so-i-wouldn-t-have-to.md", "text": "https://wpnews.pro/news/i-let-gemma-4-analyze-my-credit-card-statements-so-i-wouldn-t-have-to.txt", "jsonld": "https://wpnews.pro/news/i-let-gemma-4-analyze-my-credit-card-statements-so-i-wouldn-t-have-to.jsonld"}}