Embed Codepen

Renders an embedded interactive CodePen sandbox workspace within the document.

Surfaces
web
Degraded on
SurfaceNote
meet-stageLive sandboxed tabs and result viewports fail to initialize.
googlechatBlocked — degrades to CodePen URL link.
emailThird-party sandboxes reject external frame initialization.
apps-script-webexternal iframe — depends on site's X-Frame-Options; test before use
Fields
FieldType
pen_idstring. Alphanumeric identity of the target snippet.required
user_handlestring. Profile handle owning the snippet.required
Example payload
{
  "type": "embed_codepen",
  "pen_id": "Pen id",
  "user_handle": "User handle"
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:embed_codepen",
  "displayName": "Embed Codepen",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/embed_codepen",
  "capabilities": [
    "web"
  ],
  "description": "Renders an embedded interactive CodePen sandbox workspace within the document.",
  "representativeQueries": [
    "show a embed interactive CodePen workspace development environments",
    "renders an embedded interactive codepen sandbox workspace within the document.",
    "render a embed codepen"
  ]
}
← Full ARD catalog Try it live →
Deploy your own renderer

The renderer is open source. Deploy your own instance in 4 commands — you own the URL, no dependency on the demo endpoint.

git clone https://github.com/a2uicatalog/a2ui
cd apps-script-surface/gas-schema-renderer
clasp push && clasp deploy
Full deploy guide →