Project scaffolding
Patties ships a separate scaffolder, create-patties, that generates a base app and layers an optional agent-platform overlay on top.
Basic usage
bunx create-patties@latest my-app
This creates my-app/ from the base template, runs bun install, and initializes a git repository with an initial commit.
Options
bunx create-patties@latest my-app \
--template claude|codex|none \
--target bun|edge \
--deploy cloudflare|vercel|deno|netlify|bun|none \
--no-install \
--no-git
--templateselects an agent-platform overlay layered on top of the base app.claudeadds aCLAUDE.md,codexadds anAGENTS.md,noneskips the overlay. Default:claude.--targetsets the runtime target written intopatties.config.ts(bunoredge). Default:bun.--deployrecords the intended deploy target. Default:none.--no-installskipsbun install.--no-gitskipsgit initand the initial commit.
What the scaffolder produces
The base template is a minimal Patties app: app/routes/, app/islands/, app/server.ts, patties.config.ts, tsconfig.json, and a .gitignore. The scaffolder then:
- writes a fresh
package.jsonwith the project name andpatties/react/react-dompinned to current versions - rewrites
patties.config.tsto match the chosen--target - copies the selected agent overlay (
_claudeor_codex) over the project - installs dependencies and commits, unless
--no-install/--no-git
Examples
bunx create-patties@latest my-app
bunx create-patties@latest my-app --template codex
bunx create-patties@latest my-app --template none --no-git
bunx create-patties@latest my-app --target edge --deploy cloudflare