Search
Every note and project, matched on the server — the results have their own URL.
22 matches for “next.js”
- project · 2026-10-17Kotree…. Every feature is built on web platform APIs, CSS and what Next.js already ships. - Neobrutalism, properly. Thick ink borders, hard shadows, flat colours — and contrast that always clears W…next.jstypescriptpwa
- note · 2026-02-21Case study: making Kotree fastKotree started as a link list and grew into a playground. The links stayed fast because they were static; everything added around them did not. This is the account of what was slow, what was…case-studyperformancenext.js
- note · 2026-07-25An AI terminal without a backendAn AI terminal sounds like a server: an API key, a queue, a database of conversations, a bill. It can also be a static page. The commands run in the browser, the model call goes straight to …aireactprivacy
- note · 2026-02-07MongoDB indexes that earn their keepAn index is a promise about how a collection will be read. Every promise costs something on every write, so the goal is not many indexes. It is a collection where each hot query has one and …mongodbperformancetesting
- note · 2026-07-12A database that tidies up after itselfMongoDB is the only state Kotree has, so it gets two rules: nothing grows forever, and every hot query has an index matching the shape it actually runs. The first rule is mostly TTL indexes.…mongodbinfrastructureprivacy
- note · 2026-03-22Accessibility as a test, not a promiseSites tend to describe their accessibility the way they describe their values: a paragraph on a page, written once, quietly going stale. I did not want that paragraph here, so most of it is …a11ytestingwcag
- note · 2026-06-27Building Win95 in ReactA Windows 95 desktop in React is mostly a window manager with a dress code. The grey chrome is the memorable part, but the behaviour is what makes it feel real: windows that stack, minimise,…reactwin95accessibility
- note · 2026-05-02Fonts and the largest paint…covered by the same cache headers as the rest of the build. Next.js can do the preload and the fallback metrics through next/font/local , which is one less hand-written hint. Match the fallb…performancefontscore-web-vitals
- note · 2026-04-19Locking down the page with a nonceThe Content Security Policy is the least visible thing on this site, and it is also the one most capable of breaking everything at once. So it has a nonce, two reporting channels, and tests …securitycspheaders
- note · 2026-08-08Case study: shipping a Win95 desktopThe Windows 95 desktop began as a screenshot joke: grey chrome, a taskbar, a window that could be dragged. The risk with a joke is that it stays a screenshot. The version that shipped is a s…case-studyaccessibilityreact
- note · 2026-10-16An offline guestbookThe offline note (/notes/2026-10-12-offline-first) promised that anything you write without a connection sends itself later. The guestbook (/guestbook) is where that promise actually had to …pwaofflineguestbook
- note · 2026-09-12The real cost of a personal siteA personal site looks cheap because the visible costs are small. A domain is about twelve pounds a year. Hosting on a free tier is zero. A small MongoDB cluster is zero. The number that matt…operationsprivacywriting
- note · 2026-05-17A budget for every bytePerformance budgets fail quietly. Nobody notices the route that gained forty kilobytes in a feature commit until a phone on a train notices for them. So Kotree states its budgets twice: once…performancetestingvitals
- note · 2026-06-14Search that works without JavaScriptThe command palette is a nice toy, but it is a toy behind JavaScript and a keyboard shortcut. Search should not be behind anything, so there is a second door at the search page (/search): a …searchssraccessibility
- note · 2026-08-22Webmentions for one personA webmention is a simple idea: when a page links to yours, it sends a POST to an endpoint you advertise, and you can show that someone responded. The protocol is small. The operational part,…indiewebwebmentionsprivacy
- note · 2026-08-16Windows 95, maintainedThere is a Windows 95 desktop inside Kotree, listed among the secrets (/secrets) as Time Machine. It exists because it is fun, and the temptation with fun is to leave it half-finished: a scr…win95uxeaster-eggs
- note · 2026-01-10React 19 and the external storeSome state does not belong to a component. A toast can be raised from a fetch handler or a plain module with no React tree in sight. A theme preference has to be read before the first paint.…reactstatetypescript
- note · 2025-12-13View transitions in practiceThe view transition API is deceptively small. You wrap a DOM change in document.startViewTransition , the browser takes an old snapshot, applies the change, takes a new one, and animates bet…cssview-transitionsperformance
- note · 2026-06-06Case study: a tip jar without a wallet libraryThe tip jar has one job: let someone send a small amount of Ether without asking them to install anything else. The obvious implementation is a wallet library. The library would add tens of …case-studyethereumsecurity
- note · 2026-05-30A service worker update people trustThe first version of a service worker is easy. The update is where it earns trust. A new worker installs, finds an old page still open, and waits. The page can ignore it, reload under the us…pwaservice-workerux
- note · 2026-03-07A CI that stays greenA CI that is always red teaches everyone to ignore it. A CI that is always green because it retries everything teaches the same lesson more slowly. The useful middle is a pipeline where a fa…citestinggithub-actions
- note · 2026-04-18Case study: a guestbook that survives the internetA guestbook is a small feature with a large attack surface. It accepts text from strangers, stores it, shows it to other strangers and, if it is any good, lets them write while offline. The …case-studymongodbsecurity