Project pool

AdvancedNext.js · Database

URL shortener with analytics

Short links that redirect, and a count of every click.

Time
~18h
When approved
+300 XP

The brief

Paste a long link, get a short one. Every visit redirects and is counted, and each link has a page showing clicks over time.

What must work

  • 01Create short links with a random or custom code; refuse duplicates
  • 02Redirects fast (a 307) and records the click
  • 03A stats page per link with clicks per day
  • 04Rate limiting so nobody can fill the database

If you want to go further

  • QR code per link
  • Links that expire