Public entrypoints

The public entrypoints exposed from src/index.ts include:

  • createRenderer for React server rendering
  • createRouter for filesystem-driven route discovery
  • createServer and startServer for serving compiled routes
  • build for production bundling
  • defineConfig for project configuration
  • AI, middleware, plugin, and AGENTS.md helpers

Runtime layers

At a high level, the runtime is split into a few clear layers:

  • route scanning and match compilation
  • React page rendering
  • dev and production server bootstrap
  • client island manifest generation
  • adapter-specific build emission for Bun and edge targets
  • optional plugin and AI feature collection

Continue with Routing, Rendering & islands, or Configuration & environment.

Patties documentation · Licensed under MIT. · Design specs