Link-in-bio page builder
Users create a public page like yourname.page/arjun with their links, themes and click counts.
Intermediateâą 12â16 hoursđĒ 7 stepsNode.jsExpressMongoDBEJS or React
What you'll learn
- âPublic vs private routes
- âUnique usernames and slugs
- âTracking clicks without slowing pages
What you'll build
- âClaim a username
- âAdd, reorder and hide links
- âPick a theme
- âClick counts per link
Step-by-step guide
- 1
Models
User {username unique lowercase, passwordHash, theme}, Link {user, title, url, order, hidden, clicks}.
- 2
Username rules
Allow aâz, 0â9 and dots, 3â20 characters; block reserved words like admin, api, login.
- 3
Dashboard
Logged-in page to add links, validate URLs (http/https only), reorder with up/down buttons.
- 4
Public page
GET /:username renders the page server-side (EJS) so it is fast and shareable; 404 for unknown users.
- 5
Click tracking
Links go through /r/:linkId which increments clicks with $inc and redirects with 302.
- 6
Themes
Store a theme name and switch CSS variables on the public page.
- 7
Security
Escape all user text in templates, set helmet() headers and rate-limit login.
đ Make it stand out
- +QR code for the page
- +Daily click chart
- +Custom domains