Site / Creating a site

Comparison: TanStack Start

ConcernTanStack Startfoldkit-site + Plus
Route declarationFile-based routes with per-route code splittingExplicit tree over Foldkit Routers
Data fetchingParallel loader per route + router cacheSurfaces declare reads; Remote plans and caches
WaterfallsParallel loaders; deferred promises for child dataBounded fixed-point passes; non-blocking UI
PrefetchBuilt-in strategies, freshness windows, preloadRoutesourcesFor + Data.satisfy; Remote sets policy
GuardsbeforeLoad redirects; server functions enforcePresentation access; server enforces via Guard
Head and SEOPer-route head() meta; SSR and crawlerSite.metaOf from the tree; SSR + sitemap
MutationsRouter invalidation reruns loadersDirect patches + single-flight list updates
Server boundaryServer functions alongside routesSplit: SSR for HTML, RemoteServer for data

TanStack owns the runtime (scheduling, caching, preloading, and rendering). Foldkit Plus keeps foldkit-site as pure topology so UI, server sync, and AI agents share one Model and update transition.

Limits: when not to build on Site

  • Single-screen apps: A single route needs only a Foldkit Router.
  • Preferences and locales: Keep themes outside the route tree; model locales as route parameters when needed.
  • Cross-document links: Addresses outside the tree trigger full page loads. In repo benchmarks (docs/benchmarks.md), in-tree Navigate commands ran 1.3 to 4 times faster than full loads (and 3 to 6 times faster after hover preload).
  • Per-node submodels and layout Surfaces: Use Site.placement for routed pages and attach Surfaces to individual route nodes rather than layout wrappers.

Next