Public
HTTP (deprecated)
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Readme

Hono

Here's an example using the Hono server library with the Web API. It works great!

Server examples

1
2
3
4
5
6
7
export const honoExample = async (req: Request) => {
const { Hono } = await import("npm:hono@3");
const app = new Hono();
app.get("/", (c) => c.text("Hono?"));
app.get("/yeah", (c) => c.text("Routing!"));
return app.fetch(req);
};
antonnyman-honoexample.web.val.run
October 23, 2023