Site / Site and the Router

Side by side

QuestionFoldkit Routerfoldkit-site
What route is this URL?parseUrlWithFallback(oneOf(...), NotFound), routers in the order you listThe same, built from the tree: Site.parse(site, NotFound), nodes in tree order
What URL is this route?Call its router: personRouter({ personId: 3 })Site.target(PersonNode, { personId: 3 }) gives the route value and its URL together; Site.hrefOf(site, route) builds from any route value
Which page is around this one?Not askedSite.chainOf, parentOf, ancestorsOf, sectionOf
What is it called?Not askedSite.titleOf, and Site.metaOf for the page's head
Where does the nav point? Which keys go there?Not askedSite.landing(site, section), Site.shortcuts(site, toMessage)
A click on a link on this originUrlRequest.Internal; update decidesNavigates if the tree holds the address; any other address loads the page in full
Add a Back step, or replace?update picks pushUrl or replaceUrlDeclared per node; Site.historyOf decides
A URL changeonUrlChange; update sets the routeSets the route field and tells the pages whose route arrived
The URL the Model already showsArrives like any otherReturns the same Model: no render, nothing told
What the page reads from the serverNot askedThe Surface a node names: Site.sources, Site.sourcesFor
Every address, for a build or a sitemapNot askedSite.targets(site, paths)
Drawing the pageYour view, matching on the routeYour view, or Site.view: the deepest node's view inside each ancestor's layout