Skip to content
المشاريع

حول

A self-hosted web app that lets couples draw activity cards to break the routine and spice up their daily lives.

تطوير الويب والتطبيقات

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
+١
خلال 15 يومًا
+١
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Couplecards

License: MIT Release Docker image GitHub stars

A self-hosted web app that lets couples draw activity cards to break the routine and spice up their daily lives.

The deck is split into two piles, "Home" and "Outdoor". Each instance has one administrator and as many player accounts as you want. The admin can create accounts directly, or open public registration so anyone can sign up from the login page. In practice a couple often shares a single account.

The app works offline once loaded, with no telemetry and no external network call at runtime.

Try the demo

A hosted demo is available at https://couplecards.qiaeru.com/. Sign in with demo / demo. The demo account's state is wiped on every sign-in, so feel free to click anything.

Home Draw Collection
Couplecards home screen with the Home and Outdoor piles Tapping the Outdoor pile flips a rare card with the full reveal animation The Collection grid with discovered, banned and still hidden cards
Two piles, one tap A rare card revealed Every card found so far

Highlights

What it does

  • Two piles. The deck splits into a "Home" pile and an "Outdoor" pile. Tap a pile, the top card flips with a foil-shimmer reveal, and a swipe sends it back to the deck or bans it from future draws.
  • Personal deck memory. Each player gets their own history, their own ban list, and a low-pile warning when a stack runs thin. Banned cards can be restored with one tap. Drawing a second time from the same pile returns the previous card so the deck stays balanced.
  • Accounts. The built-in admin creates accounts for each player, or opens public registration so people sign up themselves from the login page. The admin also manages the shared card library (create, edit, ban, export, import, sync from JSON), sets the activity language, and can sweep away accounts left inactive for months. No third-party identity provider.
  • Responsive PWA, five languages. French, English, German, Italian, and Spanish all ship out of the box. Works on phone, tablet, and desktop with a dark theme, a foil-and-glow visual language, full keyboard and screen-reader support, install-to-home-screen on iOS and Android, and offline use after the first load.

Under the hood

  • Backend. Node.js 24 and Fastify 5, with SQLite through the built-in node:sqlite module. The entire database is a single file on disk (var/couplecards.db). Password hashing uses hash-wasm (pure WebAssembly), so nothing is compiled at install time: the only native module, sodium-native (session encryption), installs from a prebuilt binary.
  • Authentication. Argon2id password hashes, session cookies flagged HttpOnly and SameSite=Strict, CSRF protection, per-route rate limiting, account lockout after repeated failures, and a forced password change on first sign-in for admin-created accounts.
  • Frontend. Vanilla ES modules organized into core, features, and ui. No client-side build step is required to edit a feature. Two vendor bundles produced by esbuild during the Docker build (zxcvbn for password strength, fflate for the deck export/import) are the only artifacts that need a build step.
  • Offline first. IndexedDB caches the deck, an outbox replays mutations on reconnect, and a Service Worker precaches the app shell so the app still opens with no network.
  • Internationalized. Five locales ship out of the box (French is the source of truth, English is the fallback, German, Italian, and Spanish are full naturalizations). Every user-facing string lives in public/locales/<locale>.json. The bundled fonts (Inter and Fraunces) cover Latin Extended and Vietnamese; Greek and Cyrillic fall back to the system fonts.
  • Ready for public release. MIT licensed, no CDN, no analytics, strict CSP, X-Robots-Tag: noindex, SPDX headers on every source file, security.txt, Dependabot, GitHub Actions CI, and GHCR releases.

Quick start

cp .env.example .env
# Generate a secret with: openssl rand -base64 48
# Paste it into .env as SESSION_SECRET
# Linux only: the container runs as UID 999 and must own its data directory
mkdir -p var && sudo chown 999:999 var
docker compose up -d --build

Open http://localhost:3000. On the first boot:

  1. Read the admin password the server generated, with docker compose logs couplecards: it sits between two lines of = signs.
  2. Sign in with couplecards and that password.
  3. Pick a strong admin password when prompted.
  4. From the admin panel, create accounts for the players, or open public registration so they can sign up themselves from the login page. Admin-created accounts show their initial password exactly once; copy it somewhere safe.

Documentation

HTTPS deployments

Three ready-to-use Compose variants live in deploy/:

  • Caddy is the simplest option, with automatic Let's Encrypt certificates.
  • Traefik uses label-based routing and fits well alongside other services.
  • nginx is for hosts that already run nginx with their own certbot pipeline.

Credits

Every third-party asset ships locally under a permissive open-source license. The project uses the Inter and Fraunces fonts (SIL OFL 1.1), the Fluent UI Emoji icon set (MIT), Fastify, hash-wasm, zxcvbn-ts, and esbuild. See CREDITS.md for the full attribution list.

License

Released under the MIT License. See LICENSE for the full text.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…