No description https://giftit.fayy.net
  • TypeScript 84.3%
  • CSS 10.9%
  • JavaScript 3.7%
  • Dockerfile 1.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-27 20:39:58 +01:00
app Improve privacy copy and Docker restart behavior 2026-11-27 20:34:46 +01:00
components Allow partial reveal email delivery 2026-09-06 19:47:16 +02:00
lib Allow partial reveal email delivery 2026-09-06 19:47:16 +02:00
prisma Build accountless Secret Santa app 2026-08-23 13:27:53 +02:00
public Serve hero image locally 2026-09-03 15:26:17 +02:00
scripts Use one SMTP transport for reveal emails 2026-09-06 19:40:10 +02:00
.dockerignore Build accountless Secret Santa app 2026-08-23 13:27:53 +02:00
.env.example Use persistent Docker database in env example 2026-08-23 15:04:50 +02:00
.gitignore Build accountless Secret Santa app 2026-08-23 13:27:53 +02:00
docker-compose.yml Improve privacy copy and Docker restart behavior 2026-11-27 20:34:46 +01:00
Dockerfile Ensure SQLite schema compatibility on startup 2026-09-06 19:24:41 +02:00
LICENSE Add MIT license for kabi.day 2026-11-27 20:37:41 +01:00
next-env.d.ts Build accountless Secret Santa app 2026-08-23 13:27:53 +02:00
next.config.ts Build accountless Secret Santa app 2026-08-23 13:27:53 +02:00
package-lock.json Add optional SMTP reveal emails 2026-08-23 14:27:08 +02:00
package.json Add SMTP test script 2026-09-06 19:31:37 +02:00
README.md Add MIT license for kabi.day 2026-11-27 20:37:41 +01:00
tsconfig.json Build accountless Secret Santa app 2026-08-23 13:27:53 +02:00

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.