grain-lang/grain

The Grain compiler toolchain and CLI. Home of the modern web staple. 🌾

3,466

stars

1,990

commits

Reason

primary language

Sep 4, 2026

updated

grain-lang.org/
compiler
functional-programming
grain
language
wasm
webassembly
Browse cluster: WebAssembly Compilation & Tooling

README

Grain

Grain CI Workflow License: LGPL v3 Grain latest release version


Grain is a new programming language that compiles to WebAssembly via Binaryen. For more information about the language, check out grain-lang.org.

If it's your first time here, we recommend that you follow the Grain guide to get up and running.

Contributing

There are tons of ways to contribute to Grain. Check out our contributing guide for more info and come chat with us on Discord! All contributors are held to our contributor code of conduct.

Building

For instructions on how to build Grain from source, please consult the official documentation.

Other Commands

To link the CLI:

npm run cli link

To reset your compiler build:

npm run compiler clean

Copyright ©️ 2017-2025 Philip Blair, Oscar Spencer, & contributors.

Contributors

(top 30 of 58)

ospencer

890 commits

phated

351 commits

spotandjake

260 commits

peblair

171 commits

grain-lang/grain

The Grain compiler toolchain and CLI. Home of the modern web staple. 🌾

3,466

stars

1,990

commits

Reason

primary language

Sep 4, 2026

updated

grain-lang.org/
compiler
functional-programming
grain
language
wasm
webassembly
Browse cluster: WebAssembly Compilation & Tooling

README

Grain

Grain CI Workflow License: LGPL v3 Grain latest release version


Grain is a new programming language that compiles to WebAssembly via Binaryen. For more information about the language, check out grain-lang.org.

If it's your first time here, we recommend that you follow the Grain guide to get up and running.

Contributing

There are tons of ways to contribute to Grain. Check out our contributing guide for more info and come chat with us on Discord! All contributors are held to our contributor code of conduct.

Building

For instructions on how to build Grain from source, please consult the official documentation.

Other Commands

To link the CLI:

npm run cli link

To reset your compiler build:

npm run compiler clean

Copyright ©️ 2017-2025 Philip Blair, Oscar Spencer, & contributors.

Contributors

(top 30 of 58)

ospencer

890 commits

phated

351 commits

spotandjake

260 commits

peblair

171 commits

Languages

Reason

98.0%

OCaml

1.3%