Val Town Docs
Val Town is a website to write and deploy apps. Create APIs, websites, scheduled functions, email yourself, and persist data — all from the browser and instantly deployed.
- Vals are runnable JavaScript, TypeScript, and JSX modules
- Vals can import other vals, NPM, and more ↗
- Vals can be public, unlisted, or private ↗
- Vals are run via the Deno runtime
There are 4 types of vals, each with different triggers:
- Script - freeform, run manually, for one-offs or testing
- HTTP - make a website, API endpoint, accept webhooks
- Cron - trigger code on a timer
- Email - trigger code on an incoming email
The Val Town Standard Library provides a some free hosted services:
- SQLite - store and retrieve structured data
- Blob Storage - store and retrieve any data
- OpenAI - use the OpenAI API
- Email - send emails
- Proxied Fetch - make requests from anonymous IP addresses
If you’re new to Val Town or programming, we recommend starting with Townie, our AI assistant that can write vals for you, or one of our quickstarts: website, cron.
You can also use Val Town programmatically using the Val Town SDK.