Changelog
What's New
Every foundation, guide, and pattern on the site, newest first.
July 2026
- Pattern Response Regeneration Users can re-run a prompt for a different response, and the app keeps each earlier attempt as a variant they can switch back to.
- Pattern Stop Generation A stop button aborts a streaming model response with an AbortController, keeps the partial text, and stops the work on the server too.
June 2026
- Pattern Message Thread Storing a conversation as an ordered list of messages, each with a role and its own status, so streaming and errors only affect one turn.
- Pattern Prompt Input An auto-growing message composer where Enter sends and Shift+Enter adds a newline, with a send button that becomes a stop button while the model replies.
- Pattern Streaming Response A streaming response shows a language model's reply token by token as it arrives, so users don't have to wait for the whole reply to finish.
- Pattern Thinking Indicator A thinking indicator fills the pause between sending a prompt and the first token, and screen readers announce it until streamed text replaces it.
- Guide Managing AI Response States Patterns for handling the thinking and streaming states of a language model response, and the interruptions that can cut it short.
- Pattern Trusted Types Trusted Types makes dangerous DOM sinks like innerHTML reject plain strings, so DOM-based XSS can't get in through an unsanitized assignment.
- Pattern Secure Token Storage Keeping authentication tokens in httpOnly cookies with the Secure and SameSite flags stops injected scripts from stealing them.
- Pattern Subresource Integrity Integrity hashes on external scripts and stylesheets let the browser check that the files haven't been tampered with.
- Pattern SameSite Cookie The SameSite cookie attribute controls when browsers send cookies on cross-site requests, and it helps prevent CSRF attacks.
- Pattern Output Encoding Escaping data for the place it's rendered prevents XSS, because the browser then treats user input as plain text instead of running it as code.
- Pattern PII Redaction Removing or masking personally identifiable information before it gets into your logs, analytics, and error reports.
- Pattern Content Security Policy (CSP) An HTTP header that tells the browser where scripts and other resources can load from, so the browser can block XSS and other injection attacks.
- Pattern CSRF Protection Anti-CSRF tokens and SameSite cookies stop other sites from sending forged requests that use your logged-in users' cookies.
- Pattern Input Sanitization Validating user-provided data when it arrives and cleaning untrusted HTML before you render it, so your app is protected from injection attacks.
- Guide Securing Frontend Data Flows A defense-in-depth checklist for reducing the risk of client-side injection and protecting your users' data.
January 2026
- Guide Designing Component APIs Choosing between props, slots, render props, compound components, and other patterns when you're designing a component's interface.
- Guide Choosing a Networking Style for Realtime Apps Choosing between polling, Server-Sent Events, WebSockets, and CRDTs, depending on how realtime your app needs to be and whether users edit together.
- Guide Choosing a State Management Approach Choosing between local state, lifted state, dependency injection, and global state libraries, based on what your application needs.
December 2025
- Pattern Debounce Debouncing delays a function call until events have stopped for a short time, so a burst of rapid calls becomes a single call.
- Foundation Performance as a Foundation Performance belongs in the architecture from day one, instead of being bolted on after users start complaining.
- Pattern Client-Side Routing Client-side routing swaps views without a full page reload, so everything outside the swapped view keeps its state as users move between pages.
- Guide Choosing a CSS Strategy Choosing between BEM, CSS-in-JS, utility-first CSS, and CSS Modules for your team and your project.
- Pattern Code Splitting Splitting your app's code into smaller bundles that load on demand, so users download less before the first page becomes usable.
- Pattern CSS Modules & Scoped Styles CSS Modules and scoped styles keep each component's CSS to that component, so class names from different parts of an app can't conflict.
November 2025
- Pattern Lazy Loading Code and images that only load when users need them, so the first page loads faster and uses less bandwidth.
- Guide Testing Confidence Ladder Building the test suite for a modern frontend in layers, using unit, integration, visual, and accessibility tests.
- Pattern Component Testing Component tests check a component's behavior and output in isolation, so you find out about bugs before your users do.
- Pattern Memoization Caching the results of slow calculations lets your code skip recalculating them when the inputs haven't changed.
- Guide Managing Async UX States Patterns for handling loading and error states across your frontend.
- Pattern Async Boundary An async boundary shows one fallback UI while a group of asynchronous components and their data load, and then shows the group all at once.
- Pattern Loading State A loading state shows users that an asynchronous operation is still in progress, so they know the app is working.
- Pattern Retry Retrying failed requests automatically with exponential backoff, so users don't see errors for temporary network problems.
- Foundation The Progressive Enhancement Mindset With progressive enhancement, your web app keeps working for everyone, even when some of its code fails to load.
- Guide Building with Progressive Enhancement A guide to building web applications that keep working for everyone, whatever their browser supports.
October 2025
- Foundation Resilience by Design Systems keep working when things fail if you design for failure and recovery from the start, instead of adding error handling at the end.
- Pattern Error Boundary An error boundary catches JavaScript errors in part of your component tree and shows a fallback UI, so the rest of the app keeps working.
- Pattern Error Handling Catching errors from failed API requests and showing users a clear message about what went wrong and what they can do next.
- Pattern Accessible Forms Forms with proper labels and announced error messages, so screen reader users and keyboard users can fill them in too.
- Pattern ARIA Roles and Attributes ARIA roles and attributes give assistive technologies the information they need about custom widgets when HTML elements can't describe them.
- Pattern Focus Trap A focus trap keeps keyboard focus inside a modal dialog or overlay, so pressing Tab can't move focus to the page behind it.
- Pattern Live Regions ARIA live regions let screen readers announce content that changes on the page, without moving the user's focus.
- Foundation Accessibility as a Foundation Accessibility belongs in your architecture from day one, instead of being retrofitted later.
- Guide Accessible Interaction Playbook Making interactive UI accessible, with focus management, keyboard support, and screen reader announcements.
- Pattern Focus Management Moving keyboard focus to the right place when the UI changes, such as when a modal dialog opens or the route changes.
- Pattern Keyboard Navigation Keyboard navigation lets people who can't or don't use a mouse or other pointing device operate your whole interface with the keyboard.
- Pattern Semantic HTML Semantic HTML uses the right element for each part of a page, so browsers and screen readers understand its structure before you add any ARIA attributes.
September 2025
- Guide Choosing a Frontend Framework The criteria I use to choose between React, Vue, Svelte, Angular, and other frontend frameworks on real projects.
- Pattern Component Lifecycle Setting things up when a component mounts, and cleaning them up again when it updates or unmounts, prevents memory leaks and stale data.
- Pattern Presentational vs. Container Presentational components render the UI, and container components manage the data and business logic behind it.
- Pattern Props and Attributes Components get their data and configuration from the outside, through properties or attributes.
- Pattern Pure Component Components that render the same output for the same inputs, with no side effects, so memoization works and tests are predictable.
- Foundation Component-Driven Architecture Frontend development has moved from building whole pages to building interfaces out of small, reusable components.
- Foundation Logical Separation of Concerns Component-based architectures still separate concerns, but they separate frontend code by feature instead of by technology.
- Pattern Barrel Export Index files that re-export a directory's modules from one entry point, so import paths are shorter and the directory has a clear public API.
- Pattern Separation of Concerns Splitting code into separate layers for data, logic, presentation, and styling makes an app easier to change.
- Pattern Single Responsibility With single responsibility, each component or function has one clear purpose and only one reason to change.