Blog & Articles

Insights on design, development, and technology from my experience building digital products.

How to Build an MCP Server for Browser Automation: From STDIO to Headless Chromium
AI Engineering14 min read

How to Build an MCP Server for Browser Automation: From STDIO to Headless Chromium

A hands-on breakdown of building @amitnarw/web-mcp: protocol lifecycle, managing isolated browser tabs, bidirectional JSON-RPC, and securing agent execution.

How I Get AI Coding Agents to Build Better Frontends: Context, Rules, and Design Systems
AI Engineering12 min read

How I Get AI Coding Agents to Build Better Frontends: Context, Rules, and Design Systems

Why naive agent prompts yield messy CSS, and how structured token systems, AGENTS.md, visual verification loops, and deterministic component contracts produce production-ready UI.

How to Make AI Agents Understand Your Existing Codebase Before Coding
AI Engineering11 min read

How to Make AI Agents Understand Your Existing Codebase Before Coding

Stop agent hallucinations on existing projects: context budgeting, AST indexing, architecture maps, and deterministic repository packing.

Next.js 16: Turbopack Maturity, Server Action Security, and AI-Ready Architectures
Next.js12 min read

Next.js 16: Turbopack Maturity, Server Action Security, and AI-Ready Architectures

A factual deep-dive into Turbopack production builds, fine-grained cache life directives, V8 compile cache improvements, and building agent-ready endpoints.

Technical Analysis: The LiteLLM Supply Chain Attack & CI/CD Pipeline Hardening
Security11 min read

Technical Analysis: The LiteLLM Supply Chain Attack & CI/CD Pipeline Hardening

A forensic analysis of the TeamPCP security incident: how a compromised CI/CD dependency bypassed static checks, harvested environment variables, and how to defend AI gateways.

Next.js for Modern Search: Technical SEO, JSON-LD Schemas, and AEO Readiness
React/SEO12 min read

Next.js for Modern Search: Technical SEO, JSON-LD Schemas, and AEO Readiness

How to structure Next.js App Router applications for traditional search engines and AI answer engines using verified structured data and dynamic sitemaps.

Redis + BullMQ: Architecting Bulletproof Distributed Job Queues in Production
Backend14 min read

Redis + BullMQ: Architecting Bulletproof Distributed Job Queues in Production

A production engineering guide to Lua-backed atomic state transitions, sandboxed Node.js worker pools, backoff retry policies, and telemetry with BullMQ.

PostgreSQL Performance: AIO Internals, B-Tree Skip Scans, and UUIDv7 Indexing
Database13 min read

PostgreSQL Performance: AIO Internals, B-Tree Skip Scans, and UUIDv7 Indexing

Real-world tuning for high-throughput Postgres: Linux io_uring asynchronous I/O, skip scan query planner mechanics, and eliminating B-tree fragmentation with sequential UUIDv7.