Project structure

Every Tandmade site is a standard Astro project on Cloudflare. What lives where, which files are generated, and what is code versus data.

The editor, the agent and your own tools all change the same files. There's no hidden model behind them: what you see in the editor is the code.

The files

├── src/
│   ├── pages/                 # one file per page; [slug].astro = a collection item's page
│   ├── components/            # sections and components (sections/Hero.astro, …)
│   ├── layouts/               # Layout.astro wraps every page
│   ├── styles/
│   │   ├── system.css         # generated from design/tokens.json — don't edit
│   │   └── site.css           # your classes; the visual editor writes here
│   ├── cms.config.ts          # collections and their fields
│   ├── content.config.ts      # connects the collections to Astro
│   ├── forms.config.ts        # what happens with form submissions
│   └── fx/                    # interactions
├── design/
│   ├── tokens.json            # the design system: colors, fonts, type, spacing, buttons
│   └── *.md                   # build notes the agent reads
├── brand/                     # the brand: how it sounds, looks, logo, photos, what you gave us
├── settings/
│   ├── site.json              # title template, SEO defaults, indexing, languages, analytics
│   ├── email.json, email.css  # the design of form emails
│   ├── head.html, body.html   # custom code (optional)
├── public/                    # served as they are: icons, brand files, fonts, images
├── DESIGN.md                  # generated summary of the design system
├── AGENTS.md                  # notes for coding agents
├── astro.config.mjs           # includes the site's languages
└── package.json

Styles

  • src/styles/system.css is compiled from design/tokens.json. Change tokens in the Style guide or in the JSON, and system.css and DESIGN.md are generated again. Edits made directly in system.css are overwritten.
  • src/styles/site.css holds the site's own classes, in the Client-First convention. The style panel writes here. Use the design system's variables, not fixed colors or sizes, so a token change reaches everything.

Pages and components

Each file in src/pages/ is a page; its path is its address. A file with a parameter, like src/pages/blog/[slug].astro, renders one page per collection item. Pages are built from components in src/components/ and wrapped in src/layouts/Layout.astro. A component's properties are its Astro props.

Collections and forms

  • src/cms.config.ts defines collections and their fields. Content › New collection writes it; later changes go through the agent.
  • A form's fields are its HTML: the inputs in the page are the schema. src/forms.config.ts only says what happens with a submission: recipients, redirect, webhook, retention and spam check. The Forms panel writes it.

Code and data

Code: files in the project Data: the site's own database
Pages, components, layouts Collection items and their versions
Styles, design tokens, brand Form submissions
Collection fields, form markup and delivery Uploaded media
Interactions, site settings, languages

Code goes live when you publish the site. Data goes live on its own: publishing an item updates the live site without a rebuild. While you build, data sits in a local database in .expirio/ (not tracked by Git); the live site keeps its own copy on Cloudflare D1.

How a site runs

  • Pages are pre-rendered; pages that read content render on request at the edge and are cached.
  • Images are served as AVIF or WebP at the width each screen needs.
  • The site serves its own API under /_cms/*, receives forms at /_forms/* and serves media at /_media/*. The editor is one of its clients. See Content API.

Work on it in your own editor

Connect Claude Code, Cursor or another MCP client to work on the same files with the same safeguards: Use your own AI agent. AGENTS.md and DESIGN.md tell any coding agent the site's rules.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.