Skip to main content
A workspace is a zitejs monorepo: one repository holding every app and workflow, the generated types, and a shared design system. Agents build inside it; this page is the map so you (and they) know where everything lives.

Layout

Generated files

The .zite/ directories, at the workspace root and inside each app, are generated and must never be edited. src/main.tsx is generated too. They’re refreshed by zitejs generate whenever the schema or workflows change (the build tools run this for you): Read them to learn the exact table names, record types, and workflow signatures. Never modify them.

Import conventions

  • Platform SDKs: always via zitejs/* aliases: zitejs/db, zitejs/backend, zitejs/api, zitejs/auth, and the utility modules (zitejs/schedules, zitejs/notifications, zitejs/pdf, zitejs/upload). Never import from .zite/ by relative path.
  • Shared UI: from @project/components/ui/* (e.g. import { Button } from '@project/components/ui/button').
  • Your own files: components, hooks, and utilities you create in an app’s src/, via relative paths (./components/Foo).

Config files

zite.config.json (project)

At the workspace root: { "project": { "name": "...", "basePublicIdentifier": "..." } }. This is the workspace name and the id of its database.

zite.config.json (app)

In each apps/<dir>/: accessMode, integrations, userSync, envVars, authentication, seoSettings, pwaSettings. See Authentication.

zite.schema.json

The enriched database schema: table and field SDK names, types, and options. Drives .zite/db.ts.

zite.permissions.json

Roles and the row-level rules that govern the workspace database.

Context

context/ at the root holds Markdown documents you write for the agent: data model notes, policies, specs, brand guidelines. The agent sees an inventory of them every turn and reads the ones relevant to what it’s building. See Context.