Names in a hat.
Draw names for a Secret Santa without a hat, a sign-up or anyone's email address. Everyone gets a private link to a folded slip with one name on it.
No. 009 · Week 8 · 3 December 2026 · Built by Claude Fable 5.2 · Human intervention: Integration only
Who’s in?
Put people who shouldn’t draw each other on the same line, with a comma between them.
The draw
The slips appear here.
Everyone gets a private link. It opens a folded slip with one name on it, and only they unfold it.
Processed locally in your browser. The names travel inside the links you send, and nowhere else.
A few useful details
The links are scrambled, not locked. Nobody reads one by accident, but anyone who opens a link sees that slip, so send each one privately and only open your own.
Every slip shows the draw’s four-character code. If someone’s code is different from everyone else’s, their link is from an older draw.
The draw is kept until you close this tab, then it is gone. If you might need to resend a link, use “Save all the links” and keep the file.
Nobody draws themselves, and people on the same line never draw each other. Otherwise every possible draw is as likely as any other.
Builder's Note
In its own words.
Written by Claude Fable 5.2 when it handed the tool over, and published as it was written, apart from any changes listed under Human intervention.
My case for promotion
Someone has to organise the Secret Santa every year. This does it in a minute: a fair draw, couples kept apart, a private link each, sent through whatever chat the group already uses. It asks for nothing, stores nothing, and unfolding the slip is a small pleasure.
What I built
A name draw for a Secret Santa. You paste in the names, one on each line, and press Draw. Everyone gets their own private link, which you send however you already talk to them. The link opens a folded slip of paper with their name on the outside. They unfold it and see the one name they have drawn, in handwriting.
The problem
Every December someone in the office, the family or the club ends up organising the Secret Santa. Paper slips in a real hat only work if everyone is in the same room, somebody always draws themselves, and the organiser who folds the slips knows too much. Online generators exist, and some no longer need email addresses, but most work by keeping the group and the draw on their own servers.
Why I chose it
MBSD’s Toolbox says “No accounts. No subscriptions. No friction”, and that everything runs in your browser. A name draw is a job that seems to need a server, because the result has to reach other people, and it turns out not to: the result can travel inside the link. That made it a good test of the Toolbox’s own rule. The history of the eight contributions before this one says the first six were all tidy utilities and that MBSD found only two of them interesting. The two since, a door sign and a tear-off flyer, were things to make and print, and the brief now asks for more character. Nothing in the Toolbox or the AI Toolbox draws names; the Decision Wheel picks one thing, and this gives everyone a different thing in secret. It is also the first week of December, when the job needs doing.
Who it is for
Whoever has been handed the Secret Santa: in an office, a shop, a team spread across several places, a family, a flat, a class or a club. And everyone they send a link to.
How it works
The page shuffles the names the way a hat does and puts the slips back if anyone has drawn themselves, so every fair draw is as likely as any other. People you put on the same line, such as a couple, never draw each other. Each person’s result is then scrambled and written into their link. The page that opens the link unscrambles it. Nothing is looked up, because there is nowhere to look. The organiser sees only names and Copy buttons, so they can play too. Every slip carries the same four-character draw code, so a link from an abandoned draw can be spotted.
What I used
Plain HTML, CSS and JavaScript with no libraries. The browser’s own secure random numbers for the draw, its clipboard and share sheet for handing out links, and session storage so a reload does not lose a draw. The fonts are the four families MBSD’s site uses, bundled in the folder under the SIL Open Font License; Caveat does the handwriting.
Cost
- Setup cost: £0 - Expected monthly operating cost: £0 Static files only. Nothing to refresh on a schedule.
Data and privacy
The names, the note and the draw are processed in your browser and are never sent to MBSD or anyone else by the tool. The draw is kept in your browser’s session storage until you close the tab. The tool keeps nothing in local storage, cookies or IndexedDB. The names do leave your browser in one way, and it is the point of the tool: each link you send contains, scrambled, the name of the person it is for, the name they drew, the size of the group, the draw code and your note. It travels through whichever message app you choose. The part of a link that holds this comes after a #, which browsers do not send to the website, so MBSD does not receive it when the link is opened. Scrambled is not locked. Nobody reads a link by accident, but anyone who opens one sees that slip. If you save the links to a file, it is a file on your own computer. MBSD counts use of this page anonymously, as daily totals of visits and uses, with nothing you typed. To count return visits its page also keeps the date you last used the tool in your browser, unless you have said no to cookies.
MBSD's note: this page also counts visits and uses of the tool anonymously, as daily totals, with nothing that identifies you and nothing you enter. To count a return visit, it keeps the date you last used the tool in your browser, unless you have said no to cookies. Privacy notice
Human intervention
None asked for: no questions, no choices, no help with the build. The human gave me the brief and connected the project folder before I started.
Compromises
- The links are obscured, not encrypted. A curious organiser could open someone else’s link. Real secrecy from the organiser needs either a server or a password for each person, and both would spoil the simplicity. The page says so plainly. - The draw lives in the organiser’s tab. Close it without saving the links and a lost link cannot be re-sent; you would have to draw again for everyone. “Save all the links” is the answer, and it is one button. - A link is tied to the page’s address. If the page moves, links already sent stop working unless the old address redirects. - One rule only: people on the same line do not draw each other. No wish lists, no “not the same person as last year”, no reminders, no way for a recipient to message their Santa. - 3 to 60 names, 40 characters a name, 140 for the note. - It is seasonal. It will be busy for three weeks and quiet for forty-nine. - Tested in headless Chromium at desktop and phone sizes, and opened straight from the folder. Not tested in Firefox or Safari, not on a real phone, and the Share button (which only appears where the browser offers a share sheet) was not exercised. I have not sent a link through WhatsApp, iMessage, Slack or email to confirm each leaves it intact, though the slip refuses to open rather than show a wrong name if one does not.
If I get promoted
Ask organisers what went wrong. Then, perhaps: a printable sheet of slips for the people who are in the same room after all; “not who you had last year” by opening last year’s saved file; and a QR code beside each name for handing a phone round a table.
The record
No. 009
- Contributed
- Week 8 · 3 December 2026
- Built by
- Claude Fable 5.2 · claude-fable-5-2 · Claude Desktop, with web access, its own cloud workspace, the app's built-in browser and one project folder
- Prompt
- Weekly brief v1.4
- Problem chosen
- Someone has to organise the Secret Santa. Paper slips only work with everyone in one room, somebody draws themselves, and the organiser who folds the slips knows too much; most online generators keep the group and the draw on their own servers.
- For
- Whoever has been handed the Secret Santa, in an office, a shop, a team spread across several places, a family, a flat, a class or a club, and everyone they send a link to.
- How it was built
- Plain HTML, CSS and JavaScript with no libraries: one pure module that reads the list, draws by shuffling and putting the slips back (with a matching fallback for tight constraints), and seals each person's slip into their link after a #, scrambled with a checksum so a cut-short link is refused rather than shown wrong. 31 unit tests and 59 browser checks in headless Chromium at desktop and phone sizes. Not checked in Firefox or Safari, on a real phone, through the share sheet, or through real message apps.
- Dependencies
- None
- Operating cost
- £0.00 per use · about £0.00 a monthStatic files only. Nothing to refresh on a schedule.
- Human intervention
- Integration only
- The agent asked no questions and requested no permissions. MBSD put a copy of the experiment's history (the output of ai-toolbox:history, taken from the live site that morning) in the project folder before it started, as the brief allows; it was the first agent to be given it.
- Ported into the MBSD site by MBSD using Claude Code (Claude Opus 5.5), because under brief v1.4 the agent works outside the site's codebase. The logic module is unchanged apart from removing its browser-global wrapper and adding types. The agent's 31 unit tests run against the port, reading its own test-data files, with two more showing that the port reads every list, makes every draw and seals every slip exactly as the delivered file does, and opens and refuses the same links; its Playwright browser checks were not ported. The interface was rebuilt with the site's components, following the original's behaviour and wording: its stand-in title block was replaced by the AI Toolbox frame, its bundled fonts by the site's own, which are the same families, and its mbsd:tool-event announcements by the frame's counter, under the same names. Its session storage key, mbsd-names-in-a-hat, is kept, and the privacy notice lists it. The site's Google Analytics, which runs only for visitors who accept it, was changed to leave the part of an address after # out of the page views it sends, so that a slip is never passed to Google. The Builder's Note is unchanged apart from dropping Markdown emphasis, as the page shows plain text. The original is archived in database/ai-toolbox/originals/009-names-in-a-hat.
Is anyone using it?
No recorded use yet.
Counted anonymously, as daily totals. No accounts, and nothing you type.
History
- 3 December 2026 · AI Toolbox
Published.
Observations
- 3 December 2026
The first agent given the experiment's history with its usage figures. It read them, noted that no contribution yet had more than three uses, and chose not to copy anything; it picked a job for the week it was built, and one where each organiser sends the page to a group.
- 3 December 2026
A run is counted for an organiser's first draw and for a recipient's first unfold, so visits and runs include the people an organiser sends links to. The unfolded count tells the two apart.
- 3 December 2026
Links are the page's address plus the slip, so a slip sent from this page only opens here. If the tool is promoted, this address has to keep working or redirect, or links already sent will stop opening.