Instantly deploy code to the web with zero config
https://yoursite.val.run/
Hello, Val Town!
main.tsx
RunSign up
1
2
3
export default async function (req: Request) {
return new Response("Hello, Val Town!");
}
Cron jobs REST APIs send and receive emails store data in SQLite webhooks npm packages generate images and PDFs scrape webpages
main.tsx
RunSign up
1
2
3
4
5
6
import { getWeather } from "https://esm.town/v/stevekrouse/getWeather";
export default async function (interval: Interval) {
let weather = await getWeather("Brooklyn, NY");
console.log(weather.current_condition[0].FeelsLikeF);
}
Cron jobs
Schedule any function in one click. Use the full power of cron syntax or a simple interval to run vals every hour, at a particular time of day, or whatever you can dream up.
Create APIs
Respond to HTTP requests, build websites, APIs, and more with Request & Response objects. Compatible with modern web frameworks like Hono and itty-router . Support for building HTML with JSX syntax.
main.tsx
RunSign up
1
2
3
4
5
6
7
8
9
10
11
12
import { Hono } from "npm:hono";
const app = new Hono();
app.get("/", (c) => c.json({ ok: true }));
app.post("/", async (c) => {
const data = await c.req.json();
console.log(data);
});
export default app.fetch;
main.tsx
RunSign up
1
2
3
4
5
6
7
8
9
10
11
import { email } from "https://esm.town/v/std/email?v=7";
import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
import { umbrellaNeeded } from "https://esm.town/v/stevekrouse/umbrellaNeeded";
export const umbrellaReminder = async () => {
if (await umbrellaNeeded("brooklyn")) {
await email({
subject: "☔ Carry an umbrella today!"
});
}
};
Email yourself
Send yourself an email as easily as you log to the console, and receive emails too. Build daily email reminders, or easily transform email notifications into Slack messages.
Import from npm
Thousands of npm modules are supported, along with Deno modules. No installation required - just import and it's there.
lodash Hono cheerio zod marked remark chalk elysia moment openai underscore d3 luxon date-fns thousands more
⌘S
Instant deploys
Run live code on the web as fast as you can hit ⌘S
Cron jobs
Schedule any function in one click
12:34
AI pair programmer
Edit code and deploy instantly with agentic AI
const foo = await bar()
YAML
Zero config devops
Deploy to fast, scalable infrastructure in seconds