JavaScript standard library

One API.
Every runtime.

Focused, typed utilities that behave consistently across Node, Bun, Deno, and browsers where applicable—without hiding the platform underneath.

$ npm install @rcompat/fs

import fs from "@rcompat/fs";

const config = fs.ref("config.json");
const value = await config.json();

Native where it matters.

One contract, selected through runtime export conditions. No runtime guessing in shared code.

Node

Modern web APIs backed by mature Node primitives.

Bun

Native Bun implementations where its platform differs.

Deno

Permission-aware adapters built for Deno itself.

Small pieces. Clear contracts.

Use only what you need. Each package is independently versioned and documented.