santa
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data β all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v28View latest version
A festive web application for Secret Santa gift exchanges with encrypted assignment links.
- π Splashy Christmas-themed UI with falling snowflakes and festive animations
- π Encrypted assignment links for secure Secret Santa assignments
- π Interactive gift reveal - click the gift box to discover your assignment
- π± Responsive design that works on all devices
- β¨ Celebration effects when the assignment is revealed
- Welcome Page (
/) - Shows a festive landing page for users without a valid token - Assignment Page (
/{encrypted-token}) - Decrypts the token and shows:- A personalized greeting to the giver
- An interactive gift box that reveals the receiver when clicked
- Festive animations and celebration effects
- Uses AES-GCM encryption to secure assignment data
- Tokens are URL-safe Base64 encoded
- Requires
ENCRYPTION_KEYenvironment variable (hex format)
The decrypted token should contain:
{ "giver": "John Doe", "receiver": "Jane Smith" }
Alternative field names are supported:
frominstead ofgivertoinstead ofreceiver
main.ts- Main HTTP handler with HTML page generationutils.ts- Encryption/decryption utilitiesREADME.md- This documentation
ENCRYPTION_KEY- Hex-encoded encryption key for AES-GCM decryption
- Generate encrypted tokens containing giver/receiver pairs
- Share links in format:
https://your-domain.com/{encrypted-token} - Recipients click the gift box to reveal their Secret Santa assignment
- Uses TailwindCSS for responsive styling
- Custom Christmas fonts (Mountains of Christmas)
- Animated snowflakes and celebration effects
- Festive color scheme with gradients and glowing effects