Motion Code

A code window that types itself in as p goes 0 to 1: monospace lines revealed left to right in order with a caret on the line being typed, keywords in the accent colour and // comments dimmed. No script and no per-letter markup, because a line's width is its character count in ch. For show, not for syntax highlighting. Standalone it renders all the code.

Surfaces
webgoogle-meet-stagegoogle-apps-script-webmcp-appsandroid
Degraded on
SurfaceNote
pdfPrints the final state (type fully revealed, numbers at their values, shapes drawn); no motion
google-chatInline CSS functions and custom properties are not supported
Live preview
$ npm install a2ui added 42 packages ✓ Done in 1.2s
Fields
FieldTypeRequired
linesarray (max 14) of string (max 72 characters each). Blank strings are blank lines.required
filestring (optional, max 32). Shown in the window bar.optional
sizeinteger. Font size px, 8-60. Default 18.optional
accent"#rrggbb". Keywords and caret. Default the stage accent.optional
Example payload
{
  "type": "motion_code",
  "lines": [
    "$ npm install a2ui",
    "added 42 packages",
    "\u2713 Done in 1.2s"
  ]
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:motion_code",
  "displayName": "Motion Code",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/motion_code",
  "capabilities": [
    "web",
    "google-meet-stage",
    "google-apps-script-web",
    "mcp-apps",
    "android"
  ],
  "description": "A code window that types itself in as p goes 0 to 1: monospace lines revealed left to right in order with a caret on the line being typed, keywords in the accent colour and // comments dimmed. No script and no per-letter markup, because a line's width is its character count in ch. For show, not for syntax highlighting. Standalone it renders all the code.",
  "representativeQueries": [
    "show a code window that types itself in as progress advances",
    "a code window that types itself in as p goes 0 to 1: monospace lines revealed left to right in order",
    "render a motion code"
  ]
}
← Full ARD catalog
Deploy your own Google Apps Script renderer

The renderer is an open-source Google Apps Script web app. 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 a2ui/apps-script-surface/gas-wired-renderer
clasp push && clasp deploy
Full deploy guide →