Wedding Website & Custom Registry
This project is an open-source, self-hostable wedding website and celebration management platform built with Next.js, TypeScript, and PostgreSQL. It combines guest invitation workflows, multi-event RSVPs, interactive seating charts, photo moderation, scheduled broadcasts, a customizable gift registry, 3D interactive scenes, and full-site backups without vendor lock-in.
Documentation Portal | Live Demo | Storybook | Developer Setup | Architecture Overview | Runtime Contract | Deployment Recipes | API Specification | Asset Storage System | Downstream Upgrade Guide | Versioning Policy
Table of Contents
- Purpose
- Key Features
- Tech Stack
- Setup & Installation
- Upgrading & Upstream Maintenance
- Project Structure
- Contributing
- License
Purpose
The primary goal of this project is to provide a personal, customizable, and cost-effective solution for couples who want full ownership over their wedding website, guest logistics, and registry:
- Host your own celebration portal and registry without third-party platform fees.
- Customize themes, layouts, print materials, and multi-event schedules from an administrative studio.
- Keep guest contact details, RSVPs, photos, and seating plans private in your own PostgreSQL database.
Key Features
- Invitation Codes & Multi-Event Responses (RSVPs):
- Household invitation codes (
InvitationCode) with bounded 1,000-household catalog fetches (X-Total-Countpagination headers), CSV guest imports, public/guest/collectpostal address collection (address-collectiontag isolation withextraFields.householdNotesand Promote to Invited promotion), private-only sub-events (SubEvent,SubEventAccess) access toggles, portaled Avery 5160/5163 QR label sheet printing (AppConfig.baseUrl), and per-event event responses (SubEventRsvp) with meal choices, dietary notes, plus-one rules, and venue-timezone RSVP deadline cutoffs.
- Household invitation codes (
- Interactive Seating Charts:
- Drag-and-drop seating charts (
SeatingTable) with inline party/plus-one seat assignment, venue landmarks, table capacity tracking, household cohort grouping, printable floorplans, caterer exports, and guest table lookup.
- Drag-and-drop seating charts (
- Guest Photo Uploads & Moderation:
- Mobile-friendly guest photo gallery uploads (
Media) with worker-offloadedHEIC/HEIFtranscoding, backed by local disk or S3/R2 object storage and administrative moderation queues.
- Mobile-friendly guest photo gallery uploads (
- Scheduled Broadcasts & Communications:
- Cohort-filtered announcements, digital invitation cards, and scheduled email/SMS broadcasts (
BroadcastMessage,BroadcastRecipient) across native SMTP, Resend, SendGrid, and Twilio adapters processed via/api/cron/broadcasts.
- Cohort-filtered announcements, digital invitation cards, and scheduled email/SMS broadcasts (
- Custom Gift Registry, Cash Funds & Payments:
- Physical gifts and dedicated cash/experience funds (
RegistryItem,Contributor), single/batch product URL scraping and CSV imports, partial group gifting with live progress bars, peer-to-peer payment handles, optional Stripe card checkout with webhook verification, and contributor address collection with thank-you email dispatch and printable mailing labels.
- Physical gifts and dedicated cash/experience funds (
- 3D Interactive Experiences & Theme Studio:
- Interactive React Three Fiber and Rapier 3D scenes, Framer Motion transitions, 9 runtime feature toggles, "Add to Calendar" links, live weather forecasts, wedding party profiles (
WeddingPartyMember), and local travel guides (Attraction).
- Interactive React Three Fiber and Rapier 3D scenes, Framer Motion transitions, 9 runtime feature toggles, "Add to Calendar" links, live weather forecasts, wedding party profiles (
- Full-Site Backups & Portable Administration:
- Password-protected
/admin/dashboardacross 14 admin workspaces with content version history (ContentNode,SnapshotVersion), PostgreSQL-backed auth lockout protection (AuthLockout), and streamingv2.015-model full-site backups (JSON/ZIP export and restore across all 15 domainprisma/schema.prismaentities, excluding ephemeralAuthLockoutrows).
- Password-protected
Tech Stack
This project is built with a modern, full-stack TypeScript architecture.
- Framework: Next.js (App Router)
- Language: TypeScript
- Styling: Tailwind CSS
- Database ORM: Prisma
- Database: PostgreSQL (portable contract; compatible with local PostgreSQL, Neon, Supabase, Railway, AWS RDS, GCP Cloud SQL, etc.)
- 3D & Animation: React Three Fiber, Drei, & Framer Motion
- Physics: Rapier (via
@react-three/rapier) for 3D interactions. - State Management: React Query (TanStack Query) for server state.
- Testing: Jest, React Testing Library, and Playwright for end-to-end testing.
- Deployment: Multi-cloud options including Docker / VPS, Google Cloud Run, Vercel, and Railway / Render (See Deployment Guide).
Setup & Installation
Requires Node.js v22.x LTS (>=22.22.1 <23.0.0, pinned in .nvmrc), npm@10.9.x (^10.9.0, enforced via .npmrc and package.json), and PostgreSQL 15+.
git clone https://github.com/fderuiter/wedding_website.git
cd wedding_website
nvm use
npm ci
cp .env.example .env
docker compose up -d db
npm run migrate:dev
npm run devGenerate a 64-byte scrypt hash for ADMIN_PASSWORD in .env with node scripts/generate-password-hash.mjs "your_password", then open http://localhost:3000 to complete the interactive First-Run Setup Wizard.
- Local Setup, Environment Variables & First-Run Wizard: docs/developer-setup.md
- Unit, Accessibility, Container & Playwright E2E Testing: .github/TESTING.md
- Feature Scaffolding, Linting & Git Hook Workflow: .github/CONTRIBUTING.md
- Canonical Environment Variable & Entity Reference: docs/runtime-contract.md
- Production Hosting & CI/CD Deployment Recipes: DEPLOYMENT.md
- Static HTML Showcase Export (
npm run build:export): Compiles a database-free interactive showcase (out/) withSTATIC_EXPORT=trueand optionalNEXT_PUBLIC_BASE_PATHsubpath routing (see docs/developer-setup.md for the interactive demo runtime architecture).
Upgrading & Upstream Maintenance
If you cloned or forked this template to host your own wedding website, you can pull upstream fixes and new features using Git:
- See docs/upgrading.md for step-by-step instructions on adding upstream remotes, resolving conflicts, running database migrations (
npm run migrate:deploy), and post-upgrade testing. - See docs/versioning.md for our Semantic Versioning policy, release note categorization, and breaking change protocols.
Project Structure
.githooks: Repository Git hooks (pre-commitstaged linting andpre-pushworkspace verification gates)..github: GitHub Actions CI/CD workflows, contributor and testing guides, and issue/PR templates..storybook: Storybook 10 configuration and preview decorators for isolated UI component development.assets: Source brand assets and bundled fonts used during builds and image generation.docker: Isolated Prisma CLI lockfile and offline package stubs for the production container image.docs: Developer onboarding, runtime contract, feature specifications, and deployment runbooks.docs-portal: VitePress documentation portal configuration, interactive OpenAPI explorer, and staged specs.e2e: End-to-end browser, smoke, and accessibility test suites (Playwright).eslint-rules: Custom workspace ESLint rules enforcing utility import boundaries.prisma: Database schema definition and SQL migrations.public: Static assets and generated OpenAPI specification.scripts: CLI verification, documentation sync, portal generation, static export (scripts/build-export.mjs), and database seeding scripts.src/app: Next.js App Router pages, layouts, metadata builders, and Route Handlers.src/components: Shared React components, layout shells, interactive showcase controls, UI primitives, 3D scenes, and the first-runsetup/wizard.src/core: Framework infrastructure and authentication modules.src/features: Domain-isolated feature modules (broadcast,content,logistics,media,registry,seating,sub-events,weather).src/hooks: Shared React hooks.src/lib: Core library configurations (Prisma client,AppConfigloader, runtime module toggles, subpath helpers, sample archetype builders, and interactive demo state — see docs/developer-setup.md).src/mocks: MSW mock handlers and server setup for Jest and Storybook.src/testing: Typed test fixture factories.src/utils: Stateless utility functions (validation, formatting, storage, image worker processing, password verification).
Contributing
Contributions are welcome! Please see the CONTRIBUTING.md file for guidelines on how to participate in this project.
License
This project is open-source and available under the GNU Affero General Public License.