Most online advent calendar builders fall into one of two traps: either they force every friend to create an account just to leave a 150-character note, or they encode all 24 notes inside a client-side URL where anyone who opens DevTools can spoil December in three seconds.
When building OurFriendsAdvent, we set three strict constraints:
- Zero sign-up for owners and friends — create a 24-door board in 10 seconds and share one link.
- True server-side spoiler locks — friends cannot read each other's notes, and even the calendar owner cannot fetch the text of Door 14 before December 14 arrives.
- Late-December catch-up — if someone starts on December 2 or December 10, any already-passed date unlocks the moment a friend fills it.
Here is the lightweight architecture we used on Cloudflare Workers + D1 and the edge cases that surprised us.
1. Password-Free Ownership Without Auth Friction
Instead of emails and magic links, creating a calendar generates a random owner token stored in the creator's browser localStorage, while the D1 database stores only the SHA-256 hash of that token alongside a 10-character shareable calendar code.
- Owners manage their calendar, delete spam doors, or open unlocked doors by proving possession of the browser token.
- Friends only ever receive the 10-character code (or direct share link) and a separate contributor hash so they can edit or delete only the doors they personally sealed.
Tradeoff: we explicitly warn users on the site and FAQ that clearing browser storage removes owner management access—honesty beats hiding constraints behind vague copy.
2. Why Client-Side Date Checks Fail Spoiler Protection
If your API returns { day: 18, note: "Happy early Christmas..." } and hides it behind a CSS lock in the UI, one look at the Network tab ruins the surprise.
Our Worker endpoint enforces date gating in the SQL/API response layer:
- For friends, the API returns only
{ day, claimed: true, authorLabel }— never the note text. - For the owner, the Worker compares each door's December day against the calendar's current date window. Future doors return
{ day, claimed: true, locked: true }withnote: null. - Once a December date has arrived (or already passed for late starters), the Worker releases the stored plain text and sticker ID.
3. Abuse Prevention Without Turning It Into a CAPTCHA Maze
Open multi-friend forms attract link spam fast. Rather than locking out real friend groups behind logins, we combined three simple server guards:
- 200-character plain-text cap with URL patterns rejected server-side.
- Per-friend 3-door cap so one person cannot hijack all 24 doors, while smaller friend groups of 8+ people can still fill a full calendar.
- Hashed IP rate limiting in D1 + one-click owner deletion for any unwanted note.
4. Built-In 1080×1920 Story Cards & .ics Daily Reminders
The hardest UX problem for a friends advent calendar is not building the grid—it is getting 24 doors filled and reminding the owner to actually open them every morning.
We added two zero-backend utilities on the client:
- Canvas-rendered 1080×1920 vertical Story PNG showing live filled-door progress and the 10-character code for Instagram/TikTok Stories or WhatsApp Status.
- RFC 5545
.icsfile generator (plus a Google Calendar link) that schedules a daily Dec 1–24 morning reminder containing the direct link back to the owner's board.
5. Open CC BY 4.0 Prompt Dataset (120 Notes Under 200 Chars)
Because staring at a blank door is the #1 reason friends abandon a link, we also published a clean UTF-8 CC BY 4.0 dataset of 120 concise friends advent calendar notes (all verified <= 200 characters) plus a 2026 online advent calendar tools comparison CSV and a zero-dependency Node.js CLI:
- GitHub repo & CLI: hongcsd/friends-advent-calendar-prompts
- Permanent Zenodo DOI (
10.5281/zenodo.24738384): zenodo.org/records/24738384 - Web edition of the prompts: ourfriendsadvent.com/ideas
- Feature comparison with other online advent calendar tools: ourfriendsadvent.com/alternatives
If you are building lightweight seasonal web apps without accounts, I would love to hear how you handle ownership recovery and spam prevention without adding login walls.
