I think this would be a cool feature to have. I’m working on automating the .cast creation for a tutorial, and the final cast file is small enough to be transmitted in the same way.
FWIW, now that I’ve figured out self-hosting (somewhat) this is much less pressing. Still, I think it’s a cool idea! I didn’t want to tax the server with all my small test cases and thought this would be a way to reduce the database clutter on the server side.
There’s a 2k limit on anything that goes through an nginx proxy, which is most things so it has to go in the anchor tag. There’s an 8kb limit on Chrome URLs I think, and most forum software has similar limits. So you’d need Base62 and to compress with xz ideally.
I thought it sounded like fun, but I’m crap at javascript and couldn’t get xz working and used gzip instead. Casts can’t really be much longer than the demo unless you have a quantizer. I’ve mostly written one but it’s not ready for prime time yet, and isn’t in use here:
Also GitHub pages has been down so deploying and testing it has been a pain. The source code is here if anyone wants it: