Intermediate guides.
For people who already ship. Claude Code workflows, deploys without downtime, Postgres in production, and the operational details that start to matter.
186 posts · page 4 of 8
Next.js Middleware Is Now Proxy: proxy.ts Explained
In Next.js 16, middleware.ts was renamed to proxy.ts and now runs on Node.js by default. What proxy does, the matcher config, common uses (auth redirects, rewrites, headers, CORS), the codemod to migrate, and why you must still check authorization inside every Server Function and route.
Next.js App Router vs Pages Router: Differences and Whether to Migrate
Next.js has two routers: the older pages/ directory and the newer app/ directory built on React Server Components. How routing, data fetching, layouts and API routes differ, which one new projects should use, and a sensible incremental migration path.
Message Queues Explained: When You Need One and Which to Use
A message queue lets one part of your system hand work to another without waiting. Queues vs pub/sub vs event streams, delivery guarantees, dead-letter queues, and an honest comparison of Postgres, Redis, RabbitMQ, SQS and Kafka for a small team.
Deploy to a VPS With GitHub Actions: Push to Main, Ship to Production
Automate deploys to your own server: run tests in GitHub Actions, then SSH in and run your deploy script — or build a Docker image and pull it. Deploy keys, secrets, known_hosts, environments with approval, rollbacks, and keeping the SSH key's power limited.
git bisect: Find the Commit That Broke Your App
Something worked last week and doesn't now. git bisect binary-searches your history to find the exact commit that introduced a bug in a handful of steps. Manual bisecting, automating it with git bisect run and a test script, skipping untestable commits, and using it with AI agents.
fail2ban: Automatically Ban IPs That Attack Your Server
fail2ban watches your logs for repeated failed logins and other abuse, then bans the offending IPs with the firewall. Install and configure jail.local, protect SSH and Nginx, check and unban IPs, write a simple custom filter, and know what fail2ban does and doesn't protect against.
Exponential Backoff and Jitter: Retrying Failed Requests Properly
When an API call fails with a timeout, 429 or 503, retrying immediately makes things worse. Exponential backoff waits longer after each failure, and jitter spreads retries out. Which errors to retry, Retry-After, a TypeScript implementation, idempotency, and retrying LLM API calls.
How to Evaluate LLM Outputs: Evals for AI Features in Your App
You can't improve an AI feature you can't measure. How to build an eval set from real inputs, the kinds of checks (exact match, code-based assertions, LLM-as-judge, human review), avoiding judge bias, running evals in CI, and tracking quality, cost and latency when you change prompts or models.
ESM vs CommonJS: import vs require and the Errors Between Them
JavaScript has two module systems. CommonJS uses require and module.exports; ES modules use import and export. How Node decides which a file is, and how to fix 'Cannot use import statement outside a module', 'require is not defined', ERR_REQUIRE_ESM and __dirname is not defined.
Docker Container Keeps Restarting: How to Find Out Why
A container stuck in 'Restarting' is crashing on start and being brought back by its restart policy. How to read exit codes (1, 126, 127, 137, 139, 143), get logs from a crash loop, override the entrypoint to look inside, and fix the usual causes: config errors, OOM kills, missing dependencies and failing healthchecks.
Docker Compose Networking: How Containers Talk to Each Other
How services in a Compose project find each other by name, why localhost doesn't work between containers, ports vs expose, custom and external networks, reaching the host from a container, connecting two Compose projects, and the security gotcha of published ports.
How to Deploy a FastAPI App to Production
Running uvicorn main:app --reload is for development. A production FastAPI deploy needs worker processes, a process manager or container, a reverse proxy with HTTPS, proper settings, migrations, and health checks. Step-by-step options for a VPS and Docker.
Database Normalization Explained: 1NF, 2NF, 3NF in Plain English
Normalization means storing each fact once, so updates can't leave your data contradicting itself. What 1NF, 2NF and 3NF actually require, with one example table taken through each step, the anomalies they prevent, and when deliberately denormalizing is the right call.
Claude Code Status Line: Show Context, Cost and Git Branch
The Claude Code status line is a bar at the bottom of the terminal that runs a script you choose with live session data — model, context usage, cost, rate limits, git branch. Set one up with /statusline or by hand, the JSON fields available, a full bash example, and performance tips.
The Claude Code Sandbox: Limit What Shell Commands Can Touch
Claude Code's built-in sandbox wraps the shell commands Claude runs in an OS-enforced boundary: writes limited to your project, network only to allowed domains. How to turn it on, auto-allow mode, allowWrite, denyRead, allowedDomains, excludedCommands, credential masking, and what runs outside it.
Claude Code Plugins: Install, Manage and Build Your Own
A Claude Code plugin bundles skills, subagents, hooks and MCP servers into one installable unit, distributed through marketplaces. How to install plugins and choose a scope, what an enabled plugin costs you in context, the official marketplace, sharing a team setup, and building your own with plugin.json.
Running Claude Code in a Dev Container
Put Claude Code inside a dev container so every command it runs happens in an isolated, reproducible environment instead of on your machine. Adding the official Dev Container Feature, persisting login across rebuilds, enforcing policy with managed settings, restricting network egress, and the limits of the protection.
The Claude Agent SDK: Building Your Own Agents on Claude Code's Engine
The Claude Agent SDK gives you the agent loop behind Claude Code as a library: file and shell tools, permissions, MCP, subagents and sessions. When to use it instead of the plain API or claude -p, a minimal TypeScript example, custom tools, permissions, and running it safely.
Certbot and Let's Encrypt: Free HTTPS for Nginx, Step by Step
Get a free HTTPS certificate from Let's Encrypt with Certbot and Nginx: install, issue for several domains, automatic renewal and how to test it, wildcard certificates with DNS challenges, rate limits, shorter certificate lifetimes, and fixing common Certbot errors.
BullMQ Tutorial: Background Jobs in Node.js With Redis
BullMQ is the most popular Redis-backed job queue for Node.js. Set up a queue and worker, retries with exponential backoff, delayed and repeatable jobs, concurrency and rate limiting, idempotency, graceful shutdown, monitoring, and when a Postgres queue is enough instead.
How to Build an MCP Server (TypeScript and Python)
Build a working Model Context Protocol server that gives Claude Code and other AI tools new abilities. Tools, resources and prompts explained, a TypeScript server with the official SDK and a Python one with FastMCP, connecting it to Claude Code, stdio vs HTTP transports, and designing tools agents use well.
How to Build an AI Agent: The Loop, the Tools, and the Guardrails
An AI agent is a model in a loop: it decides on an action, a tool runs it, the result goes back, repeat. Build one from scratch with the Claude API's tool use, then see when to reach for the Claude Agent SDK or other frameworks — plus stopping conditions, memory, cost control and safety.
Blue-Green vs Canary vs Rolling Deployments
Three ways to release a new version without taking your app down or betting everything on it working. How blue-green, canary and rolling deployments work, what each needs, how they handle database migrations, and a pragmatic approach for a small app on one or two servers.
API Versioning: How to Change an API Without Breaking Clients
Once other apps depend on your API, changes can break them. What counts as a breaking change, versioning strategies (URL path, headers, Stripe-style dated versions), evolving without versions, deprecation with Sunset headers, and a practical approach for small teams.