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 →

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.1.0

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.