Node.js for Mobile Apps¶
The power of Node.js inside your mobile apps¶
Node.js for Mobile Apps is a toolkit for integrating Node.js into mobile applications. Its core component is a library - available for Android and iOS - that lets you add a Node.js background worker to any mobile app. It also includes plugins for React Native and Cordova.
A full-fledged Node.js runtime for Android and iOS¶
On iOS, V8 cannot run because the operating system forbids just-in-time compilation; so instead of V8, we use our own port of the ChakraCore engine, on top of the integration with Node that Microsoft created in Node.js on ChakraCore. ChakraCore has a well-optimized, pure interpreter mode which complies with iOS’ restrictions.
On both platforms, the result is a runtime that ensures the highest level of compatibility with Node.js.
On top of that, Node.js for Mobile Apps adds a few features specifically aimed at using Node.js in mobile applications.
Node.js for Mobile Apps is not endorsed by or affiliated with the Node.js Foundation.
Write less (platform-specific) code¶
Does your business logic really need to be written in a different language and using different APIs for each mobile platform? Node.js abstracts a great deal of functionality in a truly cross-platform way. And with its module ecosystem, you have an almost unlimited toolbox of reusable code at your disposal.
Furthermore, the Node.js runtime can be used to execute long running tasks or other business logic in the background, without slowing down the app UI.
Free and open source¶
The source code is available on GitHub.