1
votes

I have created a browser plugin based on Firebreath framework. Now I want to load the plugin into Node.js and make the javascript code communicate with the plugin. My draft idea is creating a Node.js C++ add-on to wrapper the plugin. Node.js loads the add-on. The add-on loads the plugin. The function call between the javascript code and the plugin code is via the add-on.

I want to consult the experts before moving ahead. Does anyone have the experience to make the node.js script communicate with firebreath plugin? Is my idea possible? Please share more details.

Thanks, Jeffrey

1
Very beautiful question.Asad Hasan

1 Answers

1
votes

It's certainly possible, but it may be more trouble than it's worth. What I'd probably do instead is try to abstract out the JSAPI stuff (ScriptingCore project) and make an adapter that wraps a JSAPI object with a node object. Actually loading the full plugin as-is would require a lot of work. It's doable, but it would be a bit of a pain.

... I wrote FireBreath, so I do know what I'm talking about =]