this seems super cool! how is this free?

Thanks! The short answer is that we're super small and folks are using us for really light use-cases. Our total server costs are less than $100 / month.

Eventually, we'll offer paid services for folks that want more processing power or other goodies, but we will always provide a generous free tier.

100$/month for a site that runs random people's code seems great ! Do you mind sharing some details ? What does your architecture look like ? How many "vals" do you have, and how many executions per day ?

We've got one node of 2 vCPU & 8192 MB on Northflank for $72 / month. We were getting away with 1 vCPU & 2048 MB, but increased it yesterday to be extra safe for this launch.

Our database on Supabase is $75 / month, and it's also way overkill but the dollars are small and we'd rather be safe.

So yesterday we were just under $100 / month, but today we're closer to $150.

This is really interesting, but... if you don't mind me asking, how do you prevent people from running malicious code on your server? Are you literally evaluating this code inside a Nodejs loop? It seems almost impossible to secure something like that.

I don't want to say too much, because I know our security isn't perfect, and some about of obfuscation adds some security. Once we move to a more secure model, I will happily tell you all what use used to use to sandbox code.

Soon we'll do real sandboxing, either ourselves through Docker, wasm, bubblewrap[1], etc, or an existing FaaS (Lambda, Deno Deploy, Cloudflare Workers) or FaaSaaS (Deno Subhosting)

[1] - https://github.com/containers/bubblewrap