Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
A minimal Hello World website running on Val Town.
| File | What it does |
|---|---|
main.tsx | HTTP entrypoint — serves the static files in this val |
index.html | The page content |
style.css | Styling |
script.js | Browser JavaScript (the "Say hi" button) |
favicon.svg | Browser tab icon |
Rendering mermaid diagram...
main.tsx uses staticHTTPServer() from std/utils, which serves every file in
the val by path. Any save deploys instantly — no build step.