Embed Gist

Displays an inline styled snippet view of remote code from GitHub Gists.

Surfaces
web
Degraded on
SurfaceNote
googlechatScript restrictions fallback to basic text links.
emailScript inject routines cannot load outside web environments.
apps-script-webexternal iframe — depends on site's X-Frame-Options; test before use
Fields
FieldType
gist_idstring. Hexadecimal identifier for target file fragments.required
Example payload
{
  "type": "embed_gist",
  "gist_id": "Gist id"
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:embed_gist",
  "displayName": "Embed Gist",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/embed_gist",
  "capabilities": [
    "web"
  ],
  "description": "Displays an inline styled snippet view of remote code from GitHub Gists.",
  "representativeQueries": [
    "show a embed version-controlled GitHub Gist source code snippets",
    "displays an inline styled snippet view of remote code from github gists.",
    "render a embed gist"
  ]
}
← 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 →