Avatar

cocodrilette

Joined April 11, 2024
Public vals
2
cocodrilette avatar
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
cocodrilette avatar
cocodrilette
hnResume
Cron
Send the top 5 HackerNews post to your email every day at a given Datetime.
0
Next