Notes and essays
5 entries
Building credit-based AI products without breaking UX
How to design metered usage systems that stay transparent and trustworthy — from balance display to graceful degradation when credits run out.
TanStack Start + NestJS: architecture notes from production
Notes on splitting responsibilities between a TanStack Start frontend and a NestJS API — what to colocate, what to separate, and where the boundaries actually live.
Designing streaming UX for AI tools
Streaming text output looks simple until you think about partial renders, cancellation, errors mid-stream, and what happens when the model produces garbage.
Cloudflare R2 media delivery and image optimization
Building a media pipeline with R2 for storage, Workers for transformation, and signed URLs for access control — what works and what doesn't.
Why frontend architecture matters in AI SaaS
AI products have unusual data flow patterns — streaming, optimistic UI, partial states, long-running operations. The architecture decisions you make early determine how well you handle them.