Image for post
Image for post

Running Nginx with WebAssembly

This is the story of our journey on creating the first WebAssembly runtime able to run Nginx

Step I: Reviewing Existing Runtimes

Independent Runtimes

Browser runtimes

Step II: Creating our own runtime

Step III: Being Spec Complaint

Step IV: Emscripten

Image for post
Image for post

Want to try Nginx locally? You are just three commands away!

1. Install Wasmer

curl https://get.wasmer.io -sSfL | sh

2. Download the Nginx example

git clone https://github.com/wasmerio/wasmer-nginx-example.git
cd wasmer-nginx-example

3. Run Nginx with wasmer! 🎉

wasmer run nginx.wasm -- -p . -c nginx.conf

PS: We are hiring! Are you passionate about WebAssembly and Rust? Please be in touch: syrus@webassembly.foundation

Entrepreneur. Developer. Mathematician

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store