Skip to main content

Installation

Pick the runtime you want to use first. The highlighting concepts stay the same across all of them.

npm install @lumis-sh/lumis @lumis-sh/themes

Use @lumis-sh/lumis for the per-language WASM runtime and @lumis-sh/themes for bundled themes. Node.js, Bun, Deno, and browsers use the same runtime model.

Notes

  • JavaScript loads parser WASM files at runtime. By default they come from a CDN. See WASM and CDN.
  • Elixir also loads missing root and injected parser WASM on demand and caches verified bytes locally.
  • For local JavaScript parser assets from npm, install per-language packages such as @lumis-sh/wasm-rust or bundle packages such as @lumis-sh/wasm-bundle-web.
  • The CLI caches parsers and custom themes in a local data directory.