# assemblyscript

> A TypeScript-like language for WebAssembly.

Latest version **0.28.20** (published 2026-07-22) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install assemblyscript
pnpm add assemblyscript
yarn add assemblyscript
bun add assemblyscript
```

Provides the commands `asc`, `asinit`.

## Health

**Score 70/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; popular repo.

Warnings: low downloads; no types; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.28.20 |
| Published | 2026-07-22 |
| First published | 2017-05-10 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | ESM |
| Node | >=20 |
| Dependencies | 2 |
| Unpacked size | 7.5 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 18004 |
| Author | Daniel Wirtz |
| Maintainers | dcode, assemblyscript |
| Keywords | typescript, webassembly, compiler, assemblyscript, wasm |

## Links

- npm: https://www.npmjs.com/package/assemblyscript
- Repository: https://github.com/AssemblyScript/assemblyscript
- Homepage: https://assemblyscript.org
- Issues: https://github.com/AssemblyScript/assemblyscript/issues
- Funding: https://opencollective.com/assemblyscript
- npm.io page: https://npm.io/package/assemblyscript

## Dependencies (2)

- [long](https://npm.io/package/long.md) ^5.2.4
- [binaryen](https://npm.io/package/binaryen.md) 131.0.0-nightly.20260721

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.28.20 (latest) — 2026-07-22
- 0.10.0-nightly.20200611 (nightly) — 2020-06-11
- 0.28.19 — 2026-06-12
- 0.28.18 — 2026-06-02
- 0.28.17 — 2026-04-29
- 0.28.16 — 2026-04-26
- 0.28.15 — 2026-04-23
- 0.28.14 — 2026-04-12
- 0.28.13 — 2026-04-03
- 0.28.12 — 2026-03-29
- 0.28.11 — 2026-03-28
- 0.28.10 — 2026-03-10
- 0.28.9 — 2025-10-18
- 0.28.8 — 2025-09-13
- 0.28.7 — 2025-09-09
- … 277 more at https://npm.io/package/assemblyscript/versions

## README

<p align="center">
  <a href="https://www.assemblyscript.org" target="_blank" rel="noopener"><img width="100" src="https://avatars1.githubusercontent.com/u/28916798?s=200&v=4" alt="AssemblyScript logo"></a>
</p>

<p align="center">
  <a href="https://github.com/AssemblyScript/assemblyscript/actions/workflows/test.yml"><img src="https://img.shields.io/github/actions/workflow/status/AssemblyScript/assemblyscript/test.yml?branch=main&label=test&logo=github" alt="Test status" /></a>
  <a href="https://github.com/AssemblyScript/assemblyscript/actions/workflows/publish.yml"><img src="https://img.shields.io/github/actions/workflow/status/AssemblyScript/assemblyscript/publish.yml?branch=main&label=publish&logo=github" alt="Publish status" /></a>
  <a href="https://www.npmjs.com/package/assemblyscript"><img src="https://img.shields.io/npm/v/assemblyscript.svg?color=007acc&logo=npm" alt="npm compiler version" /></a>
  <a href="https://discord.gg/assemblyscript"><img src="https://img.shields.io/discord/721472913886281818.svg?label=discord&logo=discord&logoColor=ffffff&color=7389D8" alt="Discord online" /></a>
  <a href="https://stand-with-ukraine.pp.ua"><img src="https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg" alt="#StandWithUkraine" /></a>
</p>

<p align="justify"><strong>AssemblyScript</strong> compiles a variant of <a href="http://www.typescriptlang.org">TypeScript</a> (basically JavaScript with types) to <a href="http://webassembly.org">WebAssembly</a> using <a href="https://github.com/WebAssembly/binaryen">Binaryen</a>. It generates lean and mean WebAssembly modules while being just an <code>npm install</code> away.</p>

<h3 align="center">
  <a href="https://www.assemblyscript.org">About</a> &nbsp;·&nbsp;
  <a href="https://www.assemblyscript.org/getting-started.html">Getting&nbsp;started</a> &nbsp;·&nbsp;
  <a href="https://www.assemblyscript.org/examples.html">Examples</a> &nbsp;·&nbsp;
  <a href="https://www.assemblyscript.org/built-with-assemblyscript.html">Built with AssemblyScript</a>
</h3>
<br>

<h2 align="center">Contributors</h2>

<p align="center">
  <a href="https://www.assemblyscript.org/#contributors"><img src="https://www.assemblyscript.org/contributors.svg" alt="Contributor logos" width="720" /></a>
</p>

<h2 align="center">Thanks to our sponsors!</h2>

<p align="justify">Most of the maintainers and contributors do this open source work in their free time. If you use AssemblyScript for a serious task or plan to do so, and you'd like us to invest more time on it, <a href="https://opencollective.com/assemblyscript/donate" target="_blank" rel="noopener">please donate</a> to our <a href="https://opencollective.com/assemblyscript" target="_blank" rel="noopener">OpenCollective</a>. By sponsoring this project, your logo will show up below. Thank you so much for your support!</p>

<p align="center">
  <a href="https://www.assemblyscript.org/#sponsors"><img src="https://www.assemblyscript.org/sponsors.svg" alt="Sponsor logos" width="720" /></a>
</p>

## Development instructions

A development environment can be set up by cloning the repository:

```sh
git clone https://github.com/AssemblyScript/assemblyscript.git
cd assemblyscript
npm install
npm link
```

The link step is optional and makes the development instance available globally. The full process is documented as part of the repository:

* [Compiler instructions](./src)
* [Runtime instructions](./std/assembly/rt)
* [Test instructions](./tests)

---
_Source: https://npm.io/package/assemblyscript · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
