CLI And Starter Contract
This page describes the current Frontron contract after restoring the 0.8.4 / 0.8.5 style product story.
Goal
Frontron now centers on this split:
create-frontronis the main starter/template entrypointfrontronis the support CLI/runtime package behind that starter
Official start flow
The default supported flow is:
- run
npm create frontron@latest - install dependencies
- run
npm run app:dev - later run
npm run app:build
Official structure
The generated starter still uses the same official shape:
text
my-app/
src/
public/
package.json
vite.config.ts
frontron.config.ts
frontron/frontron/ stays the dedicated app-layer area.
Responsibility split
create-frontron owns:
- starter generation
- starter defaults and template files
- the first-run developer experience
frontron owns:
- config discovery
- CLI commands
- runtime/build support
- bridge/runtime helpers
frontron/client- Rust slot support
Current state
The repository already implements this split.
- starter users begin with
create-frontron - generated projects depend on
frontron frontronstill providesfrontron dev,frontron build,frontron check, anddefineConfig- compatible manual installs can still use the same config structure
Manual path
Manual setup is still valid, but it is now secondary:
- install
frontron - add
frontron.config.ts - add
app:devandapp:build - run through the CLI
Renderer contract
Renderer code should still use only frontron/client.
The product direction changed, but the renderer-facing API did not.