vodik / wgi

An experiment to cross cgi with webassembly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wgi

A weekend experiment crossing old with new technology. Limited error handling, no focus thoughts on security. Use at your own risk!

An attempt to reimplement CGI using WebAssembly + WASI.

Examples

hello_world.wasm

Written in C. Reads the user agent header and prints a friendly message.

markdown.wasm

Written in Rust. Converts markdown input into HTML.

js.wasm

Written in C. Embeds QuickJS to bootstrap arbitrary JavaScript files.

Roadmap

  • Write instructions
  • Cleanup the server and make it robust
  • Implement FastCGI on WASI
  • Implement Lambda on WASI
  • Write blog posts

About

An experiment to cross cgi with webassembly

License:Other


Languages

Language:Rust 91.5%Language:JavaScript 8.5%