Skip to content
This repository was archived by the owner on Sep 17, 2026. It is now read-only.

Repository files navigation

alder

A programming language that compiles to JavaScript, with a special focus on Cloudflare. Forked from the Elm compiler and ported to Rust.

Design lives in docs/. The draft grammar and the roadmap live in SPEC.md. All of it is current direction, not final.

Development

Run the source-only web example with SSR, hydration, routing, and HMR:

cargo run -p alder-cli -- dev examples/web-full
cargo run -p alder-cli -- build examples/web-full
cargo run -p alder-cli -- run examples/web-full/dist/server.mjs -- --port 3000

See web development for the smallest two-file app, Cloudflare setup, production artifacts, browser checks, and deployment. The M6 acceptance ledger separates implemented/local verification from the explicitly authorized live-preview deployment gate.

Runnable examples live in examples/ alongside their assertions. For example:

cargo run --bin alder -- run examples/hello
cargo run --bin alder -- run examples/pipes
cargo run --bin alder -- run examples/explicit_async

Run the development checks with:

cargo fmt --all
cargo clippy --all-targets --all-features -- -D warnings
cargo test

Releases use sampo changesets and cargo-dist. Push a changeset to main, merge the release PR, and CI publishes crates, binaries, the Homebrew formula (brew install orbistry/tap/alder), and the npm package (npx @alder-script/cli).

Releases

Contributors

Languages