web-devkits / Wasmnizer-ts

Toolchain for compiling TypeScript to WasmGC
Apache License 2.0
292 stars 23 forks source link

Wasmnizer-ts

Toolchain for compiling TypeScript to WasmGC

Overview

Wasmnizer-ts utilizes WasmGC to compile TypeScript source code into WebAssembly bytecode, and support dynamic type (such as any) through host APIs. The Wasmnizer-ts now supports a strict subset of TypeScript and continuously strives to accommodate more semantics.

There are three components in Wasmnizer-ts:

Note: This project is highly experimental and under active development, DO NOT use in production

Features

Execution environment

The wasm module generated by ts2wasm-compiler is designed to be executed in a WasmGC runtime environment. The runtime should provide the following capabilities:

Wasmnizer-ts currently implemented host APIs on multiple environments:

Please see feature list for supporting status of each feature.

Please goto Getting Started for how to use the project and Introduction for more details.

Contributing

We welcome contributions to Wasmnizer-ts. You can find more details in CONTRIBUTING.md .

License

Wasmnizer-ts uses the same license as LLVM: the Apache 2.0 license with the LLVM exception. See the LICENSE file for details. Any contributions you make will be under the same license.