Show HN: Riza – Safely run untrusted code from your app (riza.io)
There’s a bit of a backstory here. A few months ago, an old coworker reached out asking how to execute untrusted code generated by an LLM. Based on our experience building a plugin system for sqlc (https://sqlc.dev), we thought a sandboxed WASM runtime would be a good fit. A bit of hacking later, we got everything wired up to solve his issue. Now the API is ready for other developers to try out.
The Riza Code Interpreter API is an HTTP interface to various dynamic language interpreters, each running inside a WASM sandbox without access to the outside world (for now). We modeled the API to align with a POSIX shell-style interface.
We made a playground so you can try it out without signing up: https://riza.io
The API documentation lives here: https://docs.riza.io
There are many limitations at the moment, but we expect to rapidly expand capabilities so that programs can e.g. access the network and filesystem. Our roadmap has more details: https://docs.riza.io/reference/roadmap
If you need to execute LLM-generated code we’d love to have you try the API and let us know if you run into any issues. You can email us directly at founders@riza.io.
6 comments
[ 7.0 ms ] story [ 27.9 ms ] threadI guess put another way: who is the target audience for this?
Filesystem access is the first item on our roadmap (https://docs.riza.io/reference/roadmap). If you want to see it in action, try opening /src/code.py. While adding an in-memory filesystem would be easy, we want to make it usable for reading and writing potentially large files.
> I guess put another way: who is the target audience for this?
Our customers are using our API to run LLM-generated code, build plugin systems, and power customer-defined data transformations.
We use it for local dev, running prompt eval, and running code in prod.
- It was very fast to setup - it took us just a few minutes to execute our first function call.
- Multiple languages support - we use both JS and Python for code generated by LLM , Riza works great with both languages out of the box.
- No cold start - this is important because latency matters in our product.
- No infra management - even if we use AWS lambda or similar serverless product we felt like we still needed to a bunch of setup to make sure its fast + secure.
Congrats on launching!