Skip to main content
astro-asciinema provides an Astro integration and component for embedding terminal recordings with asciinema player.
  • Use inside Astro or MDX content
  • Import local .cast files as typed Vite assets
  • Theme watching with media queries, classes, or attributes
  • Preserve playback time and playing state while switching themes

Installation

Add asciinema to your Astro project

Quickstart

Render your first recording

Theme watching

Keep the player in sync with the theme of your site

Component reference

Reference for the Asciinema component