macro.config.js, and mark your first key in under ten minutes. What you will build
Macrocontent turns a normal website into an editable surface. You keep your HTML, CSS, and build tool; Macro injects the SDK, hydrates live content, and opens an in-page editor for your team.
Connect the site
Install
@macrocontent/sdkand@macrocontent/overlay, drop inmacro.config.js, and enable the Vite plugin (or a single layout loader tag).Mark content
Add
data-macro-keyon text, images, richtext, groups, and components. Editors change values in the overlay — no CMS templates required.Extend with components
Register local
MacroNodeDefinitionblocks, use slots for repeatable or projected regions, or load licensed components from the Store at runtime.
Integrate
Install packages, configure the site, wire Vite, mark a key, open the editor.
Where credentials come fromDashboard SDK keys, API tokens, and what belongs in macro.config.js.
macro.config.jsFull option reference for the site config file.
Keys modelpk_, dk_, sk_ vs mt_ tokens, allowedOrigins, and rotation.
Mark & deliver
data-macro-key types and naming conventions.
SEO markingdata-macro-page, data-macro-seo, and page-scoped nodes.
PrerenderBuild-time live content injection with MACRO_SECRET_KEY.
Bake & exportOffline exit: macrobundle ZIP into static HTML.
Components
MacroNodeDefinition, fields, render(), register, and place blocks.
Slots: itemsEditor-managed repeaters inside components.
Slots: projectLight-DOM projection for site-developer HTML.
Store componentsloadStoreComponents, licenses, content vs styled, Macro Score.
Related handbooks
- Editors — overlay editing, drafts, and publish
- Dashboard · SDK keys — create and rotate frontend keys
- Dashboard · API tokens — server automation with
mt_ - API reference — Management, Content, Store, and Publisher OpenAPI