Repolode
AssemblyScript

AssemblyScript/assemblyscript

A TypeScript-like language and compiler that turns a typed subset of TypeScript into WebAssembly modules.

Stars
18,031
Forks
695
Open issues
213
Last commit
4 days ago

What is it?

AssemblyScript compiles a variant of TypeScript, essentially JavaScript with static types, to WebAssembly. It uses Binaryen as its backend and is installed with npm, so developers can write WebAssembly code using familiar TypeScript syntax without learning a new low-level language.

The compiler aims to produce small, lean WebAssembly modules. Because the language is a typed subset of TypeScript rather than full JavaScript, code compiles ahead of time to native WebAssembly instead of running through a JavaScript engine. The repository contains the compiler, the runtime and standard library, and the test suite.

The project is aimed at developers who want to write performance-sensitive code for the browser, Node.js, or other WebAssembly hosts while keeping a TypeScript-style workflow.

Key features

  • 01Compiles a typed TypeScript-like language to WebAssembly.
  • 02Uses Binaryen for optimization and code generation.
  • 03Installable via npm with no separate toolchain required.
  • 04Produces small WebAssembly modules.
  • 05Includes a runtime and standard library in the repository.

Use cases

  • Writing performance-critical computation modules for web applications.
  • Building WebAssembly modules for Node.js or other WebAssembly hosts.
  • Porting TypeScript-style code to run as compiled WebAssembly.

Quick start

  1. 1

    Clone the repository

    git clone https://github.com/AssemblyScript/assemblyscript.git
  2. 2

    Enter the project directory

    cd assemblyscript
  3. 3

    Install dependencies with npm

    npm install

Things to know

  • It compiles only a typed subset of TypeScript, so not all TypeScript code will work.

Topics

FAQ

What is assemblyscript?
A TypeScript-like language and compiler that turns a typed subset of TypeScript into WebAssembly modules. AssemblyScript compiles a variant of TypeScript, essentially JavaScript with static types, to WebAssembly. It uses Binaryen as its backend and is installed with npm, so developers can write WebAssembly code using familiar TypeScript syntax without learning a new low-level language.
Is assemblyscript free to use? What license does it have?
assemblyscript is open source under the Apache-2.0 license. Check the license terms before using it in commercial products.
Is assemblyscript still maintained?
Actively maintained. The last commit to assemblyscript was on Oct 18, 2026.
What can I use assemblyscript for?
Writing performance-critical computation modules for web applications. Building WebAssembly modules for Node.js or other WebAssembly hosts. Porting TypeScript-style code to run as compiled WebAssembly.
How do I install assemblyscript?
Clone the repository: git clone https://github.com/AssemblyScript/assemblyscript.git Enter the project directory: cd assemblyscript Install dependencies with npm: npm install
Where can I get assemblyscript?
The source code and installation instructions are on GitHub: https://github.com/AssemblyScript/assemblyscript

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects