Site / foldkit-site
What a Site owns
A Site owns where the application is in the route tree:
- Site (
foldkit-site): Which route nodes exist, how they nest, their URLs, titles, sections, history steps, and which Surfaces belong to each node. - Surface (
foldkit-surface): What each active location observes in theModeland whichMessages it may send. - Remote (
foldkit-remote): Which server reads those active Surfaces need. - Your app (
Modelandupdate): Application state, Effects, and state transitions.
Every node is an immutable first-class value, so mounting it in a tree leaves the original node unchanged and lets you build targets and hrefs from the node anywhere in your app. See Site and Foldkit's Router for how the Site and Router layers divide responsibilities.