Val Town Docs
Val Town is a collaborative website to create and scale Javascript functions. Create APIs, crons, store data – all from the browser, and deployed in miliseconds.
What is a val?
- Vals are hosted JavaScript functions
- Vals run on the Val Town serverless platform
- Vals can import other vals, NPM, and more ↗
- Vals can be public, unlisted, or private ↗
- Vals are run via the Deno runtime ↗
- Vals support JavaScript, TypeScript, JSX, and TSX
There are 4 types of vals, each with different triggers:
Script Triggered manually
HTTP Triggered by https requests. You can make APIs or websites
Cron Triggered by a timer or cron expression
Email Triggered by an incoming email
Where to start
If you’re new to Val Town, we recommend starting with Townie, our AI assistant that can write vals for you.
We also reccomend our quickstarts.
Your first HTTP val Create a link in bio website
Your first cron val Send yourself a daily weather email
Val Town Standard Library
Our standard library provides 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
API and SDK
You can access Val Town programmatically via our REST API or JavaScript SDK.
Contact us
We’re here to help! If you have any questions or feedback, please reach out to us on Discord or email.