Booking
Appointment booking for Payload CMS 3.x with database-enforced slot uniqueness, magic-link cancellation and transactional emails.
Installation
pnpm add @ogutdgn/payload-booking About
A visitor picks a real time slot on the host site, the appointment appears in the Payload admin, both sides get email, either side can cancel, and the same slot can never be sold twice. The duplicate-prevention guarantee is enforced by a database uniqueness constraint on a lock key, not by application logic, and is verified on both PostgreSQL and MongoDB. The plugin registers four collections and one global: `appointments`, `booking-resources`, `booking-blackout-dates`, `booking-settings`. Public REST endpoints mount under `/api/booking` by default and cover availability, resources, form-token issuance, booking, and token-based cancellation, plus staff actions for cancelling an appointment and marking it completed or no-show. All time is computed server-side in the configured business timezone, so the browser only receives rendered labels and opaque ISO strings. Cancellations are signed magic links, not deletes, so the audit trail, slot release and customer email all run through one status-change path. Confirmations and cancellation notices go out through Payload's own email adapter, with optional per-event template overrides and ICS calendar attachments. The package logs every send attempt back onto the appointment record and warns loudly when no real adapter is configured. Spam protection runs in four layers: a hidden honeypot field, a signed time-trap token measured from page load, and per-IP and per-email caps, plus an optional `verifyChallenge` hook for providers like Cloudflare Turnstile. The host renders the exported `BookingForm` and `CancelView` React components on its own pages, or builds its own UI against the same endpoints. No prices, payments or deposits are included.
Package info
- Package name
@ogutdgn/payload-booking- Latest version
0.1.2- Unpacked size
- 666 kB
- License
- MIT
- Weekly downloads
- 21
- Last publish
- Sep 17, 2026
Similar plugins
More in AdminSEO Analyzer
Payload plugin that audits page SEO in the editor sidebar with 50+ checks, a dashboard, score history, redirects and IndexNow.
Admin Nav
Customizable Payload admin sidebar with drag-and-drop reordering, per-user preferences, 70+ icons, nested sub-menus, and a visual customizer view.
Presets
Save and apply reusable block configurations as presets in the Payload admin panel.
Aspect Preview
Inline crop, focal point, and live multi-aspect-ratio preview editor for Payload upload collections.
Reservation and Booking Manager
Manage reservations and bookings through Payload CMS with conflict detection and scheduling.
Live Preview
Live preview for Payload CMS in Astro and any SSR/static frontend (SvelteKit, Nuxt, Next.js, plain HTML), patching the DOM without rebuilds.