- TypeScript 84.3%
- CSS 10.9%
- JavaScript 3.7%
- Dockerfile 1.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| app | ||
| components | ||
| lib | ||
| prisma | ||
| public | ||
| scripts | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| docker-compose.yml | ||
| Dockerfile | ||
| LICENSE | ||
| next-env.d.ts | ||
| next.config.ts | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
Gift IT!
Gift IT! is an account-free Secret Santa app with short join codes, QR sharing, participant exclusions, randomized assignments, and private reveal links. It supports English and German and can send reveal links by email.
Features
- Create a gift draw and invite participants with a short code or QR code.
- Add exclusions, such as partners who should not draw each other.
- Generate assignments while keeping each reveal private.
- Share reveal links directly or send them to participants by email.
- Run with SQLite in Docker, with data kept in a named volume.
Requirements
- Node.js 24 or Docker with the Compose plugin.
- For email delivery, an SMTP account and the SMTP settings described below.
Local development
npm install
cp .env.example .env
DATABASE_URL="file:/private/tmp/secret-santa-dev.db" PRISMA_LOG_LEVEL=debug RUST_LOG=debug npx prisma db push
DATABASE_URL="file:/private/tmp/secret-santa-dev.db" npm run dev
Open http://localhost:3000.
For local development in this workspace, the commands above use /private/tmp
because this workspace path contains a space, which can make Prisma's SQLite
schema engine fail on macOS. Docker uses /data/secret-santa.db and applies
the committed migration at container startup.
Docker
docker compose up --build
Compose starts the app in the background and restarts it after a host reboot
unless you explicitly stop it with docker compose stop or remove it with
docker compose down.
Set APP_URL to your public URL when hosting so QR codes, join links, and reveal
emails point to the right place. Put the app behind HTTPS using a reverse proxy
for public deployments. Keep the secret_santa_data Docker volume when updating
or recreating the container; it contains the SQLite database.
Example .env for a reverse-proxy setup:
DATABASE_URL="file:/data/secret-santa.db"
APP_URL="https://giftit.example.com"
HOST_BIND="127.0.0.1:3112:3000"
SMTP_HOST="smtp.example.com"
SMTP_PORT="587"
SMTP_SECURE="false"
SMTP_USER="giftit@example.com"
SMTP_PASSWORD="change-me"
SMTP_FROM="Gift IT! <giftit@example.com>"
SMTP is optional. If SMTP_HOST and SMTP_FROM are empty, the app keeps using
manual reveal links only.
Do not commit .env files or real SMTP credentials. The included .env.example
contains placeholders and can be copied as a starting point.
Test SMTP from the running Docker container:
docker compose exec secret-santa npm run smtp:test -- you@example.com
Data and security
The app stores draw names, participant names, optional contact details and notes, exclusions, assignments, and private access tokens in SQLite. Anyone with an admin or reveal link can use the access granted by that link, so share these URLs only with their intended recipients. Back up the Docker volume securely and restrict access to the host and its backups.
License
This project is licensed under the MIT License. You may use, modify, and redistribute it, provided you retain the copyright and license notices in copies or substantial portions of the software. The copyright holder is kabi.day.