
Our Blog
Explore our blog posts on web design, development, and digital marketing to stay up-to-date with the latest trends and strategies.
Found 112 blog posts
Why a Package Breaks in a CommonJS App: Field Notes on require(esm), the exports Map, and the Dual Package Hazard
We published a small ESM-only utility, and the first consumer to install it was a CommonJS service that threw ERR_REQUIRE_ESM on boot. These are our field notes on what require(esm) in Node.js 22.12 actually fixed, the exports condition order that quietly resolves to the wrong file, the dual package hazard that survives all of it, and the two CLIs we now run before every publish.
Why LLM Features Cost More Than They Should: Our Field Notes on Prompt Caching, Cache Breakpoints, and the Timestamp That Kills Every Hit
The token bill for one of our agent loops kept climbing after we enabled prompt caching, and the usage payload explained why: every request was a cache write and none was a cache read. These are our field notes on where the cache breakpoint belongs, the prefix changes that silently invalidate it, and the arithmetic behind choosing a five-minute or a one-hour TTL.
Why TypeScript Typechecks Get Slow: Our Field Notes on tsgo, Project References, and isolatedDeclarations
When a typecheck stops being part of the inner loop, our first instinct is usually wrong: the repository has not grown too big, it has grown too generic. We share how we measure tsc with --extendedDiagnostics before tuning anything, how we evaluate the Go-based tsgo native port, and when project references and isolatedDeclarations are worth the migration.
How We Test LLM Features: Golden Sets, LLM-as-Judge, and Eval Gates in CI
A prompt edit made for an unrelated reason started inventing order IDs, and every test in the repository still passed because nothing in CI was reading what the model said. These are our field notes on golden sets built from real production failures, deterministic checks before LLM-as-judge, and gating the build on pass-rate regression instead of a perfect score.
Why Your Next.js Client Bundle Is Bigger Than You Think: Barrel Files, optimizePackageImports, and the 'use client' Boundary
One 'use client' directive pulls a file's entire import graph into the browser bundle, and a barrel index.ts re-exporting two hundred modules is how that graph grows unnoticed. These are our field notes on deep imports, experimental.optimizePackageImports, sideEffects, and reading the next build route table honestly.
Focus Management in the Next.js App Router: How We Handle the Route Change That Loses Focus, inert, and Native dialog
The Next.js App Router announces client-side route changes to screen readers but never moves keyboard focus. These are our field notes on the fifteen-line RouteFocus component we ship in every App Router project, when to reach for inert instead of aria-hidden, and why the native dialog element only traps focus when it is opened with showModal().
Zero-Downtime Postgres Migrations: Expand/Contract, lock_timeout, and the ALTER TABLE That Queues Behind One Slow Query
A Postgres migration rarely takes an app down because the DDL is slow. It happens because ALTER TABLE waits for a lock and every query behind it waits too. These are our team's field notes on lock queues, the expand/contract pattern, table-rewriting DDL, and batched backfills.
npm Supply-Chain Hardening in 2026: Lifecycle Scripts, minimumReleaseAge, and the Postinstall We Stopped Trusting
npm lifecycle scripts execute arbitrary dependency code before an application ever starts. These are our team's field notes on disabling install scripts by default, adding a release-age cooldown so no freshly published version reaches a lockfile, and what npm provenance does and does not prove.
Multi-Tenant SaaS in the Next.js App Router: How We Handle Subdomain Middleware and the Cache Leak We Caught in Time
We break down how we architect multi-tenant SaaS on the Next.js App Router: resolving tenants in middleware without a database hit per request, tenant-scoped caching, and the Postgres row-level security backstop that fails closed when application code forgets to scope a query.
Hybrid Search in Postgres with pgvector: Our Field Notes on HNSW, tsvector, and Reciprocal Rank Fusion
pgvector is a Postgres extension that adds vector column types and approximate-nearest-neighbour indexes. We shipped a RAG retrieval pipeline on it, watched it miss exact error codes and SKUs, and fixed it by fusing vector similarity with Postgres full-text search using Reciprocal Rank Fusion. These are our notes on HNSW versus IVFFlat, the 2000-dimension index limit, and the WHERE clause that returned fewer rows than the LIMIT asked for.
Web Workers in the Next.js App Router: Our Field Notes on import.meta.url, DataCloneError, and What a Worker Cannot Fix
A Web Worker is a background JavaScript thread with no DOM access. We moved CSV parsing, image resizing, and a search index off the main thread in a Next.js App Router app — here is why a hoisted new URL() returns 404 in production, why class instances arrive without methods, and why React StrictMode left our team with two workers.
Turborepo in a Real Monorepo: Field Notes on Cache Misses, NEXT_PUBLIC Poisoning, and the tasks Key That Replaced pipeline
Turborepo is a task runner that hashes each script's inputs and replays cached outputs instead of re-running the work. We moved a two-app monorepo onto Turborepo 2 — here is why the cache never hit, why a cache hit once shipped staging URLs to production, and why --affected silently builds everything on a shallow CI clone.
Stay Updated
Subscribe to our newsletter for the latest insights on web design, development, and digital marketing.