Public
Like
shorturl
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data β all from the browser, and deployed in milliseconds.
main.tsx
https://cocodrilette--11c34fd0278311f0b46e569c3dd06744.web.val.run
A simple, serverless short URL generator built on Val Town using React and SQLite.
- π Generate short URLs for any long URL
- πΎ Persistent storage using SQLite
- π Instant redirection
- π¨ Clean, minimal React interface
- Enter a long URL in the input field
- Click "Generate Short URL"
- Receive a unique, short URL
- Share and use the short URL, which will redirect to the original link
- Built with React (client-side)
- Uses Val Town's SQLite for URL mapping storage
- Generates a random 5-character short code
- Serverless deployment on Val Town
Long URL: `https://very-long-url.com/with-many-parameters\` Short URL: `https://your-val-domain.web.val.run/ab123\`
- Short codes are randomly generated (potential for rare collisions)
- No custom short code option
- URLs are stored indefinitely
[View Source](${import.meta.url.replace("esm.town", "val.town")})