Skip to main content
Toolchain

Install Lux

Lux builds from source. There are no prebuilt binaries or package-manager formulas yet β€” when they exist, this page will say so.

Skip the install

The Lux evaluator is compiled to WebAssembly and runs entirely in your browser β€” editor, receipts, live apps, nothing leaves the page. For learning and exploring, there is nothing to install.

play.lux-lang.dev β†’ or the Tour of Lux β†’

Install a prebuilt binary

Lux 0.2.1 ships prebuilt lux binaries for macOS (arm64, x86_64) and Linux (x86_64, aarch64) on GitHub Releases. With cargo-binstall:

cargo binstall openie-lux

# Verify:
lux version
# β†’ Lux v0.2.1

Build from source

Requires a recent Rust toolchain (edition 2024). The lux binary and the canonical formatter build out of the workspace:

# From the joulesperbit workspace β€” builds the `lux` binary:
cargo build --release -p lux-cli

# The canonical formatter is a separate binary:
cargo build --release -p lux-fmt

# Add both to PATH:
export PATH="$PWD/target/release:$PATH"

# Verify:
lux version
# β†’ Lux v0.2.1

What the toolchain gives you

  • lux run β€” execute a program with a per-run energy receipt
  • lux build β€” emit static HTML, JS, WASM, PWA, or native targets
  • lux dev β€” local dev server with hot reload
  • lux-fmt β€” byte-deterministic formatting, CI-gateable
  • lux audit β€” energy auditing across a codebase

Next: the quickstart takes you from zero to a running reactive app in five minutes, and the language specification covers the full surface. Pages on this site are themselves built with Lux.