#python
17 pieces of content
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.
Regex vs On-Device LLM for PII Detection: A 25-Case Benchmark
A comprehensive benchmark comparing regex pattern matching against Apple's on-device Foundation Models for PII detection — 52% F1 vs 100% F1, and why binary classification beats extraction.
Privacy-First Git Commit Message Generator
An on-device tool that analyzes git diffs and generates structured conventional commit messages — zero data leaves your machine.
Session Reuse Eliminates Hangs in Batch LLM Processing
Building a Live Terminal Dashboard for AI Coding Sessions
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
Building FastAPI Services on Kubernetes
How I structure FastAPI applications for Kubernetes deployment — from project layout to health checks, pod templates, and CI/CD.
Always Profile Before You Optimize
Optimizing a High-Throughput FastAPI Service
How I achieved 50% lower latency and 40% higher throughput on a critical FastAPI service through async pipelines, SQL optimization, and strategic caching.
Async Python in Production: What They Don't Tell You
Async improves throughput but introduces debugging complexity, connection pool pitfalls, and error handling surprises. Lessons from running async APIs at scale.
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
Kubernetes Pod Template Generator
A tool for generating production-ready Kubernetes pod templates with best practices baked in.
Structured Logging Is a Library, Not a Guideline
Restaurant Insights — NLP-Powered Dining Recommendations
A tool that finds nearby restaurants, analyzes reviews with NLP, and checks for parking — built in 3 days with APIs, then rebuilt in 3 minutes with AI prompts.
MindInChess — Chess Analysis App
A chess analysis app using Stockfish for blunder detection, accuracy scoring, and color-coded move insights with PGN upload and Chess.com/Lichess import support.