Skip to content

Glossary ​

Look up a term in one line, then go to the chapter that owns it.

In this glossary: the terms a reader is most likely to arrive without · one sentence each · a chapter reference where one chapter owns the idea

Terms are alphabetical. Where a chapter is named, that chapter is the definitive treatment — the line here is a reminder, not a substitute. Part VII's vocabulary is over-represented on purpose: it is the newest material in the book and the part most readers meet cold.

A ​

ABAC — Attribute-based access control: permissions decided by attributes of the user, resource and context rather than by a fixed role. OAuth, OIDC and Authorisation

AbortController — The browser's cancellation primitive; its signal is passed to fetch and other APIs so a request can be aborted. Promises, Async/Await and Errors

Accessibility tree — The structure assistive technology reads, derived from the DOM plus roles, names and states. The Accessibility Tree

Agent — A system that decides which tools to call and in what order, rather than following a fixed script. What an Agent Is, and When to Use More Than One

Alerting — Notifying a human that a service-level objective is at risk; distinct from monitoring, which only records. Metrics, Dashboards and Alerting

ARIA — Accessible Rich Internet Applications: attributes that add semantics HTML cannot express. The first rule is not to use it. ARIA, and When Not to Use It

Artefact — The single build output promoted unchanged through every environment. Rebuilding per stage means testing something you did not ship. CI/CD Fundamentals

AVIF — An image format at roughly half the size of JPEG for the same visible quality, needing a fallback. Caching and Asset Delivery

B ​

Backpressure — Slowing a producer when a consumer cannot keep up, rather than buffering without limit. Node.js Performance, Streams and Scaling

BFF — Backend for frontend: a thin server owned by the frontend team that shapes upstream data for one client. Route Handlers and the BFF

Blue-green deployment — Running two production environments and switching traffic between them, so rollback is a switch rather than a redeploy. Deployment Strategies

Brotli — A compression algorithm about 5% better than gzip on text, and the default on every major CDN. Loading, Code Splitting and Bundle Budgets

C ​

Cache invalidation — Deciding when a cached entry has become wrong. The hard half of caching. Caching and Asset Delivery

CAP theorem — Under a network partition a distributed store can preserve consistency or availability, not both. Reliability, Consistency and CAP

CDN — A network of edge servers that serve cached responses close to the user. Content Delivery Networks

Chunk — One output file from a bundler, produced by a split point such as a route or a dynamic import. Loading, Code Splitting and Bundle Budgets

Chunking — Splitting source documents into retrievable pieces before embedding them. Chunk boundaries decide what retrieval can find. Ingestion and Chunking

CLS — Cumulative Layout Shift: how much visible content moves unexpectedly. Good is under 0.1. Core Web Vitals

Closure — A function plus the variables it captured from where it was defined. Scope and Closures

Code splitting — Emitting several bundles so a page loads only the code it needs. Loading, Code Splitting and Bundle Budgets

Content hash — A hash of a file's contents placed in its filename, which is what makes a year-long cache safe. Caching and Asset Delivery

Context engineering — Deciding what goes into a model's context window, in what order, within a token budget. Context Engineering

Context window — The maximum tokens a model can attend to in one request, covering prompt and output together. How LLMs Behave and How to Choose One

Contract testing — Checking that a consumer's expectations of an API still match what the provider returns. End-to-End, Visual and Contract Testing with Playwright

CORS — Cross-origin resource sharing: the response headers that let a browser expose a cross-origin response to script. Credentials, Sessions, CORS and CSRF

Cosine similarity — The similarity measure between two embedding vectors, based on the angle between them. Embeddings, Vector Stores and Retrieval

CSP — Content Security Policy: a header restricting which sources a page may load or execute. Content Security Policy and Security Headers

CSR — Client-side rendering: the server sends a shell and the browser builds the page. The Rendering Spectrum and the Cost of Hydration

CSRF — Cross-site request forgery: another site causing an authenticated request from the user's browser. Credentials, Sessions, CORS and CSRF

Cursor pagination — Paging by an opaque pointer to the last row seen, which does not skip or duplicate rows under concurrent writes.

D ​

Debounce — Running a handler only after events stop arriving. For cases where only the last value matters. Performance, Transitions and the Compiler

Declarative rollback — Reverting by redeploying a known-good artefact rather than by undoing changes. Data migrations are the part that does not roll back. Deployment Strategies

Design system — Tokens plus a component library plus the contract governing their versioning. Design Systems, Dependencies and Upgrades

Design token — A named design decision — a colour, a spacing step — that themes and components consume. Design Systems, Dependencies and Upgrades

Discriminated union — A union of object types sharing a literal field, which lets the compiler narrow exhaustively. TypeScript Type Guards

DORA metrics — Deployment frequency, lead time for changes, change failure rate and time to restore. Ways of Working and Engineering Culture

E ​

Edge runtime — A lightweight isolate running Web-standard APIs in many regions; no filesystem, no raw TCP. Express, Hono and Edge Runtimes

Embedding — A vector representation of text whose geometry encodes meaning, so similar text sits close together. Embeddings, Vector Stores and Retrieval

ETag — A fingerprint of a response body that lets a server answer "unchanged" with a 304 and no payload. Caching and Asset Delivery

Eval — A repeatable test of model output against a fixed dataset, producing a number you can compare across changes. Evals, Retrieval Metrics and Error Analysis

Eventual consistency — Replicas converge on the same value given time, but a read may return a stale one. Choosing a Datastore and Replicating It

F ​

Fake — A working but simplified stand-in for a dependency, such as an in-memory store. Testing Strategy

Feature flag — A runtime switch that separates deploying code from releasing behaviour. Deployment Strategies, Rollback and Feature Flags

Few-shot prompting — Including worked examples in the prompt so the model infers the pattern. Prompting as Engineering

FOIT / FOUT — Flash of invisible text and flash of unstyled text: the two ways a late web font can fail. Caching and Asset Delivery

Function calling — See tool calling.

G ​

Golden set — A fixed, curated set of inputs with known-good outputs, used as the baseline for evals. Evals, Retrieval Metrics and Error Analysis

Grounding — Supplying retrieved source material so an answer can be checked against something. Embeddings, Vector Stores and Retrieval

Guardrail — A check on model input or output that blocks or rewrites it before it reaches a user or a tool. Guardrails and Safety

H ​

Hallucination — Confident output unsupported by the model's inputs. A retrieval or eval problem before it is a prompting one. How LLMs Behave and How to Choose One

Hydration — Attaching event handlers and state to server-rendered HTML. Main-thread work proportional to the tree. The Rendering Spectrum and the Cost of Hydration

Hybrid search — Combining vector similarity with keyword search, because each finds what the other misses. Embeddings, Vector Stores and Retrieval

I ​

Idempotency — A request that can be retried without changing the result beyond the first application. REST Best Practices and Versioning

Immutable (cache) — A Cache-Control directive telling the browser a URL's content will never change, so it need not revalidate. Caching and Asset Delivery

INP — Interaction to Next Paint: how long from an interaction to the next painted frame, across all interactions. Replaced FID in 2024. Core Web Vitals

IntersectionObserver — A browser API reporting when an element approaches the viewport, far cheaper than a scroll listener. Loading, Code Splitting and Bundle Budgets

Isolate — A fresh JavaScript context inside an already-running runtime; the reason edge cold starts are near-zero. Express, Hono and Edge Runtimes

ISR — Incremental static regeneration: serving a static page and rebuilding it in the background after a set interval. Rendering in Next.js

J ​

JWT — JSON Web Token: a signed, self-describing token. Stateless and therefore hard to revoke. Credentials, Sessions, CORS and CSRF

L ​

LCP — Largest Contentful Paint: when the largest visible element finished rendering. Good is under 2.5 seconds. Core Web Vitals

LLM-as-judge — Using a model to score another model's output against a rubric, calibrated against human labels. Evals, Retrieval Metrics and Error Analysis

Long task — Main-thread work over 50 ms, which the browser cannot interrupt and which therefore delays interaction. Performance, Transitions and the Compiler

M ​

MCP — Model Context Protocol: a standard interface for exposing tools and data to a model client. Model Context Protocol

Memoisation — Caching a computation or a component render against its inputs. A targeted fix, not a default. Performance, Transitions and the Compiler

Micro-frontend — Splitting one application into independently deployable pieces composed at runtime. Solves an organisational problem, not a technical one. Micro-Frontends

Middleware — A function in an ordered pipeline that may modify a request, respond, or pass it on. Express, Hono and Edge Runtimes

Monorepo — One repository holding several packages, with a task graph and caching to keep builds affordable. Monorepos

Mutation testing — Introducing small changes to code and checking whether any test fails; the metric coverage is mistaken for. End-to-End, Visual and Contract Testing with Playwright

N ​

N+1 query — One query per row of a previous result, instead of one query for all of them. The standard GraphQL failure. GraphQL, tRPC and Typed API Choices

Nullish coalescing — ??, which falls back only on null or undefined, unlike ||. Data Types, Variables and Built-ins

O ​

OAuth 2.1 — A delegation framework: a user authorises an application to act on their behalf without sharing a password. OAuth, OIDC and Authorisation

OIDC — OpenID Connect: an identity layer on OAuth, and the source of the short-lived tokens a pipeline should use instead of static keys. OAuth, OIDC and Authorisation

Optimistic update — Applying a change in the UI before the server confirms it, with a defined rollback. Server State

P ​

Partial prerendering — Serving a static shell immediately and streaming the dynamic parts into it. Rendering in Next.js

Prefetch — Fetching a resource during idle time at lowest priority, for a navigation that will probably happen. Loading, Code Splitting and Bundle Budgets

Preload — Fetching a resource the current page needs at high priority, because the parser would find it late. Loading, Code Splitting and Bundle Budgets

Progressive enhancement — Building so the core function works without JavaScript, then improving it where available. Actions and Forms

Prompt injection — Untrusted text in a model's context changing its behaviour. The discipline's defining vulnerability. Prompt Injection

Q ​

Query plan — The database's chosen strategy for a query. Reading one beats guessing at indexes. Indexes, Query Plans, ORMs and Migrations

Quorum — The number of replicas that must acknowledge a read or write for it to count. Choosing a Datastore and Replicating It

R ​

RADIO — Requirements, Architecture, Data model, Interface, Optimisations: the structure of a design round. Driving the Design Round, Backend and Frontend

RAG — Retrieval-augmented generation: retrieving relevant source text and putting it in the prompt. When RAG, When Fine-Tune, When Neither

RBAC — Role-based access control: permissions attached to roles, and roles to users. OAuth, OIDC and Authorisation

Reranking — Reordering retrieved candidates with a more expensive, more accurate model before they reach the prompt. Embeddings, Vector Stores and Retrieval

RSC — React Server Components: components that render on the server and ship no JavaScript for themselves. Server Components and Client Components

RUM — Real user monitoring: performance data collected from actual visits, as opposed to a lab run. Measuring in Production

Runes — Svelte 5's explicit reactivity primitives, replacing compiler-inferred reactive statements. The Runes Model, Components and Snippets

S ​

satisfies — A TypeScript operator that checks a value against a type without widening it, keeping literal types. TypeScript at Scale

Semantic versioning — major.minor.patch, where a major signals a breaking change. A promise, not a guarantee. Design Systems, Dependencies and Upgrades

Server Action — A function marked to run on the server, callable from client code as if it were local. Server Actions and Mutations

Service worker — A programmable proxy between a page and the network, and the one cache layer you cannot purge from the server. Service Workers, Caching and Offline

Sharding — Splitting one dataset across independent stores by a key, trading joins for capacity. Sharding and Transactions at Scale

Signal — A reactive value that tracks its own dependents, so an update recomputes only what read it. Client State and Signals

SLO — Service level objective: a target for an indicator over a window, such as 99.5% crash-free sessions. Measuring in Production

Source map — A mapping from built output back to source, required to make a minified production stack trace readable. Measuring in Production

SSE — Server-sent events: a one-way stream of typed events over HTTP, with resumability. Real-Time and Streaming APIs

SSG — Static site generation: rendering to HTML at build time. The Rendering Spectrum and the Cost of Hydration

SSR — Server-side rendering: rendering to HTML per request. The Rendering Spectrum and the Cost of Hydration

STAR — Situation, Task, Action, Result: the structure of a behavioural answer. The STAR Framework

Stale-while-revalidate — Serving a cached value immediately and refreshing it in the background. Caching and Asset Delivery

Streaming — Sending a response in pieces as they become ready, so the first bytes paint before the slowest data resolves. Streaming HTML

Structured output — Constraining a model to emit data matching a schema, rather than prose to be parsed. Structured Output

Stub — A test double returning canned data, with no assertion about how it was called. Testing Strategy

Suspense — A React boundary that renders a fallback while a child is waiting, and the mechanism streaming uses. Suspense, Streaming and Error Boundaries

T ​

Temperature — A sampling parameter controlling output randomness; near zero for extraction, higher for generation. How LLMs Behave and How to Choose One

Throttle — Running a handler at most once per interval. For cases where a steady sample matters. Performance, Transitions and the Compiler

Token — The unit a model reads and bills in: a few characters, not a word. How LLMs Behave and How to Choose One

Tool calling — A model returning a request to invoke a named function with arguments, which your code executes. Tool Calling and the Tool Surface

Tree shaking — Removing exports that are imported but never used, which needs ES modules and no import-time side effects. Loading, Code Splitting and Bundle Budgets

tRPC — A way to derive a typed client directly from a TypeScript server's own types, with no schema. GraphQL, tRPC and Typed API Choices

V ​

Vector store — A database indexed for nearest-neighbour search over embeddings. Embeddings, Vector Stores and Retrieval

verbatimModuleSyntax — A TypeScript flag requiring import type for type-only imports, so erasure is explicit in the source. TypeScript at Scale

Virtualisation — Rendering only the visible rows of a long list and faking the rest with a spacer. Performance, Transitions and the Compiler

Visual regression — Comparing rendered screenshots against a baseline, for failures no assertion can express. End-to-End, Visual and Contract Testing with Playwright

W ​

Web Vitals — Google's three user-centred metrics: LCP, INP and CLS, judged at the 75th percentile of real visits. Core Web Vitals

WebSocket — A persistent two-way connection established by upgrading an HTTP request, which discards the HTTP request middleware you relied on. Real-Time and Streaming APIs

Workspace protocol — A dependency specifier resolving to a package in the same repository rather than to the registry. Monorepos

Z ​

Zero-shot prompting — Asking for the task with instructions but no worked examples. Prompting as Engineering

The whole book, free to read. Generated from the manuscript on every change.

Your progress

Tick each chapter in the sidebar once you have read and understood it. Your name and email keep the ticks on any device.

Your name and email are stored to save your progress. Nothing else is done with them.