Can non visual Office Add Ins be created? Is it possible to create an add in that simply responds to any document or email being opened or closed?

From what I can tell this is not possible with the current version of the Office javascript API. The feature for Excel is requested and in the backlog for future development.