Every November someone on the team volunteers to organise Secret Santa, and every November the same thing happens: the first generator they find wants an account, then wants everyone's email address, then wants to send reminders. You can skip all of that. A fair draw, one private link per person and a "these two can't draw each other" rule all fit in a static page, with nothing stored on a server.
This is the story of how I built that for Group Fun Hub, a free set of group games and tools, and the three decisions that shaped it. It isn't a code tutorial. It's about what you give up when there's no backend, and why that trade was worth it for a gift exchange.
If a tool needs twenty email addresses to pick names out of a hat, the hat is not the product. The mailing list is.
The problem: a hat that wants your contacts
The popular Secret Santa sites all ask for sign-up or email before they'll draw. For a family that's mildly annoying. For a work team it's worse: you're handing a third party a list of colleagues' names and work addresses so it can do something a hat does for free.
So I wrote down what the organiser actually needs. Enter names. Draw. Give each person a way to see only their own match. Make sure partners don't get each other. That's it. None of those steps needs a database.
Where the data lives: the link, not a server
The whole site is plain HTML, CSS and JavaScript served from S3 behind CloudFront. No
login, no cookies, no API. When the organiser draws, each person's result is encoded
into the part of their link after the #. Browsers never send that
fragment to the server, so the match exists only in the link itself. Settings the
organiser might want next year (names, budget, couples) stay in
localStorage on their own device.
Here's the honest part, and I put it on the page too. The link is scrambled so the organiser doesn't accidentally read a match while copying it into a chat. It is not encryption. A determined organiser could decode it. Real secrecy from the organiser needs a server that holds the draw and checks who's asking, and I chose not to run one.
For a gift exchange that's the right call. The threat model is "Maria peeks at the spreadsheet", not an attacker. Being clear about the limit beats pretending a static page can do something it can't.
The couples rule is a constraint problem
A plain shuffle isn't enough once real people are involved. Partners shouldn't draw each other. Nobody draws themselves. Some groups also want one big gift circle, where Ana gives to Marko, Marko gives to Lea and so on until it comes back to Ana, instead of little A-to-B swaps. That makes the opening round more fun because the reveal travels around the room.
So the draw is a small constraint solver. Each couple or household turns into a set of blocked pairs, in both directions, and the engine searches for an assignment that respects all of them. Two details matter more than they look:
- Real randomness. The shuffle uses
crypto.getRandomValueswith rejection sampling, notMath.random()with a modulo. Nobody will audit a Secret Santa, but "the draw was rigged" is a joke that gets old fast. - Fail loudly when it's impossible. If one household is more than half the group, no valid draw exists. The tool says so and asks you to drop an exception, instead of hanging or quietly breaking the rule.
The same rule then carries across the rest of the site. The random team generator can split couples across teams for a quiz night, and coffee roulette never pairs two people who already have coffee at home. One definition of "these people belong together", reused everywhere, beats asking the same question in six different forms.
The reveal is where people actually meet the tool
I spent more time on the reveal page than on the draw. It's the only screen most participants ever see. It greets them by name, tells them to make sure nobody's looking over their shoulder, and only then lets them tap a gift to unwrap the match. Underneath sit the budget, the organiser's hint and an Add to calendar file with a reminder three days before. The calendar event deliberately leaves out the receiver's name, because calendars get shared and phones get glanced at.
There's also a hide-name button for people opening the link at their desk. Small, but it's the difference between a tool that works in a demo and one that works in an open-plan office.
What I'd tell anyone building something similar
Start by listing what the user needs, then ask which of those steps truly needs a server. For a lot of group tools the answer is none. Teams, wheels, pairings, bill splitting: the browser can do all of it, and people trust a tool more when it doesn't ask for anything.
Know where the approach stops. Anything live, like planning poker or a buzzer quiz where everyone's phone has to see the same state, needs at least a signalling service to connect browsers. That's no longer "no backend", and I'd rather say so than stretch the label.
And don't expect search traffic in year one. A new domain won't rank for "Secret Santa generator" in its first December. What spreads it is the reveal link itself: every participant who opens one sees a quiet "start your own" link, and some of them run the next office exchange.
If you're organising one this year, the Secret Santa generator takes about a minute. Agree the budget first. That part no tool can do for you.