IPFS Serverless Compute

Hey everyone,

I just recently started learning about IPFS and got really interested and since I am doing a lot of stuff around Serverless compute (i.e AWS Lambda) I thought I’d create a prototype Serverless infrastructure powered by IPFS.

It is in very early stages consider this a 0.1 release but you can send Docker and AWS Lambda requests using ipfs pubsub with the files being stored in IPFS. I wanted to get WASM working but that is proving to be a bit more of a pain but that would give better isolation over Docker and AWS Lambda with certain function resolvers that can be exposed.
I was also thinking of using https://github.com/firecracker-microvm/firecracker in the future to isolate the host machines from requests since right now anyone can run anything and break out of the Docker image without much of an issue.

I would love feedback on this.


Hey @abhiyerra, amazing project!

For Wasm module integration, you can use Polywrap. It allows you to:

  • Easily build & run wasm modules in a variety of languages (AssemblyScript, Rust)
  • Compose modules together
  • Store the modules on IPFS
  • Invoke them using the Polywrap client (JS/TS today, Python + Rust soon)
  • Download the modules from IPFS at run-time

This can allow you to build a service that runs wasm-based functions on-damend. Happy to answer any questions you may have.