v0.9.0 · Web Workers & .wasm · SSR Edge Target · WASM Plugin ABI · Zero Node.js

Frontend tooling at native Rust speed.

zerho is a Zero-Node, 100% Rust dev server and production bundler built on oxc, lightningcss, blake3, and wasmtime. Ship React, Preact, TypeScript, and modern web apps with sub-millisecond transforms and zero JS runtime overhead.

cargo install --git https://github.com/glastor-core/jester zerho-cli
zerho v0.9.0 · zero-node build output
$ zerho build --analyze
✓ Graph resolved (5 modules) · redb cache hits: 5/5 (1.7 µs)
✓ Scope-hoisted & minified with oxc · Brotli .br emitted
  dist/assets/index-8f4a9c.js      1.42 kB  │ brotli: 0.61 kB │ sha384-SRI
  dist/assets/chunk-3b1e2d.js      0.78 kB  │ brotli: 0.39 kB │ modulepreload
  dist/stats.html                  interactive treemap ready
✓ Built in 19.32 ms (0 Node.js processes · 0 secrets leaked)
Rust Edition 2024 TypeScript Native React / Preact / JSX WebAssembly WIT
16.60 MB
Single Native Binary
Zero Node.js · 100% Safe Rust
0.0017 ms
Warm redb Cache Hit
1.7 µs ACID B-tree lookup · basic-ts
0.548 ms
Cold Oxc TSX Transform
0.553 ms on TypeScript entry
19.32 ms
Warm Build (basic-ts · 3 mods)
43.04 ms cold · 763 ms on 500 mods
Core Capabilities

Everything modern web apps need, compiled to native code.

No Babel, no PostCSS plugins, no Rollup glue, and no 400 MB node_modules toolchain tax. Declarative zerho.toml configuration drives the entire pipeline.

Native Oxc & LightningCSS pipeline, zero JS bridges.

TypeScript, JSX, CSS Modules, SVG, and WebP optimization execute directly inside one Rust binary — no Babel, PostCSS, Rollup, or sharp.

zerho.toml · compiler & assets
[build]
minify = true           # oxc_minifier + mangler + DCE
scope_hoisting = true   # zero runtime module wrappers
sourcemap = "linked"

[assets]
optimize_svg = true     # pure-Rust SVG minifier
optimize_images = true  # PNG/JPG -> lossless WebP
  • Oxc Compiler, Minifier & Scope Hoisting

    Sub-millisecond TS/JSX transforms, lexical Scope Hoisting, AST constant folding/DCE, mangling, and Source Maps v3.

  • LightningCSS, @import & url() Rewriting

    Built-in CSS nesting, *.module.css scoped class maps, @import inlining, and blake3-hashed font/image asset URLs.

  • Pure-Rust SVG & WebP Image Optimizer

    Strips SVG metadata/comments and converts PNG/JPG assets to smaller WebP automatically without Node or native C++ addons.

Real --release Benchmarks

Measured on real builds, not synthetic micro-loops.

Every number below includes exact hardware specs, cold vs. warm redb timings, and a 1-command zerho bench --json harness so any developer can verify on their own machine.

Toolchain Disk Footprint

Single static binary vs. Node.js runtime + typical Vite/Rollup devDependencies

zerho v0.9.0 (Zero-Node) 16.6 MB
Node.js + Vite + Rollup/Plugins ~240 MB

Cold vs. Warm redb Incremental Cache

Measured with zerho bench --synthetic 500 (--release)

Warm redb build (500 TS modules) 763.5 ms (1.64× faster)
Cold build (empty cache) 1,254 ms

basic-ts (3 mods)

Scope Hoisted

TypeScript + CSS, Scope Hoisting, oxc_minifier, Brotli .br (458 B), SHA-384 SRI & CSP.

0.553 ms Cold Oxc
1.7 µs redb Hit
19.32 ms Warm Min

react-tsx (5 mods)

Code Split

React TSX + CJS-to-ESM + dynamic import() splitting + 2 Source Maps v3 + Brotli (1.00 KB).

0.548 ms Cold TSX
2.0 µs redb Hit
29.18 ms Warm Min

synthetic-500

499 Shaken

Deterministic 500-module TS graph: rayon parallel + Scope Hoisting + oxc_minifier + Brotli (1.53 KB).

1,254 ms Cold Build
763.5 ms Warm Min
655/s Mods/sec
Verified Reference Hardware (benchmarks/results.json) — AMD Zen 3 (16 threads) · Windows 11 x86_64 · rustc 1.96.1 · zerho --release (16.60 MB) · scope_hoisting=true minify=true brotli=true sri=true
cargo build --release -p zerho-cli && ./target/release/zerho bench --synthetic 500 --iterations 5 --json
Dimension zerho v0.9.0 Vite 8 (Rolldown + Node.js)
Runtime Requirement Zero-Node (single 16.60 MB native binary) Node.js + npm/pnpm runtime required
Configuration & Migration Declarative zerho.toml + JSON Schema + zerho migrate Executable vite.config.ts evaluated in Node
JS / TS / JSX & CSS Engine 100% in-process oxc (Fast Refresh, Minifier, Scope Hoisting) + lightningcss + WebP/SVG N-API bridge between JS host & Rust crates
Persistent Transform Cache ACID redb B-tree + blake3 + HTTP Remote Team Cache (0.0017 ms warm hits) JS filesystem & dep pre-bundle cache
Web Platform & Edge SSR Web Workers, .wasm streaming, MPA, Library Mode & --ssr Edge bundles Requires extra SSR/worker/library plugins & Node config
Plugin Isolation Fuel-metered wasmtime WASM (zerho:plugin@0.1.0) + UTF-8 string hooks Full-privilege Node.js JS plugins
DevTools & Memory Safety Built-in /__inspect + Live Treemap, dist/stats.html & unsafe_code = "forbid" External plugin (vite-plugin-inspect)
Zero-Friction Adoption

Migrate from Vite in 1 command.

Run zerho migrate inside any existing Vite project. It inspects vite.config.*, package.json, and tsconfig.json to generate a validated zerho.toml in milliseconds.

vite.config.ts Before · 6 npm plugins
// vite.config.ts (requires Node.js + 6 npm plugins)
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import tsconfigPaths from 'vite-tsconfig-paths';
import compression from 'vite-plugin-compression';
import { visualizer } from 'rollup-plugin-visualizer';

export default defineConfig({
  plugins: [react(), tsconfigPaths(), compression({ algorithm: 'brotliCompress' }), visualizer()],
  server: { port: 5173, proxy: { '/api': 'http://127.0.0.1:8080' } },
  build: { sourcemap: true, minify: 'esbuild' },
});
zerho.toml After · zerho migrate
# zerho.toml — auto-generated by `zerho migrate` (0 Node plugins)
[project]
entry = "src/main.tsx"
framework = "react"

[server]
port = 5173
[server.proxy]
"/api" = "http://127.0.0.1:8080"

[build]
minify = true
scope_hoisting = true
brotli = true
sourcemap = "linked"
analyze = true
Modular Rust Workspace

9 focused crates. 60/60 passing tests. Pedantic clean.

Every layer is cleanly decoupled in a Rust Edition 2024 workspace enforced with clippy::pedantic -D warnings and unsafe_code = "forbid".

Edition 2024 unsafe_code = "forbid" 60/60 tests
  1. 01 zerho-core Core identifiers (ModuleId, blake3 ContentHash), ModuleKind, Framework, and typed error hierarchy.
  2. 02 zerho-config Declarative zerho.toml parser, validator, MPA/SSR/budgets/security config, and JSON Schema generator.
  3. 03 zerho-resolver Native ESM/CJS & tsconfig.json paths resolution powered by oxc_resolver, package.json exports, and virtual modules.
  4. 04 zerho-graph Incremental module graph, DFS circular dependency detector, embedded redb cache, and HTTP remote team cache.
  5. 05 zerho-plugin Native Plugin trait (DefinePlugin), fuel-metered wasmtime v29 host with UTF-8 string hooks, and zerho:plugin@0.1.0 WIT.
  6. 06 zerho-transform Oxc TS/JSX compiler, Minifier/Mangler, Scope Hoisting, Barrel & CJS pre-bundler, Web Workers, CSS @import/url(), and SVG.
  7. 07 zerho-server Zero-Node axum + tokio + notify dev server, WebSocket HMR, /@zerho/bundle, /__inspect Live Treemap, and Brotli PreviewServer.
  8. 08 zerho-bundler Rayon parallel bundler with redb cache, Shared Chunks + modulepreload, MPA, SSR Edge target, WebP, SRI/CSP, and stats.html.
  9. 09 zerho-cli Single native CLI binary: dev, build (--analyze, --watch, --ssr), migrate, check (--strict), preview, bench, init, schema, and wit.

Great fit today (v0.9.0)

  • •React, Preact, and TypeScript SPAs, MPAs, and dual-format libraries ([build.lib]).
  • •Teams wanting zero Node.js in CI/CD, strict SRI/CSP security, and deterministic redb caching.
  • •Web Workers, streaming .wasm imports, and Edge SSR bundles (--ssr).

Stay on Vite for now if…

  • •Your app relies heavily on Vue SFCs, Svelte, Nuxt, SvelteKit, or Astro's Vite plugin graph.
  • •You depend on legacy Rollup/Vite JavaScript plugins that have no WASM or declarative equivalent yet.

Ready to drop Node.js from your build pipeline?

Explore the full zerho.toml reference, CLI commands, HMR API, and WASM WIT contract.

Open Documentation