Site / Creating a site

Creating a site with foldkit-site

As a Foldkit app grows past one screen, URLs, page titles, navigation sections, breadcrumbs, route prefetching, and server rendering often scatter across separate files. Renaming one path forces edits in four places, and a missed update turns a link into a 404 or fetches data for the wrong screen.

foldkit-site puts your route topology in one typed tree built over Foldkit's Router. Each node pairs a URL parser and route variant with its title, section, history rule, layout, and data Surface. This guide walks through building a site end to end: routes, navigation, zero-waterfall data fetching, prefetching, server rendering, and SEO.

See a routed app running in examples/foldkit/routing, or follow Site, Remote and SSR together to run data-backed SSR.