Side-by-side code comparison — red/green panels showing old vs new
| Surface | Note |
|---|---|
| colour panels may not export cleanly — use two separate code blocks |
| Field | Type | |
|---|---|---|
| language | string | required |
| before | string | required |
| after | string | required |
| before_label | string | optional |
| after_label | string | optional |
| caption | string | optional |
{
"type": "before_after",
"language": "json",
"before": "// example code",
"after": "// example code"
}
{
"identifier": "urn:air:a2uicatalog.ai:atom:before_after",
"displayName": "Before After",
"type": "application/vnd.a2ui.atom+json",
"url": "https://a2uicatalog.ai/atoms/before_after",
"capabilities": [
"web",
"meet-stage",
"apps-script-web"
],
"description": "Side-by-side code comparison \u2014 red/green panels showing old vs new",
"representativeQueries": [
"show a side-by-side code or content before and after comparison approach",
"side-by-side code comparison \u2014 red/green panels showing old vs new",
"render a before after"
]
}
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 →