Skip to content

Val Town Docs

Val Town is a platform to write and deploy JavaScript. Create APIs, websites, scheduled functions, 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 dependencies
  • HTTP - API endpoint, website, or webhook
  • Cron - trigger code on a timer
  • Email - trigger code on an incoming email

The Val Town Standard Library provides some free hosted services:

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 access Val Town programmatically via our REST API or JavaScript SDK.

If you have any questions, feedback, or need help, please reach out to us on Discord or email.