This guide explains how to generate and distribute personalized invitation links for your guests.
Each guest receives a unique invitation link:
https://yourdomain.com/<wedding-uid>?guest=<base64-encoded-name>
Components:
<wedding-uid>: Your unique wedding identifier (e.g.,rifqi-dina-2025)?guest=: Query parameter for guest identification<base64-encoded-name>: Guest name encoded in URL-safe base64 format
- Guest clicks:
https://yourdomain.com/ahmad-fatimah-2025?guest=QWhtYWQ - System extracts and stores UID and guest name in localStorage
- URL automatically changes to:
https://yourdomain.com - All data persists in localStorage for 30 days
- Guest sees clean URL, data remains private
- Guest navigates to
https://yourdomain.com - Data loads from localStorage automatically
- No need to click the original link again
If a guest opens a different wedding invitation link, the system automatically updates localStorage with the new wedding data. No manual clearing needed.
Use the built-in script to generate personalized links:
bun run generate-links-
Edit
generate-links-example.js:const INVITATION_UID = "your-wedding-uid"; const BASE_URL = "https://yourdomain.com"; const guestList = [ "Ahmad Abdullah", "Sarah Johnson", "Bapak Rudi & Keluarga", // ... add all your guests ];
-
Run the script:
bun run generate-links
-
Output includes personalized links:
1. Ahmad Abdullah https://yourdomain.com/ahmad-fatimah-2025?guest=QWhtYWQlMjBBYmR1bGxhaA 2. Sarah Johnson https://yourdomain.com/ahmad-fatimah-2025?guest=U2FyYWglMjBKb2huc29u
- Name pre-filled: Guest name automatically appears in hero section
- Wish form ready: Name pre-populated in wedding wish submission
- Editable: Guests can update their name if needed
- Attendance tracking: Individual RSVP tracked per guest
- No login required: Seamless experience without authentication
- Privacy protected: Guest data stored locally, not in URL history
Assalamualaikum Warahmatullahi Wabarakatuh,
Dengan memohon rahmat dan ridho Allah SWT, kami mengundang Bapak/Ibu/Saudara/i untuk menghadiri pernikahan kami:
[Bride] & [Groom]
[Date] | [Location]
Buka undangan digital: [personalized-link]
Jazakumullahu khairan
[Bride] & [Groom] wedding invitation
Date: [date]
View your invitation: [short-link]
Subject: Wedding Invitation - [Bride] & [Groom]
Dear [Guest Name],
We joyfully invite you to celebrate our wedding...
View your personalized invitation: [link]
- Test links first: Always test generated links before mass distribution
- URL shorteners: Use bit.ly or similar for cleaner WhatsApp sharing
- Track opens: Monitor invitation views through attendance statistics
- Backup list: Keep a spreadsheet of guest names and their unique links
- Resend capability: Guests can request link resend via contact information