Val Town is a social website to run server-side JavaScript. Create APIs, scheduled functions, email yourself, and persist small pieces of data — all from the browser and instantly deployed.
Getting Started
- Sign up
- Watch our demo video
- Join our Discord
Reference
What’s a Val?
HTTP Val
Scheduled Val (Cron)
Email Handler Val
Val Town Standard Library
Secrets
Permissions
Val Town API
Gotchas
Guides
Creating a webhook
Rendering HTML
Saving data from a web page
Save HTML Form Data
Send emails
Import from NPM
Embedding vals in other sites
Web scraping
Hosted Puppeteer (Browserless)
Vals need to be exported
Upgrading
![GitHub-Emblem.png](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/080b01bf-c9b8-4491-a0db-b9c1c55f14ec/GitHub-Emblem.png)
Get a Github user
Github user’s stars (pagination)
Receiving a GitHub Webhook
![Screenshot 2023-06-23 at 13.34.13.png](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/317a1d0b-7c18-457f-9d53-6b09d47687dd/Screenshot_2023-06-23_at_13.34.13.png)
Create a Telegram echo bot
💬 Val Town Telegram Bot
![aws logo.png](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/6534d1d6-d3fb-40aa-b29e-0d30c2dced92/aws_logo.png)
Upload and download from AWS S3
![Discord-logo.png](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/66da2eda-ea47-41ff-8441-9d8ce6d3e055/Discord-logo.png)
Send Discord message via webhook
How to make a Discord bot hosted 24/7 for free in 6 steps
Create a Discord Welcome Bot
![Slack-logo-RGB.png](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/92cbd2b3-6384-4d9e-a2b2-f3dfc5a09504/Slack-logo-RGB.png)
Send messages to Slack
A Slack bot that replies to mentions
Persistence & databases
Val Town Blob Storage
Val Town SQLite
Upstash
Neon Postgres
Supabase
Airtable
PlanetScale
Utilities
Import from URLs
Lodash
QR Code
Generate PDFs
RSS
Weather
Website Uptime Tracker
Push Notifications
Security & Responsible Disclosure
Contact Us