Native code in node_modules folder in web-scripts

Some Node.js dependencies installed in the node_modules folder for a Node.js package by npm include native code built with with node_gyp at installation time. It appears it may not be possible to include Node.js dependencies with native code like this in the web/scripts/node_modules folder on Backendless. Is that true, or if it’s not how would one do this, recognizing that just copying assembled native code modules into the node_modules folder is probably not a good idea? Thanks.

Hi Rick,

We do not allow native code execution at the moment. This restriction is primarily a precaution to prevent compromise of the service integrity and misuse (or abuse) of the system resources.

Regards,
Mark

Thanks for tht helpful answer.

One other question if I may. It looks like your Media service includes support for handling video and audio, but not static images. Is that correct? Any chance ImageMagick or the equivalent is available on the platform to support re-sizing of static images? Thanks.

The Media Service allows publishing and streaming of live and on-demand audio and video content. Static images can be loaded using plain HTTP GET :slight_smile:

The ImageMagic capabilities are not available yet, but will be possible with the introduction of Backendless Marketplace (that’s a new thing, I have not mentioned it before, but that’s what we’ve been working on).

Regards,
Mark