Although it's separate, the creator(s) does provide a utility called `agg`[0] to convert asciicast files to GIF. The GitHub appears to provide prebuilt binaries in Releases, but it's easily built using Cargo/Rust too.
You may want to edit the timing maybe? Or provide an asciicast format where you can run JS (your blog or site) and a gif where you can only insert a picture, like social networks.
Although it's separate, the creator(s) does provide a utility called `agg`[0] to convert asciicast files to GIF. The GitHub appears to provide prebuilt binaries in Releases, but it's easily built using Cargo/Rust too.
0: https://github.com/asciinema/agg