Overlay

Docs

Full docs are being written. In the meantime, here is the short version.

Install

<script
  src="https://cdn.overlay.dev/v1/loader.js"
  data-project="proj_..."
  data-env="production"
  data-activation="query:overlay=1"
  defer></script>

Config

{
  "licenseKey": "${OVERLAY_LICENSE_KEY}",
  "projectId": "proj_...",
  "environment": "production",
  "allowedDomains": ["example.com"],
  "adapters": { "primary": "git", "fallback": "patch-file" },
  "safety": { "defaultMode": "propose-only" }
}

Edit operation shape

{
  "id": "op_1",
  "type": "text.rewrite",
  "target": { "selector": "h1.hero-title" },
  "before": "Build faster websites",
  "after":  "Ship premium websites your team can edit in seconds",
  "rationale": "Outcome-framed, adds premium cue."
}