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

APIStatus
fetch, Request, Response, HeadersShipping
ReadableStream / WritableStreamShipping
crypto.subtle (WebCrypto)Shipping
URL, URLSearchParams, structuredCloneShipping
ICU-backed IntlShipping

Node platform

fs, http, https, path, crypto, os, net, tls, worker_threads, stream, buffer, and more, re-implemented, not shimmed.

Cruft-native

ModuleSurface
cruft:sqliteopen(path){ query, run, close }
CompartmentTC39 Compartments: realm isolation as a built-in constructor
CruftScriptA TypeScript-superset source language compiling to Cruft bytecode