It must have been an LLM. I think the whole thing came from an LLM, the page claiming it was some kind of amazing lib for ASCII art, "revolutionizing text-only interfaces"; the code itself, baffling and nonsensical to anyone who can actually code.
No idea *why* such a thing was created, but that must be what it was.
I now fully viscerally understand artists' dismay at AI nonsense, because when you can see that a thing is blatantly completely shite, nonsensical, yet people promote it, use it..