← BlogTopic15 posts
#typescript
15 posts filed under #typescript.
Multi-Tenant SaaS With NestJS and Postgres RLS: What Held Up
Shared tables with Postgres RLS is the right default for most B2B SaaS. The policy, the role, the traps, and the hybrid escape hatch, from production systems.
15 min readHow to Test Your AI Coding Agent With Stripe Evals
Stripe's agents averaged 78.1% but passed strictly only 29.4% of the time. Here is how to run Forge yourself and read the number that predicts production.
12 min readZod-Validated LLM Output: The Repair Loop That Makes It Safe to Ship
Most tutorials still teach the deprecated generateObject path. Here is the Zod 4 + AI SDK 7 repair loop I run, with measured failures and the provider matrix.
16 min readAgent Framework vs Agent Harness: What I Would Build On in 2026
I build agents both ways. The framework route and the harness route, head-to-head: setup, debugging, churn, durability, and what I would build on in 2026.
14 min readHow to Control the Cost of an AI Agent: Budgets, Limits and Approvals
Why agent cost grows faster than turns, where the tokens go, and the controls that bound it: turn limits, hard budgets, caching, approvals and routing.
10 min readDo You Need an AI Agent Framework? LangChain.js vs Plain TypeScript
A framework is a purchase, not a default. How to decide between LangChain.js-style frameworks and a plain TypeScript loop, and how to migrate later.
11 min readGemini Omni 1.2 Flash in Next.js: The Setup and the Real Cost Per Clip
Omni 1.2 Flash generates 15-second clips with native audio at about $0.07 a second. The Next.js setup, the SDK gotcha, and the real per-clip cost.
BullMQ in NestJS: Retries, Idempotency and Dead-Letter Queues
Blind retries double-send emails and double-charge customers. The BullMQ setup I run in NestJS: jittered backoff, idempotent jobs, and a dead-letter queue.
15 min readScaling Socket.io Rooms in NestJS With the Redis Adapter
Two NestJS instances break Socket.io rooms: broadcasts only reach local sockets. The Redis adapter setup, sticky-session fix, and room pattern that fixes it.
13 min readTanStack AI vs Vercel AI SDK: The One I Would Ship
TanStack AI 1.0 vs Vercel AI SDK 7, tested hands-on: I ship the Vercel AI SDK by default. The 5 factors that decided it, and when TanStack wins instead.
16 min readYour AI Agent Needs No Framework: A 200-Line TypeScript Harness
I built my agent loop in plain TypeScript instead of adopting a framework. Here is the loop, the tool registry, the limits, and when a framework still wins.
10 min readCustom Hooks in React + TypeScript: Patterns Senior Devs Use, React 19
Nine production-ready React hooks in TypeScript, the race condition my own tests caught, renderHook testing, and the architecture behind them.
Shopify Global Catalog: Migrate from REST to MCP and UCP
How to move from Shopify's retired Global Catalog REST API to Global Catalog MCP: the endpoint map, a TypeScript client and the downstream-field audit.
11 min readPrisma vs Drizzle: How to Choose a TypeScript ORM
A durable way to choose between Prisma and Drizzle: abstraction level, SQL control, team skills, deploy target and database support. No version trivia.
4 min readZod as a Contract, Not a Comment
One Zod schema is your TypeScript type and your runtime validator. How I use Zod as the contract for forms, APIs and LLM output - and the bugs it deletes.
5 min read