#architecture
11 pieces of content
How I Think About System Design
System design isn't about picking the best architecture. It's about making good decisions under constraints while leaving room to evolve.
Auditing My AI Systems: Patterns, Tradeoffs, and Gaps I Was Working Around
I catalogued every AI decision across three production systems and found a consistent pattern — along with five gaps I'd been working around instead of solving.
How I Built This Portfolio
I built this portfolio as a knowledge graph — cross-linked pages with build-time search, automatic backlinks, reader reactions, and continue reading — all on a static site. Here's the architecture behind it.
Building a Local PII Privacy Gate for AI Coding Assistants
How I built a hybrid regex + on-device LLM scanner that blocks prompts containing PII before they reach cloud APIs — zero data leaves the device.
On-Device vs Cloud LLM: A Practical Benchmark
Benchmarking Apple's on-device Foundation Models against cloud LLMs across commit message generation, code review, and text classification — latency, quality, cost, and privacy tradeoffs.
How to Build an LLM-Powered UI Generator
A technical deep dive into building a system where users type plain English and get live HTML mockups that match a specific design system — grounding, token budgets, streaming, and security.
Reducing LLM Token Usage by 44% with Selective Context Injection
RuleFlow — Dynamic Rule Engine in Node.js
A Drools-style rule engine where business logic runs on editable JSON rules instead of hardcoded conditionals — demonstrated with an airline loyalty program.
Building a Modular Rule Engine for Credit Decisioning
How I designed a plugin-based rule engine that automated credit decisions, reduced manual review by 30%, and made rule changes deployable in hours instead of sprints.
Correlation IDs Go in Middleware, Not App Code
Structured Logging Is a Library, Not a Guideline