VOOZH about

URL: https://www.assemblyscript.org/

⇱ AssemblyScript


A TypeScript-like language for WebAssembly.

Get Started GitHub npm

Designed for WebAssembly

AssemblyScript targets WebAssembly's feature set specifically, giving developers low-level control over their code.

Familiar TypeScript syntax

Its similarity with TypeScript makes it easy to compile to WebAssembly without learning a new language.

Right at your fingertips

Integrates with the existing Web ecosystem - no heavy toolchains to set up. Simply npm install it!

#!runtime=stub
/** Calculates the n-th Fibonacci number. */
export function fib(n: i32): i32 {
 var a = 0, b = 1
 if (n > 0) {
 while (--n) {
 let t = a + b
 a = b
 b = t
 }
 return b
 }
 return a
}

#!html
<textarea id="output" style="height: 100%; width: 100%" readonly></textarea>
<script type="module">
const exports = await instantiate(await compile(), { /* imports */ })
const output = document.getElementById('output')
for (let i = 0; i <= 10; ++i) {
 output.value += `fib(${i}) = ${exports.fib(i)}\n`
}
</script>

AssemblyScript is free and open source software released under the Apache License, Version 2.0, builds upon Binaryen and is based on the WebAssembly specification. It is brought to you by the following awesome people:

Contributors

πŸ‘ dcodeIO
πŸ‘ MaxGraey
πŸ‘ HerrCai0907
πŸ‘ CountBleck
πŸ‘ jtenner
πŸ‘ JesseCodeBones
πŸ‘ yjhmelody
πŸ‘ romdotdog
πŸ‘ torch2424
πŸ‘ technohippy
πŸ‘ saulecabrera
πŸ‘ mattjohnsonpint
πŸ‘ Changqing-JING
πŸ‘ JairusSW
πŸ‘ LiaoPeng
πŸ‘ alangpierce
πŸ‘ ColinEberhardt
πŸ‘ DuncanUszkay1
πŸ‘ nidin
πŸ‘ surma
πŸ‘ willemneal
πŸ‘ LinusU
πŸ‘ ghalimi
πŸ‘ andy-hanson
πŸ‘ forcepusher
πŸ‘ kazupon
πŸ‘ jayphelps
πŸ‘ gzuidhof
πŸ‘ FloorLamp
πŸ‘ cuiweixie
πŸ‘ PinkaminaDianePie
πŸ‘ piotr-oles
πŸ‘ sidx1024
πŸ‘ aduros
πŸ‘ fatjonny
πŸ‘ ccouzens
πŸ‘ trusktr
πŸ‘ Hypercubed
πŸ‘ FGasper
πŸ‘ kubohiroya
πŸ‘ atcwells
πŸ‘ ErnestoBorio
πŸ‘ Tyriar
πŸ‘ dawsbot
πŸ‘ sunfishcode
πŸ‘ programmerjake
πŸ‘ mmathys
πŸ‘ yoyo837
πŸ‘ pvorona
πŸ‘ Wscats
πŸ‘ rottencandy
πŸ‘ frenkzcom
πŸ‘ coder0107git

Why AssemblyScript?

πŸ‘ Surma

β€œYou are now able to write WebAssembly without learning a new language, and harness all these benefits WebAssembly might offer you. I think that is kind of powerful. AssemblyScript is absolutely usable, and very enjoyable!” – Surma, WebAssembly for Web Developers (Google I/O ’19)

πŸ‘ Alon Zakai

β€œAssemblyScript is designed with WebAssembly and code size in mind. It's not an existing language that we are using for a new purpose but it's a language designed for WebAssembly. It has great wasm-opt integration, in fact it's built with it, and it's very easy to get good code size.” – Alon Zakai, Shipping Tiny WebAssembly Builds (WebAssembly Summit)

πŸ‘ Peter Salomonsen

β€œI chose AssemblyScript because it has high-level readability and low-level control. It's like a high-level language but you get that low-level feeling and you can even directly write WebAssembly intrinsics if you want to.” – Peter Salomonsen, WebAssembly Music (WebAssembly Summit)

Thanks to our sponsors!

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, please donate to our OpenCollective. By sponsoring this project, your logo will show up below. Thank you so much for your support!

Individual Backers

πŸ‘ Tom Ballinger
πŸ‘ 777
πŸ‘ Hoofdkantoor
πŸ‘ Jordan Timmerman
πŸ‘ Guest
πŸ‘ Forrest Moret
πŸ‘ Jacob Richards
πŸ‘ Charlie Arnold
πŸ‘ Nove Casino
πŸ‘ Taylor Clark
πŸ‘ Harry Solovay
πŸ‘ betking
πŸ‘ betking
πŸ‘ slovenskecasino.net
πŸ‘ Casino Magyar
πŸ‘ takanori sugawara
πŸ‘ Time Now
πŸ‘ Recipe.net
πŸ‘ Love You
πŸ‘ Open Source Collective
πŸ‘ Jonathan Beri
πŸ‘ Jack Arrington
πŸ‘ Jeff Wainwright
πŸ‘ emmanuelm41
πŸ‘ Agung Sidharta So
πŸ‘ sri sai swaroop
πŸ‘ Egor Konovalov
πŸ‘ τα καλυτΡρα ΞΊΞ±ΞΆΞΉΞ½ΞΏ online
πŸ‘ Ezra Savard
πŸ‘ incognito
πŸ‘ Julius Shapiro
πŸ‘ RubenD
πŸ‘ mejores casinos EspaΓ±a
πŸ‘ casino sin licencia EspaΓ±a
πŸ‘ melhores casinos online
πŸ‘ ΞΊΞ±ΞΆΞΉΞ½ΞΏ χωρις ταυτοποιηση
πŸ‘ Robin
πŸ‘ Mary
πŸ‘ Guest

Join our Discord

If you have questions only a human can answer, would like to show others what you are working on or just want to hang out with other AssemblyScript folks, make sure to join our Discord server! There you'll find channels for #announcements, #help, and more.

Apache-2.0 licensed, Copyright Β© 2020-2026 The AssemblyScript Authors