Capsule: the nano (WASM) functions runner
github.com
github.com
I started this project this summer to improve my GoLang knowledge and test some ideas on WASM and WASI. Everybody is welcome for any advice, PR, etc.
Said that I have no idea how to start, will this be a good foundation to build an easy to deploy local server? (think of aws lambdas, vercel, cloudflare workers, fly.io, etc).
If you want to build your own FaaS, I'd still explore OpenFaaS as its creator has documented a lot of its creation and you will soon discover the critical things you'll need to figure out for building your own similar service (i.e. stuff like sandboxed execution environment, API gateway, scaling up and down functions, etc.).
What would be the benefit of server-side WASM over running a Go binary directly? To run untrusted binaries alone or are there other benefits?
This one seems not quite polyglot, but it's easy to change.
I think WASM, once WIT (or something similar) gets into spec, will be a wonderful way to make plugins for your service.