Poker Venue Manager
Find a file
Mikkel Georgsen 28a827efa1 Add custom login UI replacing Zitadel built-in login pages
Replace Zitadel's built-in login v1 with a fully custom SvelteKit-based
login experience using Zitadel Session API v2. Keeps the existing OIDC
authorization code flow (Auth.js handles token exchange) while providing
branded login, signup, password reset, and TOTP pages.

- Enable Login V2 in docker-compose, assign IAM_LOGIN_CLIENT role in setup script
- Add server-only Zitadel API client ($lib/server/zitadel.ts) with session,
  user, and auth-request management functions
- Create reusable auth UI components (AuthCard, FormField, FormError, LoadingButton)
- Rewrite login page with email/password form and TOTP second factor support
- Add signup page with auto-login after registration
- Add password reset flow (request + verify pages)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 13:54:01 +01:00
apps/dashboard Add custom login UI replacing Zitadel built-in login pages 2026-02-08 13:54:01 +01:00
crates Address security/tech debt: token refresh, JWKS thundering herd, config safety, jq migration 2026-02-08 13:17:42 +01:00
docker Add custom login UI replacing Zitadel built-in login pages 2026-02-08 13:54:01 +01:00
docs Address security/tech debt: token refresh, JWKS thundering herd, config safety, jq migration 2026-02-08 13:17:42 +01:00
.gitignore Add Zitadel OIDC setup, SMTP config, and security fixes 2026-02-08 12:34:44 +01:00
Cargo.toml Scaffold base webapp: Rust/Axum API + SvelteKit dashboard + Docker dev env 2026-02-08 03:37:07 +01:00
package.json Scaffold base webapp: Rust/Axum API + SvelteKit dashboard + Docker dev env 2026-02-08 03:37:07 +01:00
pnpm-lock.yaml Scaffold base webapp: Rust/Axum API + SvelteKit dashboard + Docker dev env 2026-02-08 03:37:07 +01:00
pnpm-workspace.yaml Scaffold base webapp: Rust/Axum API + SvelteKit dashboard + Docker dev env 2026-02-08 03:37:07 +01:00
README.md Fix misaligned right border in ASCII art hero 2026-02-08 05:52:01 +01:00

 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
 ░░                                                               ░░
 ░░   ██████╗ ██╗   ██╗███╗   ███╗   ♠ ♥ ♣ ♦                      ░░
 ░░   ██╔══██╗██║   ██║████╗ ████║                                ░░
 ░░   ██████╔╝╚██╗ ██╔╝██╔████╔██║   poker venue manager          ░░
 ░░   ██╔═══╝  ╚████╔╝ ██║╚██╔╝██║   -- since 2026 --             ░░
 ░░   ██║       ╚██╔╝  ██║ ╚═╝ ██║   seat open, table 3!          ░░
 ░░   ╚═╝        ╚═╝   ╚═╝     ╚═╝                                ░░
 ░░                                                               ░░
 ░░   tournaments · cash games · dealers · players · displays     ░░
 ░░   all managed · always on · no rake required                  ░░
 ░░                                                               ░░
 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

What is PVM?

PVM is a comprehensive management system for poker venues of any size. It handles the full lifecycle of venue operations:

  • Tournament Management — Planning, live clocks, seating, registration, results, and recurring series
  • Cash Game Operations — Table tracking, waiting lists, game types, and session history
  • Player Accounts — One account across all venues, memberships, and game history. Players sign up for PVM first, then join venues.
  • Dealer Coordination — Scheduling, availability, shift swaps, and cross-venue mobility
  • Venue Display System — Push live clocks, seatings, waitlists, and info to any TV via Android display clients with mDNS auto-discovery
  • Local Node Support — Optional on-premise Raspberry Pi 5 proxy (Docker-based) for zero-downtime operation during internet outages (up to 72h offline)

Architecture

Hetzner PVE (LXC + Docker)
├── Rust API (Axum) + WebSocket Gateway
├── PostgreSQL 16 + DragonflyDB
├── NATS + JetStream
└── SvelteKit Web Apps
       │
       ├── near-realtime event sync (NATS)      ──►  Venue RPi5 Nodes (Docker)
       ├── Web App / PWA (managers, staff, players, dealers)
       └── Venue TVs (Android display client, cloud fallback)

Tech Stack

Layer Technology
Backend Rust + Axum
Frontend SvelteKit (Svelte 5) + shadcn-svelte + Tailwind v4
Cloud DB PostgreSQL 16+
Local DB libSQL (embedded)
Cache DragonflyDB
Messaging NATS + JetStream
Auth Custom JWT + RBAC
API REST + OpenAPI 3.1
Infra Hetzner PVE, Docker, Forgejo Actions

Documentation


Built for the poker community.