Today I Learned

Daily reflections on work and learning—what I did and what I learned.

20267

2026-07-09

Hierarchical document nav and viewer bundle splitting

A day tuning both portfolio-demo depth and bundle size at once, via a page push/peek navigator and a separate read-only viewer entry

  • A document graph is better separated from the flat editor via a page block + push/peek navigator contract
  • peek/embed can share DOM with the editor, but the import graph must differ for the viewer bundle to shrink

20266

2026-06-29

Choosing a Search Backend in a Serverless Environment

What to put inside vs. outside the function in serverless, and how to hide swappable search behind a provider contract

  • A search engine that needs to stay resident can't run inside a serverless function, but can be replaced by a pre-built in-memory index.
  • Build artifacts read at runtime must be declared in bundle file tracing, or they go missing on cold start.