Hi, I'm Vadim Alakhverdov
Software developer writing about JavaScript, web development, and the tools that make us productive.
Recent Posts
Wednesday 18/03/2026
· 10 min readStructured Output with Zod: Force Any LLM to Return Typed JSON
Stop parsing messy LLM text with regex. Learn how to use Zod schemas to get reliable, typed JSON from Claude, OpenAI, and Vercel AI SDK — with validation, error recovery, and nested schemas.
Wednesday 18/03/2026
· 12 min readHow to Build an MCP Server in TypeScript from Scratch
Learn how to build a Model Context Protocol (MCP) server in TypeScript that connects a PostgreSQL database to any LLM client — with tools, resources, and Streamable HTTP transport.
Wednesday 04/03/2026
· 14 min readHow to Test AI Features: Unit Testing LLM-Powered Code
Learn practical patterns for testing LLM-powered TypeScript code — mocking AI APIs, snapshot testing non-deterministic outputs, eval frameworks, and assertion strategies with Vitest.
Monday 02/03/2026
· 11 min readBuild a Slack Bot That Answers Questions About Your Codebase
Build an AI Slack bot that indexes your codebase and answers questions like 'where is the auth logic?' — with full TypeScript code using embeddings and Claude.
Friday 27/02/2026
· 12 min readHow to Cache AI Responses Without Breaking Your App
Learn how to cache AI API responses to cut costs and latency — exact match, semantic similarity, and prompt fingerprinting strategies with TypeScript and Redis.
Wednesday 25/02/2026
· 9 min readThe Real Cost of Running an AI Feature in Production (With Math)
Break down the real cost of AI API calls in production — token math for chatbots, RAG, and summarization, plus a TypeScript cost calculator and optimization tips.
Tuesday 24/02/2026
· 11 min readHow to Build an AI-Powered Form That Extracts Data from PDFs
Build a Next.js form that uploads a PDF, sends it to Claude for structured data extraction, and renders editable fields — full working code from upload to form.
Friday 20/02/2026
· 12 min readBuild a Multi-Step AI Agent with Tool Use in TypeScript
Build a TypeScript AI agent that calls tools, chains decisions, and solves multi-step tasks using Claude's tool_use API — full working agent loop included.
Wednesday 18/02/2026
· 12 min readHow to Handle AI API Rate Limits and Errors in Production (TypeScript)
Production-ready TypeScript patterns for handling AI API rate limits — exponential backoff, request queues, token budgets, and graceful degradation you can copy-paste.
Tuesday 17/02/2026
· 8 min readBuilding an AI Code Review Bot with Claude and GitHub Actions
Build a GitHub Action that automatically reviews pull requests using Claude — complete working workflow YAML and TypeScript script you can add to any repo.
Stay updated
Get notified when I publish new posts. No spam, unsubscribe anytime.