Docs · Pages as JSON

PageDocument

PageDocument describes a web page as typed JSON. HTML says here is a div; a PageDocument says here is the pricing table.

On this page

FullSpectrum also renders sites from a semantic JSON document instead of HTML. HTML tells you here is a div. PageDocument tells you here is the pricing section:

{ "kind": "section", "region": "pricing",
  "blocks": [ { "kind": "table", "columns": […], "rows": […] } ] }

Three rules the format enforces

  • Blocks are a closed union of 38 kinds. An unknown kind is a validation error, not a blank rectangle. Every builder that starts with an open {type, props} ends up rendering nothing for content it does not understand — which is indistinguishable from content that is genuinely empty.
  • No styling in the document. Blocks carry intent (tone: "danger"), never appearance (color: "#b91c1c"). That is what makes a redesign a change to a token block rather than a find-and-replace across every page ever authored.
  • There is no html field anywhere. Inline formatting is a typed tree, so captured content — untrusted by definition — cannot carry markup or script into the renderer.

Ten minutes, no account.

Download the app, run fullspectrum doctor, record one workflow. If it doesn't replay clean the second time, we want to hear about it.