ACI is currently available to design partners. This quickstart works locally and does not require production cloud access. Request access → for production onboarding.
Prerequisites
- Node.js 20.19+ and npm
- An ACI starter repo provided by Gradial
- A terminal and text editor
Step 1: Install Dependencies
Clone the starter repo you were given, then install dependencies from the starter root:Step 2: Verify the ACI Contract
Run the doctor command:doctor checks .aci.yaml, the @gradial/aci package, registry paths, renderer entry, Node/npm availability, and framework-specific requirements.
Step 3: Compile Contracts and Content
Compile the component and layout contracts:aci:validate compiles .content/ into .aci/compiled. The framework build reads the compiled content from that generated directory.
Step 4: Build and Run
Build the framework site:Step 5: Edit Content
Open the homepage content:regions.main and change a field:
validate → build loop is the same safety path content takes all the way to production: every edit is checked against your component schemas before it renders.
Content Shape
ACI page content is JSON:$type:"page"for page documentslayout: Which layout contract to userenderMode: How the page should be rendered, such as"static"metadata: SEO and page-level dataregions: Named layout regions containing blockscomponent: The registered component contract nameprops: Data validated against that component’s Zod schema
Component Contracts
Component contracts live undersrc/cms/contracts/components/ and should not import runtime components, CSS, browser APIs, or framework-only modules.
Common Tasks
Add a New Page
Create a page folder and_index.json:
Validate Before Committing
Use the CLI Directly
Starter scripts usually wrap the CLI for you. The direct equivalents are:Troubleshooting
ACI command not found
Most starters install@gradial/aci locally. Use the starter’s npm run aci:* scripts, or run the local binary with:
Content changes are not showing
- Save the JSON file.
- Re-run
npm run aci:validate. - Re-run
npm run buildif your framework reads from.aci/compiled. - Check for JSON syntax or schema validation errors.
Component not found
Thecomponent value in content JSON must match a contract exported from src/cms/contracts/components/index.ts.
What’s Next
The Frontend Contract
Go deeper on
.aci.yaml, component and layout contracts, and the renderer entrypoint that connects your site to ACI.Framework Guides
Set up Astro, Next.js, or SvelteKit against the same contract.
Add Components
Define your own components with Zod schemas, render modes, and image slots.
Explore the CLI
Master the commands for building, validating, syncing content, and managing branches.
Next: Frontend Contract →