Public vals
2
cocodrilette
shorturl
HTTP
๐ Short URL Generator A simple, serverless short URL generator built on Val Town using React and SQLite. Features ๐ Generate short URLs for any long URL ๐พ Persistent storage using SQLite ๐ Instant redirection ๐จ Clean, minimal React interface How It Works 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 Technical Details 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 Example Long URL: `https://very-long-url.com/with-many-parameters`
Short URL: `https://your-val-domain.web.val.run/ab123` Limitations Short codes are randomly generated (potential for rare collisions) No custom short code option URLs are stored indefinitely Source [View Source](${import.meta.url.replace("esm.town", "val.town")})
0