No description
  • JavaScript 63.7%
  • EJS 22.7%
  • CSS 12.3%
  • Dockerfile 1.3%
Find a file
Joshua Renker 3746856bdd
All checks were successful
deploy / deploy (push) Successful in 15s
feat: let owners mark items as top wishes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 13:42:42 -04:00
.forgejo/workflows chore: fix deploy docker rebuild steps 2026-10-10 13:38:14 -04:00
public feat: let owners mark items as top wishes 2026-10-10 13:42:42 -04:00
src feat: let owners mark items as top wishes 2026-10-10 13:42:42 -04:00
test initial build 2026-10-07 12:20:12 -04:00
views feat: let owners mark items as top wishes 2026-10-10 13:42:42 -04:00
.dockerignore initial build 2026-10-07 12:20:12 -04:00
.env.example revisions: CSRF checks, user comments, card counts, notifications 2026-10-07 13:13:20 -04:00
.gitignore initial build 2026-10-07 12:20:12 -04:00
DECISIONS.md revisions: CSRF checks, user comments, card counts, notifications 2026-10-07 13:13:20 -04:00
docker-compose.yml revisions: CSRF checks, user comments, card counts, notifications 2026-10-07 13:13:20 -04:00
Dockerfile feat: retry bot-blocked sites via curl-impersonate 2026-10-10 11:19:01 -04:00
package-lock.json initial build 2026-10-07 12:20:12 -04:00
package.json initial build 2026-10-07 12:20:12 -04:00
PROMPT.md initial build 2026-10-07 12:20:12 -04:00
README.md revisions: CSRF checks, user comments, card counts, notifications 2026-10-07 13:13:20 -04:00

The Wishlist

A simple family gift-exchange site. Everyone keeps a wishlist (add items by pasting a product link), and everyone else can claim items, mark them purchased, and comment — without the list's owner seeing any of it.

Run with Docker

cp .env.example .env     # set ADMIN_PASSWORD (and optionally REGISTRATION_CODE)
docker compose up -d --build

Open http://localhost:3000 and sign in as the admin (admin / your ADMIN_PASSWORD). If ADMIN_PASSWORD is empty, a random one is printed in docker compose logs. Data (SQLite database + downloaded product images) lives in the wishlist-data volume.

On a VPS, put it behind a TLS reverse proxy (Caddy, nginx, Traefik), set TRUST_PROXY=true, and bind the port to localhost (127.0.0.1:3000:3000 in docker-compose.yml).

Back up: docker run --rm -v wishlist_wishlist-data:/data -v "$PWD":/out alpine tar czf /out/wishlist-backup.tgz -C /data .

Run locally without Docker

Requires Node 22.13+ (24 recommended).

npm install
npm start          # http://localhost:3000, data in ./data
npm test           # scraper unit tests

Configuration (environment variables)

Variable Default Purpose
ADMIN_USERNAME / ADMIN_PASSWORD admin / random Admin created on first run if no admin exists
REGISTRATION_CODE (none) If set, new people must enter this code to register
ALLOW_REGISTRATION true false closes self-registration (admin adds people)
ALLOWED_HOSTS (any) Comma-separated hostnames/IPs (no port) the site answers to; others get 421
TRUST_PROXY (none) true when behind a reverse proxy
PORT, DATA_DIR 3000, ./data (/data in Docker)

See DECISIONS.md for design decisions and assumptions.