VaelJS treats node:* compatibility as an opt-outable automation and npm-ESM interoperability layer rather than a drop-in Node.js clone. This reference audits every built-in specifier in Node.js 22 LTS (Jod ) and Node.js 24 LTS (Krypton ) against vjs (V8) and vjs-lite (QuickJS), backed by our pinned upstream conformance harness.
Release Scope (v0.0.0-alpha.3)
All 39 vjs / 27 vjs-lite node:* modules below (Initial Core, Tier 1, and Tier 2) are live in v0.0.0-alpha.3 .
Classification
Count
vjs (V8)
vjs-lite (QuickJS)
Scope
Shipped (Initial Core)
11
11
10 (sync)
Core automation & npm ESM primitives (node:fs/promises is V8-only)
Shipped (Tier 1 — CLI & ESM Core)
14
14
12 (sync / pure JS)
assert, assert/strict, events, querystring, stream*, string_decoder, timers* (V8-only), util*, zlib
Shipped (Tier 2 — Networking & Diagnostics)
14
14
5 (metadata / sync)
async_hooks, console, diagnostics_channel, dns*, http, https, module, net, perf_hooks, readline*, tls, tty
Not Planned (Public)
19
0
0
Out of scope or replaced by vael:* / Rust embedding
Not Planned (Internal node:_*)
14
0
0
Private Node internals coupled to libuv / OpenSSL / http_parser
Total (module.builtinModules)
72
39 shipped
27 shipped
Plus 2 post-Node-24 experimental modules (node:quic, node:ffi) out of scope
Canonical node: specifiers only: Bare specifiers like "fs" or "path" never alias node:* unless explicitly mapped in vael.jsonc. node:* modules are omitted from Vael.getBuiltInModulesList() and Vael.getBuiltInModule("node:*") returns undefined.
Zero ambient Node or Web globals: globalThis exposes only Vael and console. globalThis.process, globalThis.Buffer, globalThis.URL, and require remain undefined.
Strict ESM-only, zero CJS, zero N-API: .cjs, .cts, .node native addons, and .js inside packages without "type": "module" fail closed.
Engine isolation & zero-unsafe core: vaeljs-node-core carries #![forbid(unsafe_code)] with zero JS-engine or Tokio dependencies; vjs-lite keeps a pure microtask queue with no host timers or TCP listeners.
Opt-outable at build and runtime: Enabled by default via the node-compat Cargo feature; disable at build time with --no-default-features or per invocation with --no-node-compat. Live exports are verified 1:1 against vaeljs-dts by dts_drift.
Conformance is verified against pinned upstream test corpora recorded in tests/node_compat/UPSTREAM.lock and tests/node_compat/node-compat-tests.jsonc:
Dimension
Pinned Value
Upstream Node.js
v22.14.0 (5d2feb257bcee090e57900eb51720171a6aa92f3)
Upstream WPT
f420e4b755c5545f8751dbde5e8b70985e4b09f5
SHA-256 Lock-Verified Files
39 (37 node/parallel/*.mjs + 2 wpt/url/*.json)
vjs Scorecard (linux, live capture)
16 passed , 23 categorized skips , 0 unexpected failures (out of 39 entries)
vjs-lite Manifest Targets
15 pass , 24 categorized skips (test-stream-pipeline-queued-end-in-destroy.mjs skipped under engine-scope due to V8-only node:timers)
WPT url (wpt_url.test.js, vjs & vjs-lite)
3 / 3 test suites passing (915 urltestdata.json cases + 284 setters_tests.json cases + MAX_URL_BYTES/NUL/zero-globals check)
Module / Suite
Total
Passed
Skipped
Failed
Notes
node:buffer
5
4
1
0
compare, concat, equals, swap pass; indexof skipped (policy-divergence: strict latin1 > U+00FF rejection)
node:path
9
3
6
0
dirname, extname, isabsolute pass; basename/resolve (policy-divergence), join/normalize/parse-format/relative (missing-api win32 edge cases)
node:stream
4
4
0
0
pipeline-queued-end-in-destroy, readable-ended, transform-callback-twice, writable-ended-state all pass
node:string_decoder
1
1
0
0
test-string-decoder.mjs passes
node:url (wpt_url + Node)
3
1
2
0
wpt_url.test.js passes (915 URL + 284 setter vectors); test-url-format/parse-invalid-input skipped (node:test / legacy url.parse)
node:zlib
2
2
0
0
test-zlib-const.mjs & test-zlib-crc32.mjs pass
policy (policy_divergences.test.js)
1
1
0
0
Verifies shell: true rejection, SHA-2-only crypto, and fail-closed hex Buffer.from
node:assert
1
0
1
0
Skipped (unsupported-module: imports node:test)
node:crypto
2
0
2
0
Skipped (policy-divergence MD5/SHA-1 rejected + missing-api createSecretKey)
node:events
1
0
1
0
Skipped (unsupported-module: requires --expose-internals)
node:fs
3
0
3
0
Skipped (unsupported-module: --expose-internals / node:worker_threads; missing-api: callback mkdtemp)
node:os
1
0
1
0
Skipped (policy-divergence: frozen module exports vs Object.defineProperties(os, ...))
node:querystring
1
0
1
0
Skipped (unsupported-module: imports node:vm)
node:timers/promises
1
0
1
0
Skipped (unsupported-module: imports node:test)
node:util & node:util/types
4
0
4
0
Skipped (unsupported-module: --expose-internals/node:vm; missing-api: util.inspect.defaultOptions / callbackify metadata)
Every skipped upstream Node test in node-compat-tests.jsonc is explicitly categorized so regressions cannot hide:
unsupported-module (9 tests): Upstream test files import Node internals (--expose-internals, internal/util, internal/test/binding, internal/event_target) or intentionally out-of-scope modules (node:test, node:vm, node:worker_threads).
policy-divergence (5 tests): VaelJS intentionally diverges for security or immutability:
Rejects MD5, SHA-1, SHA-224, and RIPEMD in node:crypto (test-crypto-hash.mjs).
Rejects code points > U+00FF in latin1 buffer indexing (test-buffer-indexof.mjs).
Freezes module namespace exports (test-os-eol.mjs).
Preserves full filename in path.basename when suffix equals basename (test-path-basename.mjs) and rejects relative Win32 drive bases without an absolute root in path.win32.resolve (test-path-resolve.mjs).
missing-api (9 tests): Specific unimplemented legacy or edge-case surfaces (KeyObject / createSecretKey, callback fs.mkdtemp, legacy url.parse, util.inspect.defaultOptions, Win32 path.win32 UNC/separator edge cases).
WPT url explicit divergences (wpt_url.test.js): Out of 915 urltestdata.json vectors (839 pass directly, 76 known divergences) and 284 setters_tests.json vectors (183 pass directly, 101 known divergences), divergences are pinned per-vector to MAX_URL_BYTES (64 KiB), leading/embedded NUL byte rejection, strict decodeURIComponent query parsing, and rust-url 2.5.9 WHATWG edge cases.
Module
vjs (V8)
vjs-lite (QuickJS)
Shipped Scope & Notes
node:buffer
Yes
Yes (parity)
Buffer (extends Uint8Array), from, alloc, allocUnsafe (zero-filled), concat, compare, equals, indexOf, swap16/32/64, isBuffer, isEncoding, byteLength, toString, toJSON. Fails closed on invalid hex/base64 and invalid latin1 > U+00FF.
node:child_process
spawnSync, execFileSync, execFile
spawnSync, execFileSync
Direct shell-free execution (shell: true throws ERR_UNSUPPORTED), 4,096 args/env cap, 10 MiB default maxBuffer. Async execFile is V8-only (vjs).
node:crypto
Full
Sync + webcrypto
randomBytes, randomUUID, createHash, createHmac, createCipheriv/createDecipheriv, pbkdf2Sync, scryptSync, hkdfSync, timingSafeEqual, webcrypto. Async scrypt/hkdf/pbkdf2/randomFill are V8-only. SHA-2 only (MD5/SHA-1 rejected).
node:fs
Sync + .promises
Sync only
Sync file, dir, stat, link, accessSync, chmodSync, mkdtempSync, constants; fs.promises is V8-only.
node:fs/promises
Yes
—
Async filesystem promises via Tokio spawn_blocking (V8-only).
node:os
Yes
Yes (parity)
platform, arch, EOL, homedir, tmpdir, hostname, cpus, endianness, type, machine, release, availableParallelism, devNull, constants.
node:path
Yes
Yes (parity)
Host dialect (win32 or posix), join, resolve, normalize, relative, dirname, basename, extname, parse, format, isAbsolute, posix, win32 (64 KiB path bound, NUL rejected).
node:path/posix
Yes
Yes (parity)
Forced POSIX dialect (sep = "/", delimiter = ":").
node:path/win32
Yes
Yes (parity)
Forced Win32 dialect (sep = "\\", delimiter = ";"), drive/UNC aware.
node:process
Yes
Yes
argv, cwd, chdir, env (Proxy), exit, exitCode, platform, arch, pid, version, versions, hrtime (+ .bigint()).
node:url
Yes
Yes (parity)
URL (canParse, parse), URLSearchParams, fileURLToPath, pathToFileURL (64 KiB MAX_URL_BYTES cap, NUL rejected).
Module
vjs (V8)
vjs-lite (QuickJS)
Shipped Scope
node:assert
Yes
Yes
Adapter over vael:assert (strictEqual, deepStrictEqual, deepEqual, match, ifError, AssertionError, etc.).
node:assert/strict
Yes
Yes
Strict-mode alias of node:assert.
node:events
Yes
Yes (pure JS)
EventEmitter, once, on, getEventListeners, setMaxListeners, addAbortListener.
node:querystring
Yes
Yes
Pure-JS parse, stringify, escape, unescape, encode, decode.
node:stream
Yes
Yes (pure JS)
Readable, Writable, Duplex, Transform, PassThrough, pipeline, finished, compose, addAbortSignal.
node:stream/consumers
Yes
Yes
text, json, buffer, arrayBuffer, bytes, blob.
node:stream/promises
Yes
Yes
Promise-returning pipeline and finished.
node:stream/web
Yes
Yes
WHATWG ReadableStream, WritableStream, TransformStream, queuing strategies.
node:string_decoder
Yes
Yes
Pure-JS StringDecoder for multi-byte UTF-8/UTF-16LE sequences across chunks.
node:timers
Yes (Tokio)
—
setTimeout, setInterval, setImmediate, clear* (vjs-lite deliberately omits host timers).
node:timers/promises
Yes (Tokio)
—
Promise-based setTimeout, setInterval, setImmediate, scheduler.wait.
node:util
Yes
Yes
format, inspect, promisify, callbackify, deprecate, inherits, parseArgs, styleText, TextEncoder, TextDecoder, types.
node:util/types
Yes
Yes
Engine tag checks (isUint8Array, isDate, isRegExp, isPromise, isNativeError, isProxy, etc.).
node:zlib
Sync + Stream
Sync + crc32
Sync gzipSync/gunzipSync/deflateSync/inflateSync/brotli*/zstd* + crc32; async & streaming classes on vjs.
Module
vjs (V8)
vjs-lite (QuickJS)
Shipped Scope
node:async_hooks
Yes (AsyncLocalStorage)
—
Context propagation (AsyncLocalStorage, AsyncResource) without legacy createHook().
node:console
Yes
Yes
Thin adapter over vael:console plus Console constructor.
node:diagnostics_channel
Yes
Yes
Lightweight pub-sub (channel, hasSubscribers, subscribe, tracingChannel).
node:dns
Yes (Tokio)
—
lookup, resolve*, Resolver, getServers.
node:dns/promises
Yes (Tokio)
—
Promise variant of node:dns.
node:http
Yes (hyper/Tokio)
—
HTTP/1.1 request, get, createServer, Agent, Server, IncomingMessage, ServerResponse, STATUS_CODES, METHODS.
node:https
Yes (rustls + http)
—
HTTPS client/server wrapper over node:http + node:tls.
node:module
Yes (metadata)
Yes (metadata)
builtinModules, isBuiltin, findPackageJSON. createRequire remains excluded / ERR_UNSUPPORTED (zero-CJS invariant).
node:net
Yes (Tokio TCP/Unix)
—
Socket, Server, createServer, connect, createConnection, isIP*, BlockList, SocketAddress.
node:perf_hooks
Full
Subset
performance, PerformanceEntry, PerformanceMark, PerformanceMeasure, PerformanceObserver, constants; monitorEventLoopDelay is V8-only.
node:readline
Yes
—
Line-oriented CLI input over node:stream, node:tty, and node:events.
node:readline/promises
Yes
—
createInterface with async question() and [Symbol.asyncIterator].
node:tls
Yes (rustls)
—
TLSSocket, connect, createServer, rootCertificates over rustls + webpki-roots.
node:tty
Full
isatty only
isatty(fd) via std::io::IsTerminal; ReadStream/WriteStream classes are V8-only.
Node.js Specifier
Why Excluded
VaelJS Alternative
node:sqlite
Redundant built-in database wrapper
vael:db (SQLite + opt-in network drivers, strict @name/? binding, redacted errors)
node:test, node:test/reporters
Redundant test runner
vael:test (vjs test / vjs-lite test) + vael:assert
node:http2
hyper in vjs intentionally enables HTTP/1.1 only
Terminate HTTP/2 at reverse proxy / use vael:http
node:sea
Node Single Executable Application blob API
Rust embedding (vaeljs-lite-core / include_bytes!)
node:wasi
.wasm modules are rejected by vaeljs-module-policy
Native Rust crates or vaeljs-lite-core host ops
node:v8, node:inspector, node:inspector/promises
V8 heap/CDP internals break QuickJS portability and expand attack surface
Engine-neutral diagnostics (node:perf_hooks , node:diagnostics_channel )
node:vm, node:repl
Arbitrary dynamic eval bypasses static module policy & QuickJS parity
Static ES modules (vael.jsonc + npm:)
node:cluster, node:dgram
Multi-process FD passing / raw UDP out of scope
OS process replication + vael:http
node:domain, node:punycode, node:constants, node:sys
Deprecated in Node.js (Stability: 0 / DEP0040)
try/catch, node:url , fs.constants, node:util
node:trace_events
V8/libuv trace writer
node:diagnostics_channel
node:worker_threads
High isolate/SAB lifecycle complexity; absent in single-threaded QuickJS
vael:crypto *Async worker pool or vael:exec
node:quic, node:ffi (post-Node-24)
Experimental Node 25/26 APIs; raw C FFI conflicts with #![forbid(unsafe_code)]
vael:http and typed Rust host modules
All 14 private Node internal specifiers (node:_http_agent, node:_http_client, node:_http_common, node:_http_incoming, node:_http_outgoing, node:_http_server, node:_stream_duplex, node:_stream_passthrough, node:_stream_readable, node:_stream_transform, node:_stream_wrap, node:_stream_writable, node:_tls_common, node:_tls_wrap) are tied to libuv/OpenSSL/http_parser internals and are permanently out of scope.