Developer guide
CaraCMS is an npm package, caracms, that you add to an Astro site. It gives the site an editor at /admin and keeps the content as JSON files in the site’s own git repository.
How it works
- Content is files. Every page is a JSON file under content/ in the repo. The site builds its pages from those files, ahead of time, like any Astro site.
- The site describes itself in one config file. caracms.config.ts lists the site’s blocks, their fields and its collections. The editor is built from it.
- Blocks are your Astro components. Each block draws its fields through a few components from the package, which is what lets an editor click a word on the page and type.
- Edits are drafts. The editor saves to a drafts branch in the repo. Visitors see nothing until Publish.
- Publish is a commit to main. Your host deploys it like any other push. CaraCMS never deploys anything itself.
What you run
A site with CaraCMS runs as one Node server, with a Redis beside it for drafts and sessions. The public pages stay prerendered; the server adds the editor, forms and sign-in.
The services behind the editor come one of two ways:
CaraCMS Cloud | Standalone | |
|---|---|---|
GitHub access | From the cloud | Your own token or GitHub App |
Images | Stored and resized by the cloud | Your own bucket and imgproxy |
Video | The cloud’s Mux | Your own Mux account |
Forms and email | Stored and sent by the cloud | Your own bucket and Resend account |
What you set | One key | Each service’s variables |
Either way the site’s server and Redis run on a host you choose. The two modes share everything else, so most of this guide applies to both. CaraCMS Cloud is the short path; Standalone is the longer one.
Working with an AI agent
The package copies a set of skills into the site, in .claude/skills/. They are the detailed manual for an agent working in the repo: building blocks, changing content, hosting, bringing an existing site in, and upgrading.
These pages cover what a person needs to decide and understand. For the work itself, point your agent at the task and it will read the skill that fits.
llms.txt · llms-full.txt: this site for AI tools