I want to create some website with games. Other people would be able to exectue their own code (upload it or use some kind of editor on my website). I want it to have API which my code would be able to use.
My vision is: games would have loops and boards and users would be able to control them to proviade unique variants. Players would be able to play these variants.
Is there any way that I can safely run sombody's other code on my node.js and be sure that it won't be taking too much computational power?
If it possible, is there a way to import (and remove from memory) code without restarting whole node.js process?