elghaied

payload reserve

by elghaied
Other
v3
^3.86.0
MIT

Overview

Summary generated from the README

Adds a full reservation system to Payload 3.x with Services, Resources, Schedules, Reservations and Customers collections. It replaces the reservations list with a calendar, adds a dashboard widget and exposes a public booking REST API. Requires Payload 3.86 or later; MongoDB needs a replica set and SQLite needs transaction options to prevent double booking.

Features

  • Conflict detection with per-service buffers and capacity tracking
  • Fixed, flexible and full-day duration types
  • Multi-resource bookings and weekly or one-off schedules with time off
  • Configurable status machine with cancellation notice period
  • Slot holds, guest bookings and seven lifecycle hooks
  • Public REST API for availability, slots, booking, cancel and holds

Use cases

  • Build appointment scheduling for salons or clinics managed in the Payload admin
  • Run hotel stays or restaurant table bookings with capacity pools
  • Sell event tickets with quantity limits and payment holds during checkout

From the author

A Payload CMS 3.x plugin for reservation and booking management with conflict detection, status workflows, and calendar UI

Installation

npm i payload-reserve

45

Stars

8

Forks

1

Open Issues

1 weeks ago

Last Updated

730

Weekly Downloads

v4.5.0

npm Version

1.6 MB

Unpacked Size

0

Dependencies

GitHub stars

45+13 since Sep 7

Show data
GitHub stars by day (UTC)
DateStars
Dec 6, 202645
Dec 5, 202645
Dec 4, 202645
Dec 3, 202644
Dec 2, 202644
Dec 1, 202643
Nov 30, 202643
Nov 29, 202643
Nov 28, 202643
Nov 27, 202643
Nov 26, 202643
Nov 25, 202643
Nov 24, 202642
Nov 23, 202642
Nov 22, 202642
Nov 21, 202642
Nov 20, 202642
Nov 19, 202642
Nov 18, 202642
Nov 17, 202642
Nov 16, 202642
Nov 15, 202642
Nov 14, 202642
Nov 13, 202642
Nov 12, 202642
Nov 11, 202642
Nov 10, 202642
Nov 9, 202642
Nov 8, 202642
Nov 7, 202642
Nov 6, 202642
Nov 5, 202641
Nov 4, 202641
Nov 3, 202639
Nov 2, 202639
Nov 1, 202639
Oct 31, 202639
Oct 30, 202639
Oct 29, 202639
Oct 28, 202639
Oct 27, 202639
Oct 26, 202639
Oct 25, 202639
Oct 24, 202639
Oct 23, 202638
Oct 22, 202638
Oct 21, 202638
Oct 20, 202638
Oct 19, 202638
Oct 18, 202638
Oct 17, 202638
Oct 16, 202638
Oct 15, 202638
Oct 14, 202636
Oct 13, 202636
Oct 12, 202636
Oct 11, 202636
Oct 10, 202636
Oct 9, 202634
Oct 8, 202634
Oct 7, 202634
Oct 6, 202634
Oct 5, 202634
Oct 4, 202634
Oct 3, 202634
Oct 2, 202634
Oct 1, 202634
Sep 30, 202634
Sep 29, 202634
Sep 28, 202634
Sep 27, 202633
Sep 26, 202633
Sep 25, 202633
Sep 24, 202633
Sep 23, 202633
Sep 22, 202633
Sep 21, 202633
Sep 20, 202633
Sep 19, 202633
Sep 18, 202633
Sep 17, 202632
Sep 16, 202632
Sep 15, 202632
Sep 14, 202632
Sep 13, 202632
Sep 12, 202632
Sep 11, 202632
Sep 10, 202632
Sep 9, 202632
Sep 8, 202632
Sep 7, 202632
npm weekly downloads

611+12 since Sep 7

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 6, 2026611
Dec 5, 2026659
Dec 4, 2026883
Dec 3, 2026868
Dec 2, 2026900
Dec 1, 2026864
Nov 30, 2026864
Nov 29, 2026954
Nov 28, 2026947
Nov 27, 2026712
Nov 26, 2026904
Nov 25, 20261,484
Nov 24, 20261,541
Nov 23, 20261,595
Nov 22, 20261,559
Nov 21, 20261,469
Nov 20, 20261,386
Nov 19, 20261,198
Nov 18, 2026620
Nov 17, 2026483
Nov 16, 2026394
Nov 15, 2026341
Nov 14, 2026353
Nov 13, 2026352
Nov 12, 2026328
Nov 11, 2026306
Nov 10, 2026361
Nov 9, 2026379
Nov 8, 2026357
Nov 7, 2026332
Nov 6, 2026341
Nov 5, 2026304
Nov 4, 2026292
Nov 3, 2026285
Nov 2, 2026493
Nov 1, 2026539
Oct 31, 2026539
Oct 30, 2026631
Oct 29, 2026592
Oct 28, 2026566
Oct 27, 2026565
Oct 26, 2026398
Oct 25, 2026586
Oct 24, 2026602
Oct 23, 2026477
Oct 22, 2026492
Oct 21, 2026556
Oct 20, 2026523
Oct 19, 2026482
Oct 18, 2026411
Oct 17, 2026454
Oct 16, 2026520
Oct 15, 2026537
Oct 14, 2026664
Oct 13, 2026772
Oct 12, 2026734
Oct 11, 2026557
Oct 10, 2026512
Oct 9, 2026471
Oct 8, 2026487
Oct 7, 2026322
Oct 6, 2026197
Oct 5, 2026190
Oct 4, 2026165
Oct 3, 2026229
Oct 2, 2026279
Oct 1, 2026285
Sep 30, 2026312
Sep 29, 2026662
Sep 28, 2026963
Sep 27, 20261,007
Sep 26, 20261,058
Sep 25, 20261,015
Sep 24, 2026988
Sep 23, 2026982
Sep 22, 2026682
Sep 21, 2026437
Sep 20, 2026436
Sep 19, 2026346
Sep 18, 2026497
Sep 17, 2026502
Sep 16, 2026484
Sep 15, 2026482
Sep 14, 2026436
Sep 13, 2026668
Sep 12, 2026829
Sep 11, 2026685
Sep 10, 2026679
Sep 9, 2026665
Sep 8, 2026606
Sep 7, 2026599

Each point is npm's rolling 7-day download count.

Health Score

82/100Excellent

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/1157211530-root.svg)](https://payloaddirectory.dev/plugins/1157211530-root)
HTML
<a href="https://payloaddirectory.dev/plugins/1157211530-root"><img src="https://payloaddirectory.dev/badge/1157211530-root.svg" alt="Payload Directory"></a>
Updated Nov 25, 2026Created Feb 13, 2026Published Nov 25, 2026

README

payload-reserve

npm version npm downloads license Payload Directory

A full-featured reservation and booking plugin for Payload CMS (this branch targets Payload 3; see Compatibility). Adds a scheduling system with conflict detection, a configurable status machine, multi-resource bookings, capacity and inventory tracking, a public REST API, and admin UI components.

Designed for salons, clinics, hotels, restaurants, event venues, and any business that needs appointment scheduling managed through Payload's admin panel.

πŸ“¦ npm: https://www.npmjs.com/package/payload-reserve

Website Β· Documentation Β· Live demos Β· Demo source code


Compatibility

payload-reservePayloadInstall
4.x (this branch)3.x (^3.86.0)pnpm add payload-reserve
5.x (prerelease)4.x beta β€” Next.js or TanStack Startpnpm add payload-reserve@next β€” see the next branch

Quick Start

import { buildConfig } from 'payload'
import { payloadReserve } from 'payload-reserve'

export default buildConfig({
  collections: [/* your collections */],
  plugins: [payloadReserve()],
})

Then run payload generate:importmap and restart. You get Services, Resources, Schedules, Reservations and Customers collections, a calendar in place of the reservations list, a dashboard widget, and the public booking API under /api/reserve/*.

Two things to know before going live:

  • Database: MongoDB needs a replica set and SQLite needs transactionOptions on the adapter, or simultaneous bookings can double-book. Postgres works as is. See Concurrent Bookings.
  • Your own users collection: set userCollection, tell the plugin who is staff (staff: { roleField: 'roles', roles: ['admin'] }) and supply an access rule for customers. See Access control for customers.

Features

  • Bookings that cannot collide β€” conflict detection with per-service buffers, capacity (quantity, per-guest or per-reservation), and a database lock for simultaneous bookers
  • Three duration types β€” fixed, flexible (customer picks the end) and full-day
  • Multi-resource bookings β€” one reservation across several resources, including pools a service always requires
  • Schedules β€” weekly or one-off hours, exceptions and multi-day time off, in your business timezone
  • Configurable status machine β€” your own statuses and transitions, with a cancellation notice period
  • Guest bookings β€” no account needed; cancel by token
  • Slot holds β€” reserve a slot for a few minutes while the customer pays
  • Lifecycle hooks β€” seven hooks for email, payments and webhooks
  • Admin UI β€” month/week/day/lanes calendar, pending list, reservation detail drawer, availability grid, dashboard widget; every piece replaceable
  • Public REST API β€” availability, slots, book, cancel, holds
  • Multi-tenancy β€” resource-owner mode, and support for @payloadcms/plugin-multi-tenant with per-tenant timezones
  • External calendars β€” fold busy time from Google/Outlook sync or a legacy system into availability
  • 12 languages, fully typed, MongoDB / Postgres / SQLite

Live Demos

Four standalone booking apps, each fully themed and running the same plugin with completely different business logic β€” the fastest way to see whether payload-reserve fits your use case before wiring anything up.

DemoWhat it booksPlugin features it exercises
Salon β€” Lumiere SalonAppointments with a specific stylist1:1 resource booking, per-resource schedules, 5 min buffer, abandoned-payment jobs
Hotel β€” Grand HotelMulti-night stays across 5 room typesDate-range booking, flexible duration, quantity pools (2–40 units), 4–6 h turnover buffer
Restaurant β€” Le Jardin DorΓ©Tables by party size across 5 dining spacesCustom reservation fields (partySize), per-guest capacity, 15 min turnover, 4 h cancellation notice
Events β€” Γ‰clat FestivalTickets for events across 5 venues (50–500 seats)Ticket quantities, per-reservation capacity mode, resource–event restrictions

All four ship Stripe payments and EN/FR internationalization.

Source code: elghaied/payloadreserve-demos β€” a Turborepo containing all four apps plus shared seed, email-template, and types packages. This is the reference implementation for taking the plugin from Payload config to a shipped Next.js 15 / React 19 frontend.

Want your own instance? payloadreserve.com/demo provisions a private, fully seeded copy of any demo β€” its own database, storage, and admin credentials, emailed to you. It self-destructs after 24 hours, so you can change anything without consequence.

Documentation

Also published at docs.payloadreserve.com.

Start here
Getting StartedInstall, quick start, what gets created, upgrading
ConfigurationEvery plugin option with its default
ExamplesSalon, hotel, restaurant, events, Stripe, email
Booking
CollectionsFields of each collection, the delete guard
Booking FeaturesDuration types, multi-resource, capacity, guest bookings
Status MachineStatuses, transitions, the hook chain
Slot HoldsHolding a slot during checkout
Staff SchedulingAuto-provisioned staff resources, time off
TimezonesBusiness and per-tenant timezones
Integrating
REST APIEndpoints, parameters, responses
Hooks APIThe seven lifecycle hooks and when they fire
Admin UICalendar, detail drawer, replacing components, styling
External BusyCalendar sync and other busy-time sources
InternationalizationBundled languages, overriding strings
Running it safely
Access ControlDefault access per user type, how endpoints authorize
Multi-TenancyResource-owner mode and the multi-tenant plugin
Concurrent BookingsDatabase requirements and measured behaviour per adapter
AdvancedIndexes, collection overrides, reconciliation

Changes per release are in the CHANGELOG. Contributing and release steps are in Development.

License

MIT

Similar plugins