APIs & standards
Cruft targets the Node.js package ecosystem as its compatibility surface, built against ECMA-262 and the WHATWG web specifications.
Language
ECMAScript (TC39), including Temporal, Atomics, SharedArrayBuffer, explicit resource management, and ShadowRealm. TypeScript runs with no separate build step.
Web platform
| API | Status |
|---|---|
fetch, Request, Response, Headers | Shipping |
ReadableStream / WritableStream | Shipping |
crypto.subtle (WebCrypto) | Shipping |
URL, URLSearchParams, structuredClone | Shipping |
ICU-backed Intl | Shipping |
Node platform
fs, http, https, path, crypto, os, net, tls, worker_threads, stream, buffer, and more, re-implemented, not shimmed.
Cruft-native
| Module | Surface |
|---|---|
cruft:sqlite | open(path) → { query, run, close } |
Compartment | TC39 Compartments: realm isolation as a built-in constructor |
| CruftScript | A TypeScript-superset source language compiling to Cruft bytecode |