wagi
wasm-to-oci
Our great sponsors
wagi | wasm-to-oci | |
---|---|---|
14 | 2 | |
867 | 234 | |
1.3% | 0.0% | |
1.8 | 0.0 | |
almost 2 years ago | about 1 year ago | |
Rust | Go | |
Apache License 2.0 | Apache License 2.0 |
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.
wagi
-
Reminiscing CGI Scripts
WAGI and WCGI are the WASM based spiritual successors.
-
A simple web server written in Awk
Compile a CGI program in any language to WASI, then use https://github.com/deislabs/wagi to run it.
-
Running WASI binaries from your HTML using Web Components
Yeah of course! They've got STDIN/STDOUT/STDERR and I've built a Virtual Filesystem. But if you're using WASI binaries locally they don't have that restriction.
You might be interested in WAGI: https://github.com/deislabs/wagi
And to catch up on WASI: https://xeiaso.net/talks/unix-philosophy-logical-extreme-was...
-
Waggy, the library for writing WAGI API handlers in Go
As I'm sure you've heard, WASM has been growing in popularity and use over the past few years. And with the creation of WASI (Web Assembly System Interface) and WAGI (Web Assembly Gateway Interface), WASM is starting to venture outside of running just in the browser. And in the case of WAGI, if you've been programming since the earlier days of the internet, it might feel very similar to CGI programming (and that's because it's based on CGI1.1!) WAGI provides a way for developers to define handlers for HTTP requests and route them to specific functions inside of, or entire, WASM modules. It does so by piping the headers of the incoming request to os.Args[1:], piping the body of the incoming request to os.Stdin, and writing the response to os.Stdout. (To learn more about configuring, routing, compiling, and deploying WAGI routes, as well as the limitations of WAGI routes, please consult the WAGI docs and the TinyGo WASM docs)
-
Rethinking Virtualization for Back Ends
What do you think of WAGI [1], which is basically CGI for WASM modules.
[1]: https://github.com/deislabs/wagi/blob/main/docs/writing_modu...
- Isolates, MicroVMs, and WebAssembly (In 2022)
-
The Promise of WASM
as serverless functions (https://github.com/deislabs/wagi)
-
Single Page Applications using Rust (with WASM)
I'm experimenting with WASM & Rust but with a different framework named wagi, there's a great video by Rainer Stropek & Stefan Baumgartner that gives a little introduction to it [0]
-
Building a WebAssembly-powered serverless platform
Krustlet and WAGI are two such projects.
-
Running AssemblyScript in Kubernetes with Krustlet
However there is some cool ideas from DeisLabs around something called WAGI. This is, as they call it, just an experiment but it's essentially applying WASI to CGI (hence the name). If CGI was a bit before your time, it was a way in which web handlers were handled by CLI scripts. Reading posts from stdin and replying with stdout. There's a lot of reason we don't use that anymore but with WASI running in Kubernetes that becomes a lot more appealing and interesting again. I really think that this is a fantastic improvement on the container situation and I hope we can see more development in this space.
wasm-to-oci
-
Containerless! How to Run WebAssembly Workloads on Kubernetes with Rust
# Install for Linux curl -LO https://github.com/engineerd/wasm-to-oci/releases/download/v0.1.2/linux-amd64-wasm-to-oci # move to any location that is added to your PATH variable mv linux-amd64-wasm-to-oci ~/bin/wasm-to-oci
-
Running AssemblyScript in Kubernetes with Krustlet
Next we need to get Wasm-to-OCI which is a tool that will convert the WASM module to an OCI container. You can download it here: https://github.com/engineerd/wasm-to-oci/releases. You can use wget on the link address to the one you want.
What are some alternatives?
wasi-experimental-http - Experimental outbound HTTP support for WebAssembly and WASI
wasmer-python - 🐍🕸 WebAssembly runtime for Python
wizer - The WebAssembly Pre-Initializer
dioxus - Fullstack GUI library for desktop, web, mobile, and more.
wasi-vfs - A virtual filesystem layer for WASI.
hackpad - The in-browser IDE for Go
gc - Branch of the spec repo scoped to discussion of GC integration in WebAssembly
wasmtime - A fast and secure runtime for WebAssembly
webassembly-tour - ⚙️ Take you through a tour of WebAssembly (WASM targets on WASI) with wasmCloud, Krustlet, WAGI, etc. 🌟 Give it a star if you like it.
Pion WebRTC - Pure Go implementation of the WebRTC API
okta-rust-webassembly-k8s-example - An example Rust WebAssembly application as a Kubernetes workload