This is a version of Norbert Landsteiner (of mass:werk)'s char8.js which has been modded into oblivion. I actually don't remember all of the things I did to it, but they include:
Format codes for display and color
Proper rendering of astral characters
Meta-surrogates to support "characters" from 0x110000 to 0x4010ffff 0HexTriplet; = hex color specifier
Various new characters, including a lot of dumb PUA stuff
(Update-on-write interface on this page for the renderer)
This version is hard-modded in part because I didn't know about Char8.define(). All of the advantages of Char8 have been lost in exchange for messing around.