> ## Documentation Index
> Fetch the complete documentation index at: https://astro-asciinema.hedger.ch/llms.txt
> Use this file to discover all available pages before exploring further.

# Installation

> Install `astro-asciinema` in an Astro project

## Requirements

* Astro `7.x`

## Install the package

<CodeGroup>
  ```bash npm theme={null}
  npm install astro-asciinema
  ```

  ```bash pnpm theme={null}
  pnpm add astro-asciinema
  ```

  ```bash yarn theme={null}
  yarn add astro-asciinema
  ```

  ```bash Bun theme={null}
  bun add astro-asciinema
  ```
</CodeGroup>

## Configure Astro

Add the integration to your Astro configuration.

```ts astro.config.ts theme={null}
import { defineConfig } from "astro/config";
import asciinema from "astro-asciinema";

export default defineConfig({
	integrations: [asciinema()],
});
```

<Note>
  The integration registers asciinema's `.cast` files as Vite assets and adds their TypeScript
  module declaration.
</Note>
