
Val Town Has a Free API — Here's How to Deploy Serverless Functions in Seconds
A developer told me: 'I needed a webhook endpoint. I spent 45 minutes setting up a Vercel project, configuring the build, deploying. Then I found Val Town — I had a live endpoint in 30 seconds.' What Val Town Offers for Free Val Town free tier: Unlimited vals (serverless functions) HTTP endpoints — instant API endpoints Cron jobs — scheduled functions Email handling — receive and send emails Blob storage — persistent key-value store SQLite database — built-in SQL database npm packages — import any package Web-based editor with TypeScript support Quick Start // Create an HTTP endpoint (instant API) // Just write this in Val Town's editor: export default async function ( req : Request ): Promise < Response > { const url = new URL ( req . url ); const name = url . searchParams . get ( ' name ' ) || ' World ' ; return Response . json ({ message : `Hello, ${ name } !` , timestamp : new Date (). toISOString () }); } // Instantly available at: https://username-valname.web.val.run Build an API
Continue reading on Dev.to JavaScript
Opens in a new tab


