I am working on a JavaScript application that let's other developers build their own apps on top of it. A framework will be provided for them.
My question:
How do I implement this framework in such a way that developers have access to certain functions or objects. For example, I would like to prevent access to certain properties of window object.
I thought about parsing their codes which I believe is a good solution. But I am not positive that it would work on obfuscated codes.
I would like some suggestions on how I should do it.