# Ghostty Rabbita Asciinema Demo

This demo plays asciicast v2/v3 recordings in a Rabbita app while using the
translated Ghostty terminal model for terminal parsing and viewport state.

The browser entry point expects the release JS artifact generated by MoonBit.
Run these commands from the repository root:

```sh
moon -C examples check --target js
moon -C examples test --target js
moon -C examples build --target js --release rabbita_asciinema/main
python3 -m http.server 8080
```

Then open:

```text
http://127.0.0.1:8080/examples/rabbita_asciinema/
```

The player starts with an embedded sample cast. Use the file button to load a
local `.cast` file.

## GitHub Pages

The repository workflow publishes the demo with GitHub Pages Actions. The
repository's Pages source must be configured to **GitHub Actions**.

Expected URL shape after the first successful deployment:

```text
https://<owner>.github.io/<repo>/examples/rabbita_asciinema/
```

The workflow publishes the examples directory plus `_build/js`, so the static
entry point uses the same relative path locally and on Pages.
