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.
Elide runs .ts files natively — just elide run script.ts.
What works today
| Capability | What it does |
|---|---|
| JS/TS runtime | Run JavaScript and TypeScript files directly via elide run or elide app.ts. |
| TypeScript stripping | Strip TypeScript syntax with OXC before execution. |
| npm dependencies | Resolve and install package.json or elide.pkl npm dependencies with elide install. |
| HTTP server | Serve files and apps with elide serve; use elide dev for local development. |
| Node compatibility | Use implemented node: modules such as node:fs, node:path, node:crypto, node:test, and node:worker_threads. |
| Web APIs | Use 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.
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
- JavaScript & TypeScript — running and transpiling JS/TS with Elide
- NPM Installer — installing npm packages with Elide
- API Overview — implemented Node, Web, and Elide APIs
- Compatibility Matrix — reported JavaScript, WinterTC, and Node-API results