One of the primary elements in this kind of integration is the ability to communicate between processes in a simple way. Back in April, we had a little get together of developers that work on various Mozilla applications and projects, and I mentioned working on a json-rpc implementation that could allow Mozilla applications to do just this. Well, a couple weeks ago I got some working code together in our Open Komodo repository.
One of the eventual goals I’d like to get around to is adding a DBGP layer into Firebug, as well as adding other integration points. So I started out working on a generic socket server layer that I could build services on top of. My first service was a simple echo server.
The other service I got implemented is a socket based, full duplex, json-rpc service. I’ve only done the most bare-bone testing on this, but it seems to do the job. A simple macro script in Komodo can popup an alert in Firefox, or do other more tasty things. The nice thing about using json-rpc for the protocol, you can integrate non-Mozilla applications as well.
SD Connector is still early in development, there is plenty I’d like to do with it (e.g. make the server an xpcom service, sandboxing json calls, making the config UI better), but I think it’s at a place where people can play with it, or even contribute! You can grab SD Connector out of our repository if you want to take it for a spin.