TypeScript WASM

Open-source TypeScript projects categorized as WASM

WebAssembly (abbreviated WASM) is a binary instruction format for a stack-​based virtual machine. WebAssembly is an open standard that defines a portable binary-code format for executable programs, and a corresponding textual assembly language, as well as interfaces for facilitating interactions between such programs and their host environment.

Top 23 TypeScript WASM Projects

  • tfjs

    A WebGL accelerated JavaScript library for training and deploying ML models.

    Project mention: Deep Learning in JavaScript | news.ycombinator.com | 2024-03-28

    Many people seem to be unaware of tensorflow.js, an official JS implementation of TF

    https://github.com/tensorflow/tfjs

    I'd love to see PyTorch in JS, but I think unless you get it running on the GPU it won't be able to do much.

  • jupyterlite

    Wasm powered Jupyter running in the browser 💡

    Project mention: SymPy: Symbolic Mathematics in Python | news.ycombinator.com | 2024-02-28

    The JupyterLite Python-compiled-to-WASM build has NumPy, SciPy, matplotlib, and SymPy installed; so you can do computer algebra with SymPy in a browser tab.

    https://JupyterLite.rtfd.io/

    https://github.com/jupyterlite/jupyterlite/tree/main/py/jupy... :

    > Initial support for interactive visualization libraries such as: altair, bqplot, ipywidgets, matplotlib, and plotly

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

  • quadratic

    Quadratic | Data Science Spreadsheet with Python & SQL

    Project mention: Quadratic – Open-Source Spreadsheet Is Now Multiplayer | news.ycombinator.com | 2024-02-01

    https://github.com/quadratichq/quadratic/issues

  • workers-sdk

    ⛅️ Home to Wrangler, the CLI for Cloudflare Workers®

    Project mention: Ask HN: Best thing you've made in CLI | news.ycombinator.com | 2024-03-09

    https://github.com/cloudflare/workers-sdk/blob/main/packages...

  • resvg-js

    A high-performance SVG renderer and toolkit, powered by Rust based resvg and napi-rs.

  • quickjs-emscripten

    Safely execute untrusted Javascript in your Javascript, and execute synchronous code that uses async functions

    Project mention: New QuickJS Release | news.ycombinator.com | 2023-12-09

    Based on your comment below I think you figured out the difference - but if you're looking to execute JS, you can pick between ShadowRealm (where available, or using a polyfill) or my library quickjs-emscripten.

    Pros of quickjs-emscripten over ShadowRealm:

    - You can use quickjs today in any browser with WASM. ShadowRealm isn't available yet, and polyfills have had security issues in the past. See https://www.figma.com/blog/an-update-on-plugin-security/

    - In ShadowRealm eval, untrusted code can consume arbitrary CPU cycles. With QuickJS, you can control the CPU time used during an `eval` using an [interrupt handler] that's called periodically during the eval.

    - In ShadowRealm eval, untrusted code can allocate arbitrary amounts of memory. With QuickJS, you can control both the [stack size] and the [heap size] available inside the runtime.

    - quickjs-emscripten can do interesting things with custom module loaders and facades that allow synchronous code inside the runtime to call async code on the host.

    Pros of ShadowRealm over QuickJS:

    - ShadowRealm will (presumably?) execute code using your native runtime, probably v8, JavaScriptCore, or SpiderMonkey. Quickjs is orders of magnitude slower than JIT'd javascript performance of v8 etc. It's also slower than v8/JSC's interpreters, although not by a huge amount. See [benchmarks] from 2019.

    - You can easily call and pass values to ShadowRealm imported functions. Talking to quickjs-emscripten guest code requires a lot of fiddly and manual object building.

    - Overall the quickjs(-emscripten) API is verbose, and requires manual memory management of references to values inside the quickjs runtime.

    [interrupt handler]: https://github.com/justjake/quickjs-emscripten/blob/main/doc...

    [stack size]: https://github.com/justjake/quickjs-emscripten/blob/main/doc...

    [heap size]: https://github.com/justjake/quickjs-emscripten/blob/main/doc...

    [benchmarks]: https://bellard.org/quickjs/bench.html

  • wasm4

    Build retro games using WebAssembly for a fantasy console.

    Project mention: WASM Instructions | news.ycombinator.com | 2024-02-18

    Related:

    A fast Pascal (Delphi) WebAssembly interpreter:

    https://github.com/marat1961/wasm

    WASM-4:

    https://github.com/aduros/wasm4

    Curated list of awesome things regarding WebAssembly (wasm) ecosystem:

    https://github.com/mbasso/awesome-wasm

    Also, it would be nice if there was a WASM (soft) CPU for QEMU, which (if it existed!) would go here:

    https://github.com/qemu/qemu/tree/master/target

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • pretzelai

    Open-source, browser-local data exploration using DuckDB-Wasm and PRQL

    Project mention: Show HN: WhatTheDuck – open-source, in-browser SQL on CSV files | news.ycombinator.com | 2024-03-26

    Cool stuff, we are also building in the space, currently adding Python support with Pyodide. I would recommend you add your live website at the top of the README so people can find it easily (we had a lot of views that way for https://github.com/pretzelai/pretzelai). Also, we added a simple text2sql "Ask AI" that users loved, maybe your users will like it too.

  • webr

    The statistical language R compiled to WebAssembly via Emscripten, for use in web browsers and Node.

    Project mention: WebR – R in the Browser (using WASM) | news.ycombinator.com | 2023-11-14
  • runno

    Browser-based runtime for programming languages and WASI binaries.

  • tauri-tutorial

    📚 Tauri Tutorial (系列教程 - 打造属于自己的跨端应用)

  • videotranscode.space

    A video transcoder and converter built using Web Assembly and FFMPEG to transcode and convert videos right in your browser while protecting your privacy

  • run-wasm

    Run WASM based code executions in the browser easily

  • virtual-background

    Demo on adding virtual background to a live video stream in the browser (by Volcomix)

  • magick-wasm

    The WASM library for ImageMagick

  • web-synth

    A web-based sound synthesis, music production, and audio experimentation platform (by Ameobea)

  • vite-plugin-rsw

    🦞 wasm-pack plugin for Vite

  • metatype

    Declarative API development platform. Build backend components with zero-trust and less code, no matter where and how your (legacy) systems are.

    Project mention: Build declaratively back ends and APIs with GraphQL or REST | /r/hypeurls | 2023-08-14
  • hpcc-js-wasm

    HPCC-Systems Web-Assembly (JavaScript)

  • brotli-wasm

    A reliable compressor and decompressor for Brotli, supporting node & browsers via wasm

  • wrap-cli

    Used to create, build, and integrate wraps.

  • obsidian-note-linker

    🔗 Automatically link your Obsidian notes.

  • monolith-of-web

    A chrome extension to make a single static HTML file of the web page using a WebAssembly port of monolith CLI

    Project mention: Reddit limits the use of API to 1000,Let's work together to save the content of StableDiffusion Subreddit as a team | /r/sdforall | 2023-06-17

    From the project page, I wasn't able to properly gague if it had that support. But here is a Chrome extension based on it that I just found: https://github.com/rhysd/monolith-of-web

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2024-03-28.

TypeScript WASM related posts

Index

What are some of the best open-source WASM projects in TypeScript? This list will help you:

Project Stars
1 tfjs 18,041
2 jupyterlite 3,551
3 quadratic 2,653
4 workers-sdk 2,134
5 resvg-js 1,373
6 quickjs-emscripten 1,087
7 wasm4 1,052
8 pretzelai 780
9 webr 739
10 runno 581
11 tauri-tutorial 492
12 videotranscode.space 484
13 run-wasm 462
14 virtual-background 450
15 magick-wasm 445
16 web-synth 413
17 vite-plugin-rsw 373
18 metatype 307
19 hpcc-js-wasm 292
20 brotli-wasm 239
21 wrap-cli 169
22 obsidian-note-linker 157
23 monolith-of-web 141
Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com