The Web API lets you expose Vals to the internet, where they can receive requests and return responses. It’s built on the web-standard Request and Response objects, so it’s compatible with a number of web frameworks like Hono and Peko.

We recommend you use the Web API for vals that produce APIs and web pages.

The maximum size for requests at the time of this writing is 2mb.

Basic examples

JSX

Routing