How to Build an MCP Server in 30 Lines of TypeScript
An MCP server is just a small program that lists tools and runs them when an AI asks. Build one in TypeScript in three steps and plug it into your editor.

Practical, diagram-first explanations you can read over coffee. 94 posts and counting.
Newest postAI makes the first 80% of a product wildly faster and cheaper—and can quietly make the last 20% slower if nobody owns the design. Here is the honest trade-off.
An MCP server is just a small program that lists tools and runs them when an AI asks. Build one in TypeScript in three steps and plug it into your editor.

MCP (Model Context Protocol) is a standard plug between AI apps and your tools. Learn how clients, servers, and tools work—and how to explain it in an interview.

AsyncLocalStorage in Node.js gives each request its own data that follows it through every await. Learn how it works and how Next.js cookies() uses it.

A Next.js memory leak where one setTimeout per SSR render kept finished requests in memory. How it was spotted, measured with heap snapshots, and fixed.

A database index works like the index at the back of a book. Learn how indexes make queries fast, what they cost, and how to explain them in an interview.

any vs unknown vs never in TypeScript: any skips the checks, unknown makes you check first, never means it can't happen. When to use each, with short examples.

Sessions vs JWT explained with a coat check and a wristband: who stores the login, why JWTs are hard to revoke, and which one to pick for a web app.

async vs defer on a script tag: both download without blocking, but async runs the moment it arrives and defer waits for the HTML, in order. Learn which to pick.

Short posts on one theme, meant to be read in order. Each part stands alone, and together they build the full picture.
Get new posts in your inbox
One email when a new post is out: short, diagram-first explanations of JavaScript, React and Next.js. No spam, unsubscribe any time.