A scene is a list of steps: a command that gets typed, what it prints, a file to show, a pause. You write it like any other file in your repository and review it in a diff.
castwright compiles the scene to a standard asciicast file, byte for byte the same on every build. From there it becomes whatever the place needs: a player for the web page, an animated SVG for the README, or a GIF and MP4 for everywhere else.