{ } qjs-modules

Runtime compatibility: qjsm against Node, Bun and Deno

Measured 2026-11-03 with qjsm built from b17790ce, against node 23.11.1, bun 1.4.2 and deno 2.9.7. Each cell counts the members (flat names, nested ones such as posix.join included) that the runtime exports out of the members node exports, as listed by utilities/describe.sh --flat --no-arguments. Names only: a method with a different behaviour still counts, behaviour is tested by the @portable tests (tests/unittests/test-*.js also run under node, bun and deno).

Reproduce one row:

for rt in qjsm node bun deno; do utilities/describe.sh -r $rt --flat --no-arguments node:events > /tmp/events.$rt; done

Node modules

Modulenodeqjsmbundeno
node:fs258168253228
node:fs/promises91729189
node:path52315252
node:util107105100103
node:events81497781
node:buffer145106138142
node:child_process16131515
node:os29292929
node:url72337055
node:assert31233131
node:timers1671512
node:timers/promises6555
node:perf_hooks111369830
node:readline46134646
node:string_decoder9598
node:module173157150140
node:process481247270247
node:wasi6646

node:zlib, node:crypto, node:net, node:http are not provided by qjsm. node:stream is not provided on purpose: Node's stream.Readable/Writable/Duplex/Transform are a second stream model; the WHATWG ReadableStream, WritableStream and TransformStream of stream are the streams here.

What the top-level misses are (qjsm against node, from the same dump):

ModuleMissing top-level exports
node:fsF_OK R_OK W_OK X_OK (the constants are in fs.constants), ReadStream, WriteStream, FileReadStream, FileWriteStream, fchmod, fchown, futimes, lchmod, lchown, lutimes, glob, opendir, statfs, watchFile, unwatchFile (sync and callback forms)
node:fs/promisesglob, lchmod, statfs
node:pathmatchesGlob, win32
node:eventsEventEmitterAsyncResource, addAbortListener, captureRejections, errorMonitor
node:urlURLPattern, the legacy Url, parse, format, resolve, domainToASCII, domainToUnicode, urlToHttpOptions
node:assertCallTracker
node:bufferFile, resolveObjectURL, transcode
node:perf_hookscreateHistogram, monitorEventLoopDelay, PerformanceResourceTiming
node:timerspromises property and the internal active, enroll, unenroll

Globals

Globalnodeqjsmbundeno
process86698074
Buffer11293109111
URL22152222
URLSearchParams18151818
AbortController7556
AbortSignal12101012
Blob12111011
File7556
TextEncoder7667
TextDecoder8778
EventTarget9667
ReadableStream14121314
WritableStream9789
TransformStream7567
WebAssembly18151818
Intl14111414
console3462727
performance2112

structuredClone, crypto, fetch, queueMicrotask, setTimeout exist everywhere. fetch, URL, FormData and the other network globals come from qjs-lws when it is in the module path (see node and globals); the count for URL above is the standalone url module.

Bun

Bun has 115 top-level members in bun 1.4.2 and 46 in qjsm, all 46 of qjsm's also in bun. Provided: file(), write(), stdin, stdout, stderr, mmap(), plugin(), Glob, JSON5, JSONC, JSONL, ArrayBufferSink, password, inspect(), deepEquals(), deepMatch(), which(), sleep(), sleepSync(), peek(), nanoseconds(), stringWidth(), stripANSI(), escapeHTML(), concatArrayBuffers(), allocUnsafe(), indexOfLine(), readableStreamTo{Array,ArrayBuffer,Blob,Bytes,JSON,Text}(), fileURLToPath(), pathToFileURL(), gc(), env, argv, main, isMainThread, version, revision, origin, and serve/fetch when qjs-lws is in the module path. See bun and bun-util.

Not provided, among others: Bun.$, spawn()/spawnSync() (use child_process), sql()/SQL, build(), S3Client, RedisClient, CryptoHasher/hash(), gzipSync() and the other compression functions, TOML, YAML, XML, semver, Transpiler, FFI, cron(), color().

Deno

Deno is a target of the @portable tests for the shared Node-style surface (through tests/deno-import-map.json). Deno.* itself is not implemented.