1
2
3
4
5
6
7
import { Hono } from "npm:hono@4";
import { denoServer } from "https://esm.town/v/pomdtr/deno_server?v=8";
const app = new Hono();
app.get("/", (c) => c.text("Hello from Hono!"));
app.get("/yeah", (c) => c.text("Routing!"));
export default denoServer(app.fetch);
👆 This is a val. Vals are TypeScript snippets of code, written in the browser and run on our servers. Create scheduled functions, email yourself, and persist small pieces of data — all from the browser.