# Blocks v8 (current) > Storefront documents the Blocks framework, the Site Editor app, website templates, and commerce integrations. > Studio documents the extensible platform: context, tasks, sandboxes, connectors, and MCP Apps. > Blocks v8 is the current version. Blocks v7 is legacy; Fresh and the former admin are retired. > Site Editor publishing follows Git changes, a pull request, review or merge, and the configured deployment. Runtime content reload APIs are separate delivery capabilities. > Respect availability labels. Do not describe preview, planned, or in-build APIs as available. Any documentation page is available as Markdown by appending `.md` to its URL. ## Scoped indexes - [Storefront — current](https://docs.decocms.com/storefront/llms.txt) - [Studio](https://docs.decocms.com/studio/llms.txt) - [Site Editor](https://docs.decocms.com/storefront/editor/llms.txt) - [Templates and storefront implementation](https://docs.decocms.com/storefront/templates/llms.txt) - [Blocks v8 — current](https://docs.decocms.com/storefront/blocks/llms.txt) - [Blocks v7 — legacy](https://docs.decocms.com/storefront/blocks/legacy/llms.txt) - [Fresh — retired runtime archive](https://docs.decocms.com/storefront/blocks/fresh/llms.txt) - [Former admin — retired archive](https://docs.decocms.com/storefront/legacy/llms.txt) ## Blocks — Getting started - [Blocks v8](https://docs.decocms.com/storefront/blocks.md): Configuration management for humans and agents, built into your codebase. ## Blocks — Getting started - [How it works](https://docs.decocms.com/storefront/blocks/how-it-works.md): Follow a headline change from a typed component through generated editing fields, saved JSON, and publishing to the rendered website. - [Quickstart](https://docs.decocms.com/storefront/blocks/quickstart.md) - [Migrating from v7](https://docs.decocms.com/storefront/blocks/renames-and-migrations.md): Keep v7 content working with aliases, replace v7 loaders, actions, telemetry and analytics, fold site settings into the CMS block, and migrate saved content safely. ## Blocks — Blocks - [Blocks](https://docs.decocms.com/storefront/blocks/blocks.md): A block is a function call written as JSON. The function is code; the call is data, so editors, agents and tools can change it without touching code. - [Saved blocks](https://docs.decocms.com/storefront/blocks/saved-blocks.md): Save a block under a name, refer to it from anywhere, and override its arguments for one use. Saved blocks are JSON files in .deco/blocks. - [Built-in blocks](https://docs.decocms.com/storefront/blocks/built-in-blocks.md): Eight functions every block map gets for free (lazy, multivariate, always, never, date, page, redirect and cms-settings), how to replace or change one, and where secrets go instead. ## Blocks — Built on Blocks - [Forms from types](https://docs.decocms.com/storefront/blocks/schema.md) - [Site editor](https://docs.decocms.com/storefront/blocks/site-editor.md) - [Checking content](https://docs.decocms.com/storefront/blocks/checking.md) - [Matchers and variants](https://docs.decocms.com/storefront/blocks/matchers-and-variants.md): Publish campaign dates ahead of time and select content when a page resolves. Cache and rendering policy determine when visitors see a switch. - [Lazy blocks](https://docs.decocms.com/storefront/blocks/lazy-blocks.md): Every argument runs before its function, except a lazy block, which runs only when the function calls it. Ask for one by typing a prop as Lazy. ## Blocks — Content and data - [Content and loaders](https://docs.decocms.com/storefront/blocks/content.md): deco content turns your saved blocks into a module your bundler packs. createCMS reads it, or a loader you write fetches content from somewhere else. - [Calling APIs](https://docs.decocms.com/storefront/blocks/upstream-clients.md): Deco CMS doesn't fetch data. Sites call commerce, search and email platforms through thin, instrumented API clients, and this page shows how to use and write one. - [Releases and drafts](https://docs.decocms.com/storefront/blocks/releases-and-drafts.md): A release is the content everyone sees. A draft is another set of calls your same code runs. Preview is your app rendering a draft. - [Deployment](https://docs.decocms.com/storefront/blocks/releases-and-deployment.md) ## Blocks — Websites - [Pages and routing](https://docs.decocms.com/storefront/blocks/routing.md) - [Rendering](https://docs.decocms.com/storefront/blocks/rendering.md) - [Next.js App Router](https://docs.decocms.com/storefront/blocks/nextjs.md): Render Deco CMS pages in the Next.js App Router with Server Components, generate metadata from the page's SEO block, and stream each block. - [TanStack Start](https://docs.decocms.com/storefront/blocks/tanstack-start-descriptors.md): Render Deco CMS pages with TanStack Start on Cloudflare Workers, streaming each block as a descriptor. - [TanStack Start with React Server Components](https://docs.decocms.com/storefront/blocks/tanstack-start-rsc.md): Switch the TanStack Start guide to React Server Components, so blocks return JSX and only Client Components ship JavaScript. ## Blocks — Monitoring - [Telemetry](https://docs.decocms.com/storefront/blocks/telemetry.md): Send errors, metrics and traces from your servers to your own OpenTelemetry collector or to the hosted Deco CMS, with switches and sample rates kept in the CMS settings block. - [Analytics](https://docs.decocms.com/storefront/blocks/analytics.md): Privacy-friendly page views, with no cookies, compatible with One Dollar Stats, with settings kept in the CMS settings block. ## Blocks — Production - [Caching](https://docs.decocms.com/storefront/blocks/caching.md): The caches a request passes through, who owns each one, and what to key it by. - [Troubleshooting](https://docs.decocms.com/storefront/blocks/troubleshooting.md): Common symptoms, from UNKNOWN_BLOCK to missing telemetry, and what to check for each. ## Blocks — Reference - [API reference](https://docs.decocms.com/storefront/blocks/api-reference.md) - [CLI](https://docs.decocms.com/storefront/blocks/cli.md) ## Blocks — Hosted Deco CMS - [The hosted Deco CMS](https://docs.decocms.com/storefront/blocks/hosted.md): What the hosted Deco CMS adds on top of the open-source Deco CMS, what it doesn't do, and how to connect a site to it with a site ID and token. - [Editing in the site editor on GitHub](https://docs.decocms.com/storefront/blocks/hosted-site-editor.md): With the hosted Deco CMS, the site editor edits your site with nothing to clone or install: saves go to a draft in Deco's storage, and publishing commits them to your production branch on GitHub. - [Previewing drafts](https://docs.decocms.com/storefront/blocks/hosted-drafts.md): With the hosted Deco CMS, the site editor opens your real site with a ?__draft= link and the draft renders in place, with no preview deploy. - [Publishing without a deploy](https://docs.decocms.com/storefront/blocks/hosted-publishing.md): With the hosted Deco CMS, production commits prepare immutable releases; promotion and rollback reach running servers on their next background check. - [Hosted telemetry](https://docs.decocms.com/storefront/blocks/hosted-telemetry.md): Send your site's telemetry to the hosted Deco CMS collector with a site ID and token, with no collector to run. ## Blocks — Engineering reference - [How Deco works inside](https://docs.decocms.com/storefront/blocks/internals.md) - [How resolution works](https://docs.decocms.com/storefront/blocks/how-resolution-works.md) - [How hosted releases stay current](https://docs.decocms.com/storefront/blocks/hosted-releases-internals.md) - [How matchRoute matches](https://docs.decocms.com/storefront/blocks/router-internals.md) - [Content protocol](https://docs.decocms.com/storefront/blocks/content-protocol.md): How the site editor reads and writes saved blocks without running your code. Seven JSON-RPC methods over one endpoint, served by deco serve and by the site editor's GitHub backend. - [Site editor compatibility](https://docs.decocms.com/storefront/blocks/studio-compatibility.md) - [How telemetry is sent](https://docs.decocms.com/storefront/blocks/telemetry-internals.md) - [Design decisions](https://docs.decocms.com/storefront/blocks/design-decisions.md) - [Production delivery and rollback](https://docs.decocms.com/storefront/blocks/content-delivery.md): Immutable JSON assets, a small channel manifest, and fast content rollback without builds or GitHub reads. - [Keeping drafts current](https://docs.decocms.com/storefront/blocks/draft-synchronization.md): A hosted draft holds only the blocks an editor changed. The editor's forms show your production branch with the draft on top, saves never touch GitHub, and Publish keeps each whole draft block. - [Studio implementation handoff](https://docs.decocms.com/storefront/blocks/studio-implementation.md): Where to implement drafts as overlays, saves without GitHub, immutable delivery and fast rollback in Studio, with contracts and acceptance scenarios. - [Blocks v8 pre-release readiness record](https://docs.decocms.com/storefront/blocks/roadmap.md): The pre-release readiness assessment for Blocks v8, preserved from PR #585 as a historical record.