Walt JavaScript-like syntax for WebAssembly

What's walt ?

Walt is an alternative syntax for the WebAssembly text format : It's JavaScript with rules.

Walt files compile directly to WebAssembly binary format.

.walt code
.walt
>
>
WebAssembly
.wasm

Walt does all the chemistry

Here is a simple WALT function:

export function fibonacci(n: i32): i32 {
    if (n <= 0) return 0;
    if (n == 1) return 1;
    return fibonacci(n - 1) + fibonacci(n - 2);
}

Let's get started !

Try Walt in the browser

See how it compiles to the WebAssembly text format.

Live demo

Dive in the documentation

Walt is one npm command away from your machine.

Docs

Come see us on GitHub

Walt is an open-source project open to contributions.

GitHub