Skip to content

feat(hero): The Living Page as the landing page - #333

Draft
thejustinwalsh wants to merge 31 commits into
feat/docs-sitefrom
feat/living-page-hero
Draft

thejustinwalsh wants to merge 31 commits into
feat/docs-sitefrom
feat/living-page-hero

Conversation

@thejustinwalsh

@thejustinwalsh thejustinwalsh commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

The Living Page as the site's landing page, rebuilt on the 0.2.0 API. Replaces #212. Top of a two-PR stack on #332 (docs site).

No milestone: this does not gate 0.2.0. It adds no code to @pmndrs/glyph.

What is here

  • apps/hero rebuilt as The Living Page: a typeset spread whose letters are live glyphs, replacing the two earlier hero scenes from feat(hero): add the glyph hero demo app #212.
  • It is the landing page: site's landing build now serves it, and the earlier site/landing scene is removed.
  • Pacing: the piece measures the display it is on, lowers resolution when frames run long and gives it back when lowering did not help.
  • Fallbacks: a captured still of the finished spread for reduced motion and for pages without WebGPU; the spread fits an upright phone.
  • Fonts rebaked for 0.2.0 and cut to what the page sets.

Verification (at b834bf49f)

  • pnpm --filter @pmndrs/glyph-hero check: typecheck, lint, format, 6 test files / 17 tests, bake check, build. Passed.
  • pnpm check in site/: 35 test files / 193 tests and every other step. Passed.
  • pnpm build in site/: passed.

Not verified

  • The Chromium and WebKit page checks (verify, capture) were not rerun after the merge with main.
  • Art direction has not had the owner's review.

🤖 Generated with Claude Code

thejustinwalsh and others added 30 commits November 24, 2026 00:12
One continuous shot over a live editorial spread: a headline typed in glass at
a caret that lights the page, a crane back to a multi-column essay with a drop
cap, a pull quote and a sidebar of scripts, gutters that reflow the essay
every frame while each letter rides a spring to where the layout now wants it,
a black hole the text flows round that pulls letters out as rigid bodies built
from their outlines and gives them back, a caret placed by hit test and typed
at, and a dive through the drop cap's counter back to the caret.

The body is one paragraph laid out through flow regions and exclusions. Its
letters are drawn as detached glyphs whose identity is their offset in the
text they were split from, so a letter taken by an exact replace and returned
by another is the same letter throughout. Camera shots are Klipp virtual
cameras blended by the director's script.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…s rewind and the frame budget

Also settles the spread's springs within a visible tolerance, so the flow stops
being restated once the gutters have stopped, tightens the dive into one
dolly zoom through the counter, and extends the essay.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…tone feeding

The wheel is the document's again when there is no dive to back out of.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… at four columns

The library's depth-of-field node cost about 14 of the full tier's 23 ms at
1600x900; a ten-tap gather over the circle of confusion holds the look for
about a millisecond. The capture script takes page query flags to weigh a
pass by leaving it out.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The lockfile takes the integration side; the site's importers are restored by the install that follows the hero merge.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Both sides register a workflow root; the lockfile is regenerated for the union of importers.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The alpha no longer ships useRenderPipeline, takes the fps cap as a Canvas prop, and makes the scheduler's physics phase a fixed step. The post pass builds three's RenderPipeline itself and hands it to the render job, the simulation moves to the update phase so the frame budget sees the real interval, and the studio uses Fiber's own Environment, which drops drei and its state.gl warning.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Every face is rebaked with the 0.2.0 baker. The headline and label faces keep only the characters the page sets in them, the serif keeps ASCII for typing and loses Latin-1, the display face drops outlines nothing reads, and the Japanese specimen moves from the CID-keyed Noto showcase (whose subset keeps its whole outline table) to M PLUS 1p. The seven artifacts go from 2,147,508 to 1,367,000 bytes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The headline's handle publishes glyph facts, so a fragment reads its letter's arrival from the table at the glyph's own index and no longer searches the line's caret stops for the one it is under.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A step of resolution given back and shed again within thirty seconds becomes the ceiling, so a page on the edge of its budget settles and never pumps between two resolutions.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Also records what splitting the paragraph cost as a User Timing entry.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The document carries a still of the spread, the install command, and links to the docs, the examples and GitHub before any script runs, and a footer below the hero so the page scrolls. The live piece is fetched only where a WebGPU adapter is granted and replaces the still once every shader is compiled; elsewhere the still stays and says what it is. The wheel and the space bar are the document's until the visitor takes the page, a key pressed on a link is the link's, and a finger's vertical drag scrolls.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A fixed sixty drew every second frame of a 75 Hz or 100 Hz display and read the result as a page dropping frames, and read a browser saving power at thirty the same way. The display's refresh interval is measured while the piece downloads; the piece draws every frame of a display up to about 90 Hz and every second frame of a faster one, and its budget is that pace with room to spare. The relapse window outlasts the loop, so a beat the page cannot hold costs one loop of finding out.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Also publishes the tier, the resolution, the smoothed frame interval, the mode and the caret's field on the root element for browser checks.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
hero:verify serves a built page and checks the still before the live frame, the bytes served, frame intervals by beat and what the budget did, frame-to-frame stability, less motion, no WebGPU, a phone that scrolls, and real mouse and key events.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
build:landing builds apps/hero into site/dist, so the site's / is the hero with its still, install command and links. The wordmark scene, its chorus fonts and their bake scripts are removed: the page's fallback is its own still. The landing check asserts the still, the links, the handover to the live page and a silent console. The manifest also takes @react-three/tsl, which the next commit's port needs.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…0-alpha.6

The alpha moves useRenderPipeline to @react-three/tsl, publishes the pipeline on the root state only once a scene has asked for one, and no longer takes shadows for a renderer it is handed. The bloom scenes and the post-processing guide import the hook from its new package, the explainer presents through a pipeline that may be absent, and the pooled renderer turns its own shadow map on.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The examples' shaping scene loads nine of the chorus faces from site/landing/assets, so they, their sources and bake:chorus stay. Only the wordmark scene and its own face are gone.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A browser that starts showing half its display's frames, as one saving power does, is as slow at any resolution. If frames at the least resolution are not at least 15% shorter than at the first step down, the page takes its resolution back once, asks for no other tier, and stops steering.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…e still

The still came back over the loop's cut whenever the tier changed. After the first live frame the cover is plain black, it covers at once, and hero:verify watches a forced tier change frame by frame.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The wordmark landing's entry point stays deleted: its density governor's rule, to take resolution back once when lowering it did not shorten frames, is the hero's now.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…atch

Headless Chromium's uneven frames can read as a fast display, which the page draws every second frame of, and a WebGPU canvas read on a frame nothing was drawn in is empty.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@thejustinwalsh
thejustinwalsh added this pull request to stack #334 December 2, 2026 13:54
@thejustinwalsh thejustinwalsh changed the title feat/living page hero feat(hero): The Living Page as the landing page Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Docs report 📚

Advisory only — this never blocks merging. Anything left open is tracked in the Sync agent docs issue and verified after merge.

Package Concept Attestation Status
@pmndrs/glyph-hero packages/hero.md · edited Ported to sil-green-83 and React Three Fiber 10.0.0-alpha.6, rebaked and subset the fonts, moved the headline's per-let… (made at e0acc8aa, source now 4fd3298a) ⚠️
@pmndrs/glyph-benchmarks packages/benchmarks.md · not edited none ❌

✅ attested · ⚠️ stale · ❌ missing

After your last source change, update each concept if it is now wrong, then record what you changed and checked:

  • packages/hero.md: mise exec -- pnpm scripts run docs:attest -- @pmndrs/glyph-hero "<what you changed and checked>"
  • packages/benchmarks.md: mise exec -- pnpm scripts run docs:attest -- @pmndrs/glyph-benchmarks "<what you changed and checked>"

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

size-limit report 📦

Surface gzip Surface gzip
Core JS 101.1 kB (0%) Inter font · Bitmap 542.8 kB (0%)
Shaper Wasm 531.5 kB (-0.01% Size decrease) Inter font · MTSDF 8.05 MB (0%)
Three.js adapter JS 164.4 kB (0%) Inter font · Slug 598.0 kB (0%)
React adapter JS 164.3 kB (0%) Font Awesome icons · Bitmap 449.1 kB (0%)
Vue adapter JS 164.2 kB (0%) Font Awesome icons · MTSDF 8.76 MB (0%)
R3F hello-world app JS 614.1 kB (<0.01% Size decrease) Font Awesome icons · Slug 654.7 kB (0%)
Tres playground app JS 595.8 kB (<0.01% Size increase) Bitmap baker JS 4.9 kB (0%)
Font validator JS 140.3 kB (0%) Bitmap baker Wasm 231.2 kB (+0.01% Size increase)
Runtime bake host JS 6.6 kB (0%) MTSDF baker JS 5.6 kB (0%)
Runtime bake Worker JS 14.4 kB (0%) MTSDF baker Wasm 215.7 kB (<0.01% Size increase)
Font baker JS 2.8 kB (0%) Slug baker JS 4.5 kB (0%)
Font baker Wasm 462.6 kB (+0.02% Size increase) Slug baker Wasm 183.9 kB (<0.01% Size increase)

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Package performance: smoke suite

0 faster · 0 slower · 5 neutral · 1 skipped

Baseline 0.2.0-canary-0ea9451e-20261202 → candidate 0.2.0 (064e7138)

⚠ baseline CPU clock drifted 15.2% during its run
⚠ CPU clock speeds differ between runs (3.35 GHz vs 3.60 GHz — 7.2% apart)

Latency distribution across 5 comparable workload p50s. Each workload counts once; these are not frame times.

statistic baseline candidate
Median workload p50 2.310ms 2.270ms
Workloads ≤1 ms 1 1
Workloads ≤2 ms 2 2
Workloads ≤3 ms 3 3
Workloads >3 ms 2 2

Largest candidate workloads (including neutral results):

workload baseline candidate Δ time
relayout after font-size change 3.92ms 3.81ms -0.110ms
publish after text change 3.43ms 3.43ms 0.000ms
publish after color change 2.31ms 2.27ms -0.040ms
measure after text change 1.80ms 1.85ms +0.050ms
measure 100 unchanged labels 13.38µs 13.20µs -0.000180ms
                                   faster ◀       ┊       ▶ slower    Δ p50      p  baseline   candidate
  measure after text change                     ├─┼─●───────────┤     +3.1%   .200  ▆▇█▆▂▄▆▂▂▁ ▅▇▆█▄▅▇▂▂▂
  publish after text change                  ├────●─┤                 -0.2%   .686  ▄█▅▆▆▂▂▅▅▂ ▄█▅▆▅▃▃▅▄▁
  measure 100 unchanged labels                ├──●┼──┤                -1.4%   .886  ▃█▄▁▂▁▃▂▁▁ ▆█▃▁▁▂▃▂▁▂
  publish after color change                ├────●┼┤                  -2.0%   .200  ▄█▅▇▇▆▃▂▂▂ ▆█▆▆▅▇▂▂▂▁
  relayout after font-size change               ├●┤                   -2.7%   .114  ▅█▆█▃▃▃▃▄▂ █▅█▄▄▃▄▂▃▂
                                   └──────────────┴──────────────┘
                                   -30%           0           +30%

All 5 compared benches are neutral.

5 neutral, 1 skipped
status bench baseline candidate Δ time Δ p50 p 95% CI
neutral measure after text change 1.80ms 1.85ms +0.050ms +3.1% .200 -3.1..+28.8%
neutral publish after text change 3.43ms 3.43ms 0.000ms -0.2% .686 -9.6..+3.1%
neutral publish after color change 2.31ms 2.27ms -0.040ms -2.0% .200 -12.4..+1.4%
neutral relayout after font-size change 3.92ms 3.81ms -0.110ms -2.7% .114 -4.2..+0.3%
neutral measure 100 unchanged labels 13.38µs 13.20µs -0.000180ms -1.4% .886 -8.1..+5.9%
skipped: clock-confounded: neutral→faster · 3.37→3.22 reflow after width change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant