Run WASM, a client side Python runtime

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • run-wasm

    Run WASM based code executions in the browser easily

  • tractjs

    Run ONNX and TensorFlow inference in the browser.

  • Tensorflow (and by extension Keras) offload most of the actual work to C++ or C, so having those compile to WebAssembly would (I imagine) be a herculean effort.

    Instead, The TF team maintains TFJS, which can run on WebAssembly[0].

    There are also tractjs[1], and onnyxjs[2], both of which allow you to run (most) ONNX models (which is an open standard for specifying ML models) using WebAssembly and WebGL(only onnyxjs supports WebGL). A bunch of frameworks (caffe, pytorch, TF) support exporting to/importing from ONNX.

    [0] https://blog.tensorflow.org/2020/03/introducing-webassembly-...

    [1] https://github.com/bminixhofer/tractjs

    [2] https://github.com/microsoft/onnxjs

  • 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.

    SurveyJS logo
  • onnxjs

    Discontinued ONNX.js: run ONNX models using JavaScript

  • Tensorflow (and by extension Keras) offload most of the actual work to C++ or C, so having those compile to WebAssembly would (I imagine) be a herculean effort.

    Instead, The TF team maintains TFJS, which can run on WebAssembly[0].

    There are also tractjs[1], and onnyxjs[2], both of which allow you to run (most) ONNX models (which is an open standard for specifying ML models) using WebAssembly and WebGL(only onnyxjs supports WebGL). A bunch of frameworks (caffe, pytorch, TF) support exporting to/importing from ONNX.

    [0] https://blog.tensorflow.org/2020/03/introducing-webassembly-...

    [1] https://github.com/bminixhofer/tractjs

    [2] https://github.com/microsoft/onnxjs

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts