Getting Started
Scaffold a Codemation app, run it locally, and understand the smallest useful setup.
This page is the fastest path from zero to a working Codemation app.
Fastest path
pnpm create codemation <project-name>
cd <project-name>
pnpm devThat starts the framework-owned UI and the runtime behind it. To change workflows, credentials, database mode, or other wiring, edit <project-name>/codemation.config.ts with defineCodemationApp(...).
Other scaffolds
You can also use:
npm create codemation@latest my-app
yarn create codemationFirst-time setup (when you need it)
Some templates walk you through migrations and a first user interactively. If yours does not, run these inside the project:
pnpm install
pnpm exec codemation db migrate
pnpm exec codemation user create --email you@example.com --password 'your-secure-password'
pnpm devWhat the starter gives you
The generated project already includes:
codemation.config.ts- a
src/workflowsdirectory with a fluentworkflow("...")example - a sample workflow
- local auth defaults for development
- a local SQLite database for zero-setup development
- a
pnpm devworkflow that runscodemation dev @codemation/*dependencies use0.0.xfor most packages and0.1.xfor@codemation/host, sopnpm upgradecan pull compatible pre-1.0 releases without editingpackage.jsonby hand
The smallest mental model
At the beginning, you only need to understand four things:
codemation.config.tscomposes your app withdefineCodemationApp(...)src/workflowscontains workflow definitions built withworkflow("...")- nodes move data through a workflow graph
- the runtime gives you persistence, credentials, APIs, and the operator UI