Framework overview
Patties is a Bun-native full-stack meta-framework built around Bun primitives, React rendering, filesystem routing, and optional AI features.
Public entrypoints
The public entrypoints exposed from src/index.ts include:
createRendererfor React server renderingcreateRouterfor filesystem-driven route discoverycreateServerandstartServerfor serving compiled routesbuildfor production bundlingdefineConfigfor project configuration- AI, middleware, plugin, and
AGENTS.mdhelpers
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.