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.
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 3000See 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_asyncRun the development checks with:
cargo fmt --all
cargo clippy --all-targets --all-features -- -D warnings
cargo testReleases 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).