TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A URL Shortener in 16 Lines of Code with Node.js and Nanoexpress

2 pointsby piemaddabout 4 years ago

1 comment

piemaddabout 4 years ago
Hey there my name is Piero and I'm one of the social media managers over at Replit. While rewriting Replit.sh (our URL shortener I built in just 48 hours back in October) from scratch, I wanted to see just how small I could make a functional URL shortener. With a few tricks up my sleeve, that came out to just 16 lines. This also happens to be my first Replit blogpost, even though I've been at the company for close to 9 months now! Any constructive criticism is appreciated and I hope you all have a nice evening :)