Brain Structural Validation / Validate Markdown Structure & Links (push) Successful in 7s
- Add controlled A/B benchmark roadmap for portable Hexagonal AuthPort & OIDC migration - Register roadmap and retrospective in bdinvite project index
type, status, tags
| type | status | tags | |||||
|---|---|---|---|---|---|---|---|
| project | active |
|
💌 BDInvite — Interactive Digital Birthday Invitation & Guest RSVP
BDInvite is a self-hosted, interactive digital birthday invitation application featuring event countdowns, venue mapping, Colombian phone number normalization, guest RSVP registration, and an Authelia-protected administration dashboard for guest list review and live event configuration.
The application runs as an autonomous workload in the homelab environment under demos.roadtotech.me/birthday.
🏛️ System Topology & Architecture
BDInvite is packaged as a high-efficiency single-container service combining a modern React 19 frontend and an asynchronous FastAPI backend:
- Client & UI Tier:
- React 19 SPA bundled via Vite with Tailwind CSS v4.
- Interactive animations powered by Motion and
canvas-confetti. - Self-hosted typography (
Playfair DisplayandPlus Jakarta Sans) bundled directly in static distribution assets, eliminating runtime calls to third-party font CDNs.
- Application & API Tier:
- FastAPI running on Python 3.11 with
uvicorn, managed viauv. - Serves REST API routes under
/birthday/api/*and acts as the SPA static web server for/birthday/*.
- FastAPI running on Python 3.11 with
- Persistence Tier:
- SQLite 3 with Write-Ahead Logging (
PRAGMA journal_mode=WAL;), persisted on a volume mount at./data/bdinvite.db. - Stores unique guest RSVPs and singleton event configuration (
invitation_config).
- SQLite 3 with Write-Ahead Logging (
- Edge & Identity Gateway:
- Traefik v3: Handles path-based ingress on
demos.roadtotech.mewith priority-based route separation. - Authelia ForwardAuth: Intercepts requests to administrative routes (
/birthday/admin*), providing multi-factor SSO before traffic reaches the container.
- Traefik v3: Handles path-based ingress on
flowchart TB
subgraph Clients ["Client Layer"]
GuestBrowser["Guest Mobile / Web Browser"]
AdminBrowser["Organizer Browser"]
end
subgraph Edge ["Homelab Edge (Traefik v3 & Authelia)"]
Traefik["Traefik Reverse Proxy\n(demos.roadtotech.me)"]
Authelia["Authelia SSO\n(ForwardAuth :9091)"]
Traefik <-->|"ForwardAuth (/birthday/admin*)"| Authelia
end
subgraph Workload ["Workload Container (bdinvite :8000)"]
FastAPI["FastAPI Web & API Server\n(uvicorn / Python 3.11)"]
StaticSPA["Bundled React 19 SPA\n(Vite / Tailwind v4)"]
SQLite[("SQLite 3 (WAL Mode)\n./data/bdinvite.db")]
FastAPI --> StaticSPA
FastAPI --> SQLite
end
GuestBrowser -->|"HTTPS GET /birthday\n(Priority 10: Public)"| Traefik
AdminBrowser -->|"HTTPS GET /birthday/admin\n(Priority 20: Authelia)"| Traefik
Traefik -->|"HTTP Proxy :8000\n(+ Remote-User for admin)"| FastAPI
📍 Source Code & Locations
| Component | Location / URL | Description |
|---|---|---|
| Gitea Forge | bdinvite | Canonical Git repository housing frontend/, backend/, and specs/ |
| Clone (SSH) | ssh://git@gitea.roadtotech.me:2223/kiskaadee/bdinvite.git |
Developer clone URL using SSH port 2223 |
| Workstation Path | ~/Homelab/Sites/bdinvite |
Local development checkout with Nix devShell |
| Production Target | server-remote:~/Sites/bdinvite |
Production workload checkout orchestrated via appctl |
| Public URL | demos.roadtotech.me/birthday | Public invitation and RSVP interface |
| Admin Portal | demos.roadtotech.me/birthday/admin | Authelia-protected guest list and live configuration dashboard |
🔑 Key Invariants & Architectural Commitments
-
Single-Container Multi-Stage Packaging:
- A multi-stage Dockerfile utilizes
node:20-alpineto compile the Vite React application, copying the resultingdist/directory into a lightweightpython:3.11-bookworm-slimimage powered byuv. - FastAPI serves both the JSON API and the static SPA fallback from a single process on port 8000, avoiding multi-container operational overhead for lightweight micro-sites.
- A multi-stage Dockerfile utilizes
-
Split Path-Based Routing & Ingress Priority:
- Deployed on the shared demo domain
demos.roadtotech.meunder the/birthdaypath prefix. - Public guest access uses a Traefik router at priority
10(PathPrefix(/birthday)). - Admin access uses an overlapping Traefik router at priority
20(PathPrefix(/birthday/admin)) withauthelia-auth@dockerForwardAuth middleware. Traefik matches the more specific rule first.
- Deployed on the shared demo domain
-
Defense-in-Depth Authentication Invariant:
- While Authelia gates the edge reverse proxy, every admin API endpoint (
/birthday/api/admin/*) independently checks for the presence of theRemote-UserHTTP header injected by Authelia. - Administrative endpoints reject requests with HTTP 401 if the header is absent, preventing accidental data exposure if proxy middleware configuration lapses.
- While Authelia gates the edge reverse proxy, every admin API endpoint (
-
Colombian Phone Normalization & Deduplication:
- RSVPs normalize phone inputs by stripping whitespace/delimiters, stripping the
+57country prefix if 12 digits, and enforcing a 10-digit mobile number format starting with3. - The unique normalized phone acts as the natural deduplication key backed by a unique database constraint (
rsvps.phone).
- RSVPs normalize phone inputs by stripping whitespace/delimiters, stripping the
-
Live Singleton Event Configuration:
- Event metadata (honoree name, venue address, event date/time, Google Maps preview links, custom RSVP headings, and celebration messages) is stored in a singleton configuration table (
invitation_config). - Edits via the admin dashboard update the singleton row and reflect immediately across all connected guest clients without container restarts or code redeployments.
- Event metadata (honoree name, venue address, event date/time, Google Maps preview links, custom RSVP headings, and celebration messages) is stored in a singleton configuration table (
🏛️ Related Documents & Decisions
- 🗺️ Implementation Plans & Specifications:
- BDInvite Implementation Plan — Phased technical execution plan (P0–P5) covering Docker packaging, FastAPI backend, React 19 frontend, Traefik split routing, and deployment.
- Digital Invitation Frontend Specification — Responsive design principles, particle canvas architecture, typography, and guest/admin state transitions.
- SSO Authentication Benchmark Roadmap — Controlled A/B benchmark (Control vs Graphify) for portable Hexagonal AuthPort & OIDC migration.
- 💡 Explorations & Discussions:
- Graphify Agent Experiment Retrospective — Empirical post-mortem comparing Control vs Graphify agent conditions across the 8-checkpoint OIDC migration.
- 🏛️ Architectural Decision Record:
- BDInvite Single-Container Architecture, Split Traefik Routing & ForwardAuth Integration — MADR 4.0 capturing container topology, Traefik priority routing, defense-in-depth auth, and self-hosted fonts.
- 🌐 Platform Context:
- Homelab Ecosystem & Core Infrastructure — System topology and workload specifications for
roadtotech.me.
- Homelab Ecosystem & Core Infrastructure — System topology and workload specifications for