Skip to content

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 ​

  1. Purpose
  2. Key Features
  3. Tech Stack
  4. Setup & Installation
  5. Upgrading & Upstream Maintenance
  6. Project Structure
  7. Contributing
  8. 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-Count pagination headers), CSV guest imports, public /guest/collect postal address collection (address-collection tag isolation with extraFields.householdNotes and 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.
  • 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.
  • Guest Photo Uploads & Moderation:
    • Mobile-friendly guest photo gallery uploads (Media) with worker-offloaded HEIC/HEIF transcoding, backed by local disk or S3/R2 object storage and administrative moderation queues.
  • 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.
  • 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.
  • 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).
  • Full-Site Backups & Portable Administration:
    • Password-protected /admin/dashboard across 14 admin workspaces with content version history (ContentNode, SnapshotVersion), PostgreSQL-backed auth lockout protection (AuthLockout), and streaming v2.0 15-model full-site backups (JSON/ZIP export and restore across all 15 domain prisma/schema.prisma entities, excluding ephemeral AuthLockout rows).

Tech Stack ​

This project is built with a modern, full-stack TypeScript architecture.

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+.

bash
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 dev

Generate 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.

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-commit staged linting and pre-push workspace 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-run setup/ 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, AppConfig loader, 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.

Released under the AGPL-3.0 License.