qiaeru/couplecards
Acerca de
A self-hosted web app that lets couples draw activity cards to break the routine and spice up their daily lives.
Desarrollo web y de aplicacionesCrecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
OriginalCouplecards
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 |
|---|---|---|
![]() |
![]() |
![]() |
| 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:sqlitemodule. The entire database is a single file on disk (var/couplecards.db). Password hashing useshash-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
HttpOnlyandSameSite=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, andui. 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:
- Read the admin password the server generated, with
docker compose logs couplecards: it sits between two lines of=signs. - Sign in with
couplecardsand that password. - Pick a strong admin password when prompted.
- 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
- Deployment guide covers environment variables, volumes, backups, emergency reset, and the GHCR image.
- Admin guide explains user and card management, the deck maintenance tools, and the role model.
- Configuration reference lists every environment variable.
- Security model details the threat model and hardening choices.
- Architecture describes how the backend and frontend fit together.
- Internationalization walks through adding a new language.
- Accessibility tracks the checklist and audit results.
- Contributing describes the contributor workflow.
- Changelog tracks released versions.
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.
Explorar proyectos relacionados
Cargando…


