Salla Docs
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Recurring Payments API
  • App Functions
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Change Log
Salla CLI
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Recurring Payments API
  • App Functions
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Change Log
Salla CLI
Salla - Opensource
Salla - Developers Community
  1. App Functions
  • Welcome 👋
  • What are App Functions?
  • Get Started
  • Supported Events
  • Testing
  • Responses
  • NodeJs Support
  • Merchants Events
    • Brand Events
    • Cart Events
    • Category Events
    • Communication Events
    • Customer Events
    • Invoice Events
    • Review Events
    • Shipment Events
    • Shipping Company Events
    • Shipping Zone Events
    • Special Offer Events
    • Store Branch Events
  • Customers Events
    • Account Events
    • Cart & Checkout Events
    • Product Events
    • Promotion & Coupon Events
    • Wishlist Events
  1. App Functions

NodeJs Support

Node.js Support in App Functions#

Overview#

App Functions are executed in a V8 isolate runtime, which is a lightweight and secure environment. This runtime is distinct from a full Node.js environment. Consequently, while App Functions support JavaScript, they do not support all the native APIs and core modules that are available in Node.js.
This document outlines the level of support for Node.js features within the App Functions environment.

Unsupported Node.js Core Modules#

The following Node.js core modules are not available in App Functions. Attempting to use them will result in an error.
child_process
cluster
dgram
fs
fs/promises
http (for creating servers)
https2
net
repl
readline
tls
worker_threads
zlib (Node.js API)

Examples of Unsupported Usage#

Here are some examples of code that will not work in the App Functions environment.
Filesystem Access:
Creating a TCP Server:
Spawning a Subprocess:
Creating an HTTP Server:
Creating a UDP Socket:

Partially Supported Modules#

Some Node.js modules are partially supported, meaning that only a subset of their functionality is available.
crypto: Only the Web Crypto API is supported.
buffer: Basic buffer functionality is available.
stream: Only WHATWG streams are supported.
os: Partially supported.
path: Partially supported.
util: Partially supported.
events: Partially supported.

Supported Patterns#

While direct Node.js APIs for networking are limited, you can make outbound HTTP requests using the fetch API, which is a standard web API.

External Packages#

Currently, App Functions do not support importing external packages or libraries from sources like npm. We are actively working on enhancing the platform to include support for external libraries in future versions.
Modified at 2025-11-13 16:28:46
Previous
Responses
Next
Brand Events