| Git is the source of truth for content. Publishing is committing: a deploy ships the commit, or the hosted Deco CMS serves it as a release without one. | History, review, branches, and rollback come for free, and agents can edit content with the tools they already have. There is no publish command because there is nothing to publish that a commit doesn't already express. deco publish exists only as a signpost for AI agents: it prints this explanation and exits with code 1, so an agent that tries it learns to commit instead. It isn't listed in the CLI's help. |
| The CMS at module scope, a client per request, pinned to one revision. | Everything a response renders agrees with itself, a page's blocks can be resolved and streamed to the browser one at a time, and the next request sees the next revision. Clients are cheap because the content cache lives in the CMS, shared by every client. |
content is a snapshot or one Loader interface: load(pointer?), plus an optional update(). | Production, drafts, and staying current are uses of the same interface, so the content module and remoteLoader replace each other in one option, and the rest of your code never knows which one it has. |
| A visitor's request never waits for the network. | Requests read content from memory. A content source that can change is checked with update() at idle moments, never in front of a visitor's request. A draft preview checks first and waits, so it always shows over the latest release. |
Deco CMS doesn't route. matchRoute is a helper over entries you list. | Which types have URLs is an app decision, a non-website has none, and the framework's file-system router still owns code routes. Editors get pages at arbitrary paths because the path is a field. |
The framework doesn't fetch data. Platform integrations are thin, instrumented API clients; there's no /deco/invoke and no cachedLoader. | Data fetching is the part of a site that differs most between platforms and frameworks, and frameworks already have server functions and route handlers for it. Thin clients keep every call measured the same way while converters, hooks and flows live in templates the site owns. Caching depends on the platform, so it lives in your app, as a fetch you pass to a client (see Upstream data). |
| Packages export TypeScript source and depend on each other in one direction. | Bundling one package into another can leave two copies of a module that must be one, like the block registry. Importing source keeps one copy, and the one-way graph keeps the core free of framework code. Instances also live on globalThis, so a module loaded twice still shares one cache and one poller. |
| The SDK never touches the filesystem. | One setup for every runtime: Node, Workers, Deno, Bun, React Native and browsers. The CLI turns files into a module, and your framework's hot module replacement gives hot reload. |
| Hosted releases: poll a channel manifest once a minute by default (every 5 s at most), at idle moments; no push. | A small manifest per server per interval, no infrastructure to reach every server, and never in front of rendering. Content lives in immutable storage/CDN assets; production never reads GitHub. New promotion generations support rollback to older revisions. Until the first release arrives, or if the Deco API is unreachable, a server keeps serving the content the build shipped with or the newest release it has. Eventual consistency for visitors. Draft pointers fix overlays; each preview checks for the latest release first and inherits it, captured once per client. |
Telemetry is open source; code says where it goes, content says how much. Destination and credentials live in createCMS; the telemetry section of the CMS block holds switches and sample rates, which win over code's defaults. | Secrets never go into content, which editors change and releases ship. Switching telemetry off, or sending every error while you chase one, is a content edit anyone can see in Git, with no deploy; code's defaults only decide what a site sends before content says otherwise, and the per-batch limits on logs and spans keep a raised rate from flooding the collector. Speaking OTLP means any backend works; the hosted Deco CMS collector is one destination. Sampling and aggregation keep the cost flat as traffic grows. |
One settings block; code holds destinations, secrets, defaults and caps. Site-wide settings are one saved block, CMS, of the built-in type cms-settings, with a section per feature (preview, telemetry, analytics). Code sets each section's defaults and caps what previews may allow, and cms.settings() reads it from the release in memory, never from a draft. | One form for editors and one file to review, with no list of special blocks to keep in sync: the schema already describes the type, and the site editor finds it by its one well-known name. Reading the release keeps a draft from allowing its own preview host or changing what's sent, and reading memory keeps a server able to start and serve with no network. |
| Secrets live in the deploy platform, not in content. There's no secret block, key pair or encryption in the framework: your code reads each credential from your deploy platform's secrets and passes it as a parameter (see Secrets). | Content ships in every release, and editors can read every field. The deploy platform already stores, scopes and rotates secrets, so there's no key for anyone to manage, nothing for the site editor to encrypt, and a save never needs the schema. |
Analytics is separate from telemetry and speaks the One Dollar Stats wire format. Its settings are the analytics section of the CMS block, and the site renders AnalyticsScript with them from cms.settings(), the same way on every framework. | Page views are a browser concern that editors switch and configure, so they belong in content, not in the server-side telemetry option. An existing, simple, cookie-free format means it works with One Dollar Stats' collector and their tracker works with yours, with no new format to learn or maintain. |