Workers provide programmable edge compute. Pages Functions integrate Workers directly into your Pages site for APIs, SSR, and middleware.

Chip Architect Note: Treat Worker scripts like firmware hot paths: minimize bundle size, avoid megabyte-scale dependencies, prefer streaming and incremental parsing over whole-buffer operations.

Runtime model

In this repo

← All chapters