Web Toolchain
Elide includes native-speed web tooling powered by best-in-class Rust libraries:
- JS/TS: OXC (Oxidation Compiler) for TypeScript transpilation
- CSS: LightningCSS for compilation and optimization (coming soon as CLI)
- Packages: Orogene for npm-compatible dependency installation (coming soon)
What works today
Run JavaScript and TypeScript files directly — TypeScript is transpiled automatically via OXC:
> elide run app.js
> elide run script.tsSupported extensions: .js, .mjs, .cjs, .ts, .mts, .cts.
Serve static files over HTTP:
> elide serve ./distStart a development server with live reload:
> elide dev ./srcelide dev automatically injects a live-reload script into HTML pages and refreshes the browser when files change.
Process scripts and assets for websites, even without an elide.pkl manifest present:
> elide web build src/*.ts # Precompile scripts
> elide web build assets/*.png # Compress images
> elide web build pages/*.md # Render markdown into HTML
> elide web build src/* # Process all known assets, copy the restBy default, processed assets are written to dist/. This can be changed using the --out flag:
> elide web build src/* --out publicCommands
| Command | Description | Status |
|---|---|---|
elide run | Run JavaScript and TypeScript files | Available |
elide serve | Serve static files over HTTP | Available |
elide dev | Development server with live reload | Available |
elide install | Install NPM dependencies | Planned |
elide build | Build and optimize web assets (CSS, HTML, JS, images) | Available |
elide web build | Build individual web assets, without needing a project manifest | Available |
Sub-pages
JavaScript & TypeScript →
Run JS/TS files with elide run. TypeScript is transpiled automatically via OXC.
Styling (CSS) →
CSS compilation and optimization via LightningCSS (coming soon as a standalone command).
Markdown →
Markdown rendering to HTML (coming soon as a standalone command).
Media →
Image optimization and format conversion (coming soon as a standalone command).
NPM Installer →
NPM dependency resolution via Orogene (coming soon).