Well technically you could inline the Javascript+CSS stuff and you would get a single HTML file ;) No need to write anything, it already exists.
Anyway I didn't mean to discourage you from working on your project.
I just would like to use a decent terminal recording solution to showcase some of my own projects (e.g. abduco+dvtm, vis[1]). Ideally it would support:
* copy pasting from the screen cast
* pausing / adjusting playback speed
* simple self hosting mechanism
* conversion to gif as preview for inclusion in Markdown files or for environments where Javascript is disabled
* overlay to show pressed keys
AFAIK all but the last point is possible with asciinema. In the past I've used mkcast[2] which uses a fork of screenkey and is a pain to use. Apparently its developer now recommends xscast.
Anyway it is a mess to use and as a result the featured screen casts for my projects are rarely updated and by now completely out of date.
[1] https://github.com/martanne/vis
[2] https://github.com/KeyboardFire/mkcast