Beyond the CSV: Statements as a Product Surface
Part 10 looks past today’s CSV importers at broker statements often PDF. The architecture below is directional: we are spelling out constraints and a credible pipeline, not announcing a finished PDF-...
Measuring Loop Velocity Without Portfolio Rows
/admin/analytics is an operator console—revenue, referrals, npm packages, viral email blast stats, Pocket Analyst usage metadata. It is not a SQL console into user holdings.
API surface: GET /api/ad...
Engineering the Viral Loop
We measure referral codes and events, not holdings. K-factor style thinking applies to clicks → conversions, instrumented in Firestore, without reading the user’s portfolio.
Ingest: POST /api/referral-event
app/api/re...
Prompt Grounding in a Stateless World
When we say “CFA-grade” in product language, we mean three engineering layers: domain-scoped system text, client portfolio summary, and server-injected live quotes—plus an optional attachment lane for paid use...
Local-First: The Browser as the Vault
“IndexedDB for everything” is a marketing shorthand. Engineers need the three real persistence lanes in this codebase: guest localStorage, authenticated cloud trades, and Zustand prefs-only—plus Firestore Inde...
Growth Truth: Handling the Referral Spike
When traffic spikes, what breaks first — routing, LLM quotas, or database write paths? Here is how we framed a real referral window against a stateless chat surface.
Headline traffic GA4
Figures below a...
Sanitization by Construction: The "Edge Compiler"
Regex-based PII stripping on arbitrary exports is fragile: one new column, one merged cell, one localization change—and you leak. We chose structural exclusion: the network never sees a free-form l...
Split-Brain: Analyst-Grade Reasoning Without Raw Transactions on the Server
To deliver analyst-grade answers without centralizing the transaction tape, we engineered a deliberate split-brain: the server never needs your raw history to answer “What...
The End of Data Export: Why the Cloud is a Compliance Trap
Privacy is not a feature you bolt on at the end — it is infrastructure. For anyone with real capital at stake, the sharp risk is often not “using AI” in the abstract; it is routing the ful...
Sovereign Intelligence: The Complete 25,000 Word Blueprint Download
This 12-part series has walked through the full architecture of Pocket Analyst—the local-first financial AI that keeps your data on your device and sends only a sanitized snapshot ...
The "Privacy vs. Utility" trade-off in FinTech AI is a false dichotomy. You just have to be willing to engineer a harder architecture. ️
Lately, I've had a lot of conversations with CTOs panicking about upcoming DORA regulations. They want to use fr...
In our Sovereign Intelligence series, we broke down the FinTech privacy gap. We argued that piping raw financial ledgers to centralized cloud LLMs is an architectural failure, and introduced the "Sanitized Snapshot" pattern as the alternative.
Many ...
Open Sourcing our Financial System Prompts Code Dump
This post gives implementers a high-signal reference: system prompt structure, key functions, and file paths. The why matters as much as the what.
System prompt outline minimal
1 Role: "You are...
The Roadmap: Moving from AI Chatbots to Autonomous Financial Agents
Today: user asks, model answers. Tomorrow: user asks, model proposes an action e.g. "Add AAPL to watchlist" and the user confirms. The roadmap: confirmation UI, audit log, no auton...
The Future of Finance is Client-Side AI
Many fintech products lock data in their own APIs and dashboards. Universal Import is a step toward user-owned data: the user exports, holds, and imports; the app is a tool that runs on their data.
From SaaS...
Flash vs. GPT-4o: Benchmarking latency for financial reasoning
We benchmarked Gemini Flash, Pro vs. OpenAI e.g. GPT-4o for financial Q&A. Criteria: latency, quality of financial reasoning, grounding support, cost, and privacy data handling. Gemini ...
Beyond Finance: Use Cases for Client-Side ETL
Any source that can export CSV can be supported. The same pipeline applies; only the header vocabulary and locale may differ.
Brokers, banks, crypto, tax tools
Traditional brokers US/UK/EU, banks, cry...
Economic Modeling: Running a free AI tier without going bankrupt
Gemini Flash free tier: low cost per token; suitable for most portfolio and market questions. Gemini Pro paid: higher capability and cost; for power users. We estimate cost per query ...
Security & Threat Modeling for Local Apps
Full CSV never touches your server. Here's what the design guarantees—and how we mitigate the rest.
What is never transmitted by design
Full CSV: Never sent to the server. Only headers and a small sample ...