JavaScript and TypeScript with Elide

Run JavaScript and TypeScript, install npm dependencies, and serve web apps with Elide

Elide runs JavaScript and TypeScript directly, with TypeScript stripping powered by OXC before execution in Elide’s embedded JavaScript runtime. It also installs npm dependencies through Elide’s embedded npm resolver and serves HTTP apps or static files from the same binary.

Run TypeScript directly

Elide runs .ts files natively — just elide run script.ts.

What works today

CapabilityWhat it does
JS/TS runtimeRun JavaScript and TypeScript files directly via elide run or elide app.ts.
TypeScript strippingStrip TypeScript syntax with OXC before execution.
npm dependenciesResolve and install package.json or elide.pkl npm dependencies with elide install.
HTTP serverServe files and apps with elide serve; use elide dev for local development.
Node compatibilityUse implemented node: modules such as node:fs, node:path, node:crypto, node:test, and node:worker_threads.
Web APIsUse implemented WHATWG and WinterCG globals such as URL, Streams, Encoding, Web Crypto, and DOM events.

Quick example

elide run app.ts
elide install
elide serve dist --port 3000

Installing npm dependencies

Use the package metadata you already have:

elide install

Elide reads package.json and npm dependencies declared in elide.pkl, installs packages under .dev/dependencies/npm, and links node_modules into the project root for compatibility with existing tooling. See NPM Installer and Dependencies.

Current limits

JavaScript and TypeScript execution are available today, but not every Node.js or Web API is complete. Check API Overview and the per-module reference pages for implemented and partial surfaces. For reported Test262, WinterTC, and Node-API results, see the Compatibility Matrix.

Current toolchain limits

Runtime execution, npm installs, static serving, and the documented API pages are the most stable Web surfaces today. Bundling, CSS compilation, Markdown rendering, and media optimization are evolving toolchain areas; prefer smoke-tested examples and per-page limits for exact behavior.

Learn more