Distribute cocoa app with meteor.js

Does anyone know if it is possible (and if so, how) to distribute a cocoa application with meteor.js and rendering it through a webview?

What I mean is that I want to launch a meteor server (or node.js) insied of my cocoa application and then with a cocoa webView show the content of what the meteor server is generating.

So the question is how to get meteor/node to be distributed together with the cocoa application so that the user doesn't have to manually install it.

You could embed a compressed archive of the server inside the application package (using copy files build phase of Xcode), and during app startup, unarchive/install/start it possibly using a combination of NSBundle/NSFileManager/NSTask apis. Your app can then view the served pages in a web view using something like http:127.0.0.1:YOUR_PORT/YOUR_APP_DIR.

I am assuming you are not providing your users with a installer (.pkg) since in that case, your installer script would be the take care of the installation part.