wajic VS component-model

Compare wajic vs component-model and see what are their differences.

wajic

WebAssembly JavaScript Interface Creator (by schellingb)

component-model

Repository for design and specification of the Component Model (by WebAssembly)
Civic Auth - Auth in Less Than 5 Minutes
Civic Auth comes with multiple SSO options, optional embedded wallets, and user management — all implemented with just a few lines of code. Start building today.
www.civic.com
featured
InfluxDB high-performance time series database
Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.
influxdata.com
featured
wajic component-model
6 44
205 1,053
3.9% 2.8%
0.0 9.4
about 3 years ago 5 days ago
JavaScript Python
zlib License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

wajic

Posts with mentions or reviews of wajic. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-10-29.
  • CoWasm: An alternative to Emscripten, based on Zig (demo: Python in the browser)
    9 projects | news.ycombinator.com | 29 Oct 2022
    This is a slim alternative to Emscripten which focuses only on the C/C++ <=> JS interoperability part:

    https://github.com/schellingb/wajic

  • From a WebAssembly Perspective
    5 projects | news.ycombinator.com | 25 Aug 2022
    There's actually a super interesting project called wajic here:

    https://github.com/schellingb/wajic

    It's basically clang plus wasm-opt and some magic pixie dust which enables some of the most important features of Emscripten, but without the whole 'technology zoo' :)

  • Zig and WASM
    11 projects | news.ycombinator.com | 13 Jul 2022
  • WebAssembly and C++
    6 projects | news.ycombinator.com | 27 Jun 2022
    There's now an interesting alternative to Emscripten called WaJIC:

    https://github.com/schellingb/wajic

    Enables most of the "Emscripten magic" (like embedding Javascript code into C/C++ files), but in a more bare bones package (apart from clang it essentially just uses the wasm-opt tool from Binaryen for post-processing).

    (to be clear, wajic has fewer out-of-the-box features than Emscripten, but it might be an alternative for very small projects which don't need all the compatibility shims which are coming with Emscripten, while still providing tools for calling between C/C++ and JS.

  • Show HN: How to compile C/C++ for WASM, pure Clang, no libs, no framework
    13 projects | news.ycombinator.com | 11 Apr 2022
    Since I haven't seen it mentioned in the comments yet, here's another interesting project in the general area of "WASM without Emscripten":

    https://github.com/schellingb/wajic

    This provides an alternative implementation of Emscripten's EM_JS() magic (embed Javascript snippets right in the C/C++ source code), but without the Emscripten SDK. It still needs some additional tools next to Clang, so it sits somewhere between "pure Clang" and "full Emscripten SDK".

  • Writing bindings to `dos-like` for Rust: some lessons learned
    5 projects | dev.to | 15 Mar 2022
    Alas, although there is WebAssembly support in the original dos-like, it is still not supported in the bindings for Rust. It would require a Rust toolchain to integrate with WAjic, which I am pretty much unfamiliar with. If you have any idea on how to achieve this, I would love to know.

component-model

Posts with mentions or reviews of component-model. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-04-09.
  • Show HN: Obelisk – a WASM-based deterministic workflow engine
    4 projects | news.ycombinator.com | 9 Apr 2025
    The structured concurrency paradigm in workflows is stricter to what I'm reading here [1]. The whole execution model is different from the Task [2], as workflows are transparently unloaded and replayed.

    Obelisk has a concept called join sets, where child executions are submitted and awaited. In the future I plan on adding cancellation and allow custom cleanup functions.

    [1] https://github.com/WebAssembly/component-model/blob/main/des...

    [2] https://github.com/WebAssembly/component-model/blob/main/des...

  • Looking Ahead to WASIp3
    14 projects | dev.to | 17 Mar 2025
    Although WASIp3 has not yet been released, and the implementations are not yet ready for production use, now is a great time to experiment with it and provide feedback by opening issues on either the spec repo or the wasip3-prototyping repo. Whether you’re developing Wasm components or custom host embeddings to run components, we’d love to have your input. And if you’re a language implementer looking to add concurrency support for Wasm targets, we’d appreciate your input as well.
  • Rust Is Eating JavaScript
    3 projects | news.ycombinator.com | 16 Feb 2025
  • Extensible WASM Applications with Go
    9 projects | news.ycombinator.com | 13 Feb 2025
    I am kind of worried that the eagerness for more WASM features may irremediably harm the young ecosystem. Most of what Go added to WASM could be done natively if the component model proposal [1] was merged already.

    The standard evolves slowly and as adoption rises we risk having to support more and more non-standard features forever, like WASI and now this.

    [1] https://github.com/WebAssembly/component-model

  • WASM-Native Orchestration
    6 projects | news.ycombinator.com | 13 Feb 2025
  • WASM Will Replace Containers
    21 projects | news.ycombinator.com | 11 Feb 2025
    Fully agree with your point here, but wanted to point out that including C dependencies is actually one of the biggest reasons why Python support is hard for WebAssembly too.

    Bolstering your point -- smart-and-hardworking people are working on this, which results in:

    https://github.com/bytecodealliance/componentize-py/

    which inspired

    https://github.com/WebAssembly/component-model/blob/main/des...

    which is made concrete by

    https://github.com/dicej/wasi-wheels

  • Lua Is So Underrated
    27 projects | news.ycombinator.com | 26 Dec 2024
    The WebAssembly component model is aimed at having composable components that can call each other. The components can be written in any language, compiled to WebAssembly, and interoperate: https://github.com/WebAssembly/component-model/

    Extism is a plugin framework for WebAssembly:

    https://extism.org/

    https://github.com/extism/extism

    Visual Studio Code can run WebAssembly extensions: https://code.visualstudio.com/blogs/2024/05/08/wasm

    A project to bring WebAssembly plugins to Godot: https://github.com/ashtonmeuser/godot-wasm

    WasmEdge can be embedded in applications: https://wasmedge.org/docs/embed/overview

    Wasmer can be embedded in applications: https://blog.wasmer.io/executing-webassembly-in-your-rust-ap...

    Wasmtime can be embedded in applications: https://docs.wasmtime.dev/lang.html

  • Ask HN: What are some unpopular opinions you got?
    3 projects | news.ycombinator.com | 20 Nov 2024
    Eventually by using the component model which will expose the DOM API. It will get to direct wasm to WebIDL calls one day:

    https://github.com/WebAssembly/component-model

    The component model is being used for the WebAssembly System Interface (WASI):

    https://github.com/WebAssembly/WASI/tree/main

    In the meantime you can use JavaScript glue code auto-generated by your toolchain to access the DOM. This will be made better with builtins like the js-string-builtins proposal:

    https://github.com/WebAssembly/js-string-builtins/blob/main/...

    You can call JavaScript functions and DOM methods from wasm like this example from Hoot, which is a Scheme to wasm compiler:

    https://spritely.institute/news/building-interactive-web-pag...

  • Introducing Spin 3.0
    11 projects | dev.to | 12 Nov 2024
    Let’s start with writing the interface for our image manipulation component. We’ll define our image manipulation package (using the WIT format) which contains one interface with two image transformations (grayscale and sepia):
  • Spin 3.0 – open-source tooling for building and running WASM apps
    7 projects | news.ycombinator.com | 12 Nov 2024
    For the audience that would be looking to use the WASM Component Model, and not be an infrastructure implementer of it, whether or not they meet some definition of a method, the component model does define things called resources [1] that have "methods". You'll hold a "handle" to it like you would in your own programming language with the expected drop and/or GC semantics (once implemented [2]) because code is generated to access it like any other FFI like C/C++.

    With that in mind, the other confusing thing one may come across is composition vs linking within your WASM runtime that supports the Component Model. When you hear "composition" think of compile-time merging of libraries such that the bundle may have less unresolved dependencies of WASM code/implemented component interfaces. Anything unresolved needs to be linked at runtime with your WASM runtime of choice, like wasmtime [3]. Pretty interesting reading/potential after reading if you ask me -- sounds like you could implement something like a custom Java classloader hierarchy.

    But I'd agree with a statement saying it is still a long way for general usage.

    [1] https://github.com/WebAssembly/component-model/blob/5a34794d...

    [2] https://github.com/WebAssembly/gc

    [3] https://github.com/bytecodealliance/wasmtime/blob/ba8131c6bf...

    [4] https://www.digitalocean.com/community/tutorials/java-classl...

What are some alternatives?

When comparing wajic and component-model you can also consider the following projects:

multi-memory - Multiple per-module memories for Wasm

meetings - WebAssembly meetings (VC or in-person), agendas, and notes

minimal-zig-wasm-canvas - A minimal example showing how HTML5's canvas, wasm memory and zig can interact.

spec - WebAssembly specification, reference interpreter, and test suite.

memory-control - A proposal to introduce finer grained control of WebAssembly memory.

spin - Spin is the open source developer tool for building and running serverless applications powered by WebAssembly.

Civic Auth - Auth in Less Than 5 Minutes
Civic Auth comes with multiple SSO options, optional embedded wallets, and user management — all implemented with just a few lines of code. Start building today.
www.civic.com
featured
InfluxDB high-performance time series database
Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.
influxdata.com
featured