These Solidity "stack too deep" compiler errors are bittersweet because I think other people would be more insane by them than I am
I'm like David Blaine doing "magic tricks" by just being willing to actually stick a sword through his arm
We just put p5.js and three.js onchain, as composable libraries.
I designed a system for deploying and reading very large files to the EVM, which makes them available for anyone to incorporate into their works.
Thoughts on this technique for serving large files onchain: The main issue is to avoid gas limitations when concatenating huge strings. My solution is to manually copy chunks of data into memory, and then directly manipulate the memory location that stores the string length
He's too modest so I'll splash:
@xaltgeist (who you should follow)
coded contracts to do this and get three.js and p5.js onchain a few months back
xalt's technique use inline datablobs on EVM (via contract storage + assembly tricks to compose large byte arrays in memory)