@maple i remember they did have that functionality Back In The Day where you could play with someone's petz in a very limited manner via a block of code that you popped on your website - i can't remember exactly what it roped in to handle that (java, flash, whatevs), it's been a hot minute
i wonder if you could pop the hood on that one and have fun disassembling it for programming ideas? (not that i want to chuck another project on your shoulders, mind, but Potentially Interesting Thing?)