Azion Edge Runtime and Node.js API compatibility

The compatibility between Azion Edge Runtime and Node.js is an ongoing task, but a set of Node Runtime APIs are listed and compatible with Azion Edge Runtime. The following list of APIs can be imported inside edge functions with the standard import syntax:

import { API } from "import-origin";
APISupport LevelCode sampleComments
async_hooks🟑 Partially supportedAccess code sampleOnly AsyncLocalStorage and AsyncResource are implemented

A polyfill is a code snippet, often used in JavaScript, that brings new features to environments lacking these capabilities. Polyfills are used during build time at Azion and can be configured through the vulcan.config.js file.

Here’s a list of Node APIs supported through polyfills:

APISupport LevelCode sample
buffer🟑 Partially supportedAccess code sample
fs🟑 Partially supportedAccess code sample
crypto🟑 Partially supported-
dns🟑 Partially supported-
http2🟑 Partially supported-
module🟑 Partially supported-
navigator🟑 Partially supported-
path_dirname🟑 Partially supported-
performance🟑 Partially supported-
process🟑 Partially supported-
accepts🟑 Partially supported-
child_process🟑 Partially supported-
cluster🟑 Partially supported-
console🟑 Partially supported-
dgram🟑 Partially supported-
events🟑 Partially supported-
http🟑 Partially supported-
https🟑 Partially supported-
inspector🟑 Partially supported-
net🟑 Partially supported-
os🟑 Partially supported-
path🟑 Partially supported-
perf_hooks🟑 Partially supported-
querystring🟑 Partially supported-
readline🟑 Partially supported-
repl🟑 Partially supported-
stream🟑 Partially supported-
_stream_passthrough🟑 Partially supported-
_stream_readable🟑 Partially supported-
_stream_transform🟑 Partially supported-
_stream_writable🟑 Partially supported-
string_decoder🟑 Partially supported-
sys🟑 Partially supported-
timers🟑 Partially supported-
tls🟑 Partially supported-
tty🟑 Partially supported-
url🟑 Partially supported-
util🟑 Partially supported-
vm🟑 Partially supported-
zlib🟑 Partially supported-

For additional compatibility information:

go to supported Web APIs
go to supported Web Frameworks