Today I would like to share my Node-CEF project to whom looking for a Node.js binding to theirs' CEF projects here.
I don't known whether it is suitable to post it in this forum, because Node-CEF is neither an app nor a mod of CEF but an extension library for the CEF.
It is a re-implementation of Node.js using the stable CEF dll-wrapper API, therefore Node-CEF should be compatible with most CEF3 builds without modifying the V8 engine or compiling a custom libcef.dll. Node-CEF is designed to work with general web pages, and it won't crash your render process like other Node.js-CEF glued projects do when any uncaught errors occur.
You can bind Node.js into your CEF project with just a little bit changes to your render process handler:
- Code: Select all
#include <ncjs/RenderProcessHandler.h>
class MyNodeCefApp : public CefApp, public ncjs::RenderProcessHandler {
public:
CefRefPtr<CefRenderProcessHandler> GetRenderProcessHandler() { return this; }
IMPLEMENT_REFCOUNTING(MyNodeCefApp);
};
What you need to do is just changing the inheritance from CefRenderProcessHandler to ncjs::RenderProcessHandler for your CefApp based class.
Here's the repo and docs hosted on GitHub: https://github.com/GPBeta/nc.js
Looking forward to your feedback and pull requests