🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101

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. 1

    Models

    User {username unique lowercase, passwordHash, theme}, Link {user, title, url, order, hidden, clicks}.

  2. 2

    Username rules

    Allow a–z, 0–9 and dots, 3–20 characters; block reserved words like admin, api, login.

  3. 3

    Dashboard

    Logged-in page to add links, validate URLs (http/https only), reorder with up/down buttons.

  4. 4

    Public page

    GET /:username renders the page server-side (EJS) so it is fast and shareable; 404 for unknown users.

  5. 5

    Click tracking

    Links go through /r/:linkId which increments clicks with $inc and redirects with 302.

  6. 6

    Themes

    Store a theme name and switch CSS variables on the public page.

  7. 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