🎄 Speciale feste
Organizza il tuo Babbo Natale segreto.
Nessuno può sbirciare.
Inserisci i nomi, noi facciamo l'estrazione e creiamo un link protonURL per ogni partecipante. Ognuno apre il suo una sola volta, scopre a chi deve fare il regalo… e il messaggio si autodistrugge.
Estrazione gratuita, senza registrazione
Come funziona
-
1
Inserisci i nomi
Aggiungi i partecipanti e, se serve, le persone che non devono estrarsi a vicenda (le coppie, per esempio).
-
2
Facciamo l'estrazione
Tutti vengono inseriti in un cerchio di regali casuale, poi viene creato un link protonURL cifrato per ogni partecipante.
-
3
Invia i link
Ognuno riceve il suo link via SMS, WhatsApp o email. Appena viene letto, il messaggio si distrugge.
🕵️ E se qualcuno prova a sbirciare?
Un link protonURL si apre una sola volta. Se l'organizzatore (o chiunque altro) apre il link di un altro, il vero destinatario troverà un link già aperto: l'imbroglio si scopre subito. Basta rifare l'estrazione.
Il problema del Babbo Natale segreto classico
I bigliettini
Bisogna riunire tutti nello stesso posto, e c'è sempre qualcuno che pesca il proprio nome.
L'organizzatore sa tutto
Chi fa l'estrazione conosce tutte le coppie. Per lui, addio sorpresa.
Le app dedicate
Account da creare, email raccolte, pubblicità… solo per estrarre qualche nome.
🔒 Segreto davvero, anche per l'organizzatore
-
🙅 Nessun pulsante «svela tutto»
Le coppie non vengono mai mostrate a nessuno. L'organizzatore vede solo dei link, non i nomi estratti.
-
🤖 Niente IA
Le tue liste di nomi non vengono mai inviate a un servizio di intelligenza artificiale.
-
🚫 Nessun account
Niente registrazione, niente email richiesta, niente pubblicità. I link non aperti vengono eliminati dopo un mese.
«L'ho appena usato per organizzare un Babbo Natale segreto! Era quello che mi serviva e ha funzionato bene. È un segreto anche per me, ed è più bello così.»
🔍 Per i più diffidenti
Preferisci non affidarci l'estrazione?
Falla sul tuo computer. Lo script è breve e leggibile: l'estrazione avviene sulla tua macchina, non sui nostri server. protonURL si limita poi a conservare ogni messaggio cifrato, come per qualsiasi altro link.
- Richiedi la tua chiave API gratuita (20 chiamate al mese, senza carta di credito).
- Scarica lo script e inserisci la tua chiave, i partecipanti e il messaggio.
- Esegui
python3 secret-santa.py: otterrai un link per ogni partecipante.
#!/usr/bin/env python3
"""
Secret Santa with protonURL — https://protonurl.com/secret-santa.html
Draws names and creates one self-destructing link per participant.
Nobody, not even the organiser, knows who got whom: each person opens
their own link once, and the message is destroyed right after.
Requirements: Python 3.8+, no extra package.
Usage: edit the settings below, then run `python3 secret-santa.py`
"""
import json
import random
import sys
import urllib.error
import urllib.request
# ── Settings ────────────────────────────────────────────────────────────────
API_KEY = "YOUR_API_KEY" # Free key (20 calls/month): https://protonurl.com/free-trial.html
PARTICIPANTS = ["Alice", "Bob", "Charlie", "Diana", "Eve"]
# Optional: people who must not draw each other (couples, roommates…)
EXCLUSIONS = [
("Alice", "Bob"),
]
MESSAGE = (
"🎅 Hi {giver}!\n\n"
"You are {receiver}'s Secret Santa! 🎁\n"
"You're the one buying them a gift.\n\n"
"Keep it secret 🤫 This message has now self-destructed: "
"write the name down or take a screenshot, you won't be able to read it again.\n\n"
"🎄 Run your own Secret Santa: https://protonurl.com/secret-santa.html"
)
DURATION_HOURS = 744 # Unopened links expire after 1 month. Allowed: 1, 72, 168, 744, 4464, 8760
# ── Script ──────────────────────────────────────────────────────────────────
API_URL = "https://api.protonurl.com"
ALLOWED_DURATIONS = (1, 72, 168, 744, 4464, 8760)
def api_call(method, path, payload=None):
request = urllib.request.Request(
API_URL + path,
data=json.dumps(payload).encode() if payload is not None else None,
method=method,
headers={
"Authorization": "Bearer " + API_KEY,
"Content-Type": "application/json",
},
)
try:
with urllib.request.urlopen(request, timeout=30) as response:
return json.load(response)
except urllib.error.HTTPError as error:
sys.exit(f"API error {error.code}: {error.read().decode(errors='replace')}")
def draw(people, exclusions, attempts=10_000):
"""Shuffle everyone into a single gift circle, so nobody draws themselves."""
rng = random.SystemRandom()
forbidden = {frozenset(pair) for pair in exclusions}
for _ in range(attempts):
circle = people[:]
rng.shuffle(circle)
pairs = [(circle[i], circle[(i + 1) % len(circle)]) for i in range(len(circle))]
if not any(frozenset(pair) in forbidden for pair in pairs):
return pairs
sys.exit("No valid draw found: there are too many exclusions.")
def main():
if API_KEY == "YOUR_API_KEY":
sys.exit("Set your API key first: https://protonurl.com/free-trial.html")
if len(PARTICIPANTS) < 3:
sys.exit("You need at least 3 participants.")
if len(set(PARTICIPANTS)) != len(PARTICIPANTS):
sys.exit("Each participant name must be unique.")
if type(DURATION_HOURS) is not int or DURATION_HOURS not in ALLOWED_DURATIONS:
sys.exit(f"DURATION_HOURS must be one of {ALLOWED_DURATIONS}.")
# Check the quota first, so the draw never stops halfway (this check uses 1 call)
remaining = api_call("GET", "/quota").get("remaining")
if remaining is not None and remaining < len(PARTICIPANTS):
sys.exit(f"Only {remaining} API calls left this month, "
f"{len(PARTICIPANTS)} needed: https://protonurl.com/pricing.html")
pairs = draw(PARTICIPANTS, EXCLUSIONS)
print("Send each person their own link (and only theirs!):\n")
for giver, receiver in sorted(pairs):
link = api_call("POST", "/create", {
"text": MESSAGE.format(giver=giver, receiver=receiver),
"duration": DURATION_HOURS,
})["url"]
print(f" {giver:<20} {link}")
print("\nEach link works only once. If someone says theirs was already opened,")
print("somebody peeked: just run the script again for a fresh draw.")
if __name__ == "__main__":
main()
Con la chiave gratuita puoi fare un'estrazione fino a 19 partecipanti (lo script usa una chiamata per verificare la tua quota prima di iniziare). Per un gruppo più numeroso, il piano API Pro include 1.000 chiamate al mese.