Yes, it's possible. Look into Native Client for direct packaging of any native open-source project. You also might be interested in the chrome.sockets API (that link goes to chrome.socket, but the new chrome.sockets API is better).
To repackage a product, as opposed to a library that was designed to be included in other apps, is probably a lot of work. Good luck!