A Datasette bug you can compare in two tabs | Week 47 JavaScript
Compare a Datasette pagination fix in the browser, a TypeScript diagnostic across compilers, and the dependency graph read from pnpm’s experimental lockfile. Compiled for immediate developer deployment.
calendar_todaysummarizeWeek 47-2026
article
TAG: ARCHITECTUREREAD_TIME: 6_MIN
Running the full server-side Datasette Python app in the browser with service workers and Pyodide
Simon Willison can now send another developer two links that open the same database on different versions of Datasette. In his pagination example, one link produces an empty second page and the other shows the fix. A service worker intercepts page and asset requests from an iframe and routes them to the tab’s own web worker, where Pyodide runs the Python application. The session identifier matters because browser tabs share the service worker, even when their links specify different plugins or databases. A remotely hosted database must allow cross-origin reads, but someone reviewing a change can compare the results without provisioning a server.
How switching to tsrs sped up type checking and type-aware linting in oxlint
DRESS CODE’s engineering team ran the beta tsrs compiler alongside tsc in an optional CI job before adopting it for type checking and oxlint’s type-aware linting. In the back-end repository, median type-check time fell from 229 seconds across 708 runs to 11 seconds across 30 runs, even with cache hits included in the older measurements. The front-end median also fell, but the new sample contained only four runs. When tsrs reported an unexpected TS2674 diagnostic, the team reproduced it with the matching TypeScript 7.1 beta compiler. That comparison separated a language-version change from a potential tool regression, and the team kept TypeScript for builds and editor support.
pnpm Introduces New Lockfile Format to Reduce Git Merge Conflicts
Teams trying pnpm's experimental v13 lockfile need to check more than whether their tools can parse YAML. Sarah Gooding reports that pnpm 12.19.0 introduced the opt-in format, which combines package metadata and resolved dependencies in one packages section and moves peer bindings into with mappings. Keeping that information together is intended to reduce the linesa peer update touches during a merge. The default format is still v9, and older pnpm clients cannot read v13. Before committing a converted lockfile, teams can compare the package versions and dependency edges reported by their scanners and software bill of materials generators against the existing graph.
Pooya Parsa explains how Nitro can add a server to an existing Vite frontend while letting the team keep its usual development and build commands. The beta compiles file-based routes to JavaScript and produces a deployment directory with the public assets and server code. When a dependency cannot be bundled, Nitro traces the files it needs and copies them into the output. Its Vitest integration creates a fresh application instance for each test file and tears it down afterward, which removes the manual server setup from route tests. Parsa describes Nitro 3 as approaching its release candidate, so the talk is a guide to evaluating the beta before adopting it.
Control the Web with Hardware Sensors • Web Dev Challenge S3.E8
In CodeTV’s four-hour build challenge, one team turns two phones into controllers for a browser game called Tiger Fighter. The React front end records two seconds of accelerometer and gyroscope readings for each labeled gesture. The team keeps the raw measurements in TimescaleDB alongside a compact vector it constructs from each sample, then uses pgvector to match a new movement to the recorded examples. Two players trigger actions on screen, although the system sometimes confuses gestures the builders deliberately made different. The team weighs adding more information to each vector against sending a larger payload and leaves the effect on accuracy unmeasured.
Running the full server-side Datasette Python app in the browser with service workers and Pyodide
Simon Willison can now send another developer two links that open the same database on different versions of Datasette. In his pagination example, one link produces an empty second page and the other shows the fix. A service worker intercepts page and asset requests from an iframe and routes them to the tab’s own web worker, where Pyodide runs the Python application. The session identifier matters because browser tabs share the service worker, even when their links specify different plugins or databases. A remotely hosted database must allow cross-origin reads, but someone reviewing a change can compare the results without provisioning a server.
Pooya Parsa explains how Nitro can add a server to an existing Vite frontend while letting the team keep its usual development and build commands. The beta compiles file-based routes to JavaScript and produces a deployment directory with the public assets and server code. When a dependency cannot be bundled, Nitro traces the files it needs and copies them into the output. Its Vitest integration creates a fresh application instance for each test file and tears it down afterward, which removes the manual server setup from route tests. Parsa describes Nitro 3 as approaching its release candidate, so the talk is a guide to evaluating the beta before adopting it.
Control the Web with Hardware Sensors • Web Dev Challenge S3.E8
In CodeTV’s four-hour build challenge, one team turns two phones into controllers for a browser game called Tiger Fighter. The React front end records two seconds of accelerometer and gyroscope readings for each labeled gesture. The team keeps the raw measurements in TimescaleDB alongside a compact vector it constructs from each sample, then uses pgvector to match a new movement to the recorded examples. Two players trigger actions on screen, although the system sometimes confuses gestures the builders deliberately made different. The team weighs adding more information to each vector against sending a larger payload and leaves the effect on accuracy unmeasured.
How switching to tsrs sped up type checking and type-aware linting in oxlint
DRESS CODE’s engineering team ran the beta tsrs compiler alongside tsc in an optional CI job before adopting it for type checking and oxlint’s type-aware linting. In the back-end repository, median type-check time fell from 229 seconds across 708 runs to 11 seconds across 30 runs, even with cache hits included in the older measurements. The front-end median also fell, but the new sample contained only four runs. When tsrs reported an unexpected TS2674 diagnostic, the team reproduced it with the matching TypeScript 7.1 beta compiler. That comparison separated a language-version change from a potential tool regression, and the team kept TypeScript for builds and editor support.
pnpm Introduces New Lockfile Format to Reduce Git Merge Conflicts
Teams trying pnpm's experimental v13 lockfile need to check more than whether their tools can parse YAML. Sarah Gooding reports that pnpm 12.19.0 introduced the opt-in format, which combines package metadata and resolved dependencies in one packages section and moves peer bindings into with mappings. Keeping that information together is intended to reduce the linesa peer update touches during a merge. The default format is still v9, and older pnpm clients cannot read v13. Before committing a converted lockfile, teams can compare the package versions and dependency edges reported by their scanners and software bill of materials generators against the existing graph.
One link opens an empty second page of results. Another opens the same database with a version of Datasette that pages correctly. Simon Willison can share both versions because a service worker sends requests to a separate application instance for each tab.
That kind of comparison depends on knowing which software actually ran. DRESS CODE’s engineers tried the beta tsrs compiler in an optional CI job, then checked a surprising diagnostic against the matching TypeScript beta. Seeing both compilers report it helped the team trace the change to the language version.
A similar question comes up when a team tries pnpm’s experimental lockfile. A scanner that can open the file still needs to recover the package versions and dependency relationships represented by the new layout. Comparing those results before converting the shared file gives the team a check it can repeat on the next tool update.
Nitro’s beta and a gesture-controlled game illustrate two other boundaries for a test. Nitro gives each Vitest file its own server instance, so route tests can start clean. In CodeTV’s prototype, two players can trigger game actions with their phones, but even deliberately different gestures sometimes produce the same classification.
Key Takeaways
Share the failing pagination case and its fix against the same database.
Run a surprising diagnostic through the matching TypeScript compiler.
Compare the scanner’s dependency graph before adopting the new lockfile.