this weekend I had a few hours to spare and I wanted to see, if it's possible to get JUCE running inside the browser.
But have a look for yourself: Demo (~1MB javascript), source code and instructions on GitHub.
In case you haven't heard about it, there's a wonderful project called Emscripten that compiles C++ => LLVM IR => javascript. Using that and providing javascript specific implementations of a few JUCE-classes (mainly ComponentPeer) I was able to get a basic GUI application to compile and run.
This is by no means a complete port of the JUCE framework, but merely a proof of concept. That being said, the basics work surprisingly well. Drawing performance looks promising (even though, I've gone the easy route by using the LowLevelGraphicsSoftwareRenderer).
Getting Audio to work via the Web Audio API or via Emscriptens OpenAL wrapper seems entirely possible. OpenGL should also be doable.
Awesome! We saw a talk from the Emscripten guys at CppCon and I was pretty impressed by the hackery/cleverness to get this working. Really impressed you got it to work in a weekend.
Having JUCE apps running in a browser without all the difficult plugin downloads is a huge step forward!
Please don't! Bear in mind, that JUCE already runs a lot of platforms, including Android. I was able to look up how it was done on other platforms. Also it's just slapped together. If one would do this propperly, I'd guess, that would take a little more time…