Framework Guides
Agentic Content Infrastructure (ACI) works with your existing frontend project. This page covers how to set up each supported framework, from installing the runtime to building your first component.The aci-learn repository contains a complete Astro starter you can clone and run locally.
Astro
Astro is ACI’s recommended starting point. Its island architecture and static-first approach align naturally with ACI’s pre-compile model.Setup
Config File
Create.aci.yaml in your project root:
Component Registry
Define your components with Zod schemas insrc/cms/components.ts:
Layout Registry
Define your page layouts insrc/cms/layouts.ts:
Renderer Entry
Create the renderer that ACI calls to produce HTML insrc/cms/renderer.ts:
Component Implementation
Create your Astro component that matches the registry schema:Block Registry (Component Mapping)
Map component names to their implementations insrc/components/blockRegistry.ts:
Next.js
ACI supports Next.js with both the App Router and Pages Router. The same capsule interface works for SSG and SSR pages.Setup
Config
Component Example
SvelteKit
ACI supports SvelteKit with static prerendering and server-side rendering.Setup
Config
Component Example
Local Development
All frameworks work with ACI’s local development loop:- Hot-reloading preview at localhost:4321 (Astro) or your framework’s default port
- Content files in
.content/that you can edit directly - Instant feedback — edit JSON content, refresh the page, see changes
Content Structure
Content lives in.content/ as JSON files:
Example Page Content
Key Concepts
defineComponent
Every component in your registry is defined withdefineComponent():
defineLayout
Layouts define the structure of pages:GradialRenderer
Your renderer implements theGradialRenderer interface:
Next: CLI Reference →