Appointments (module)
Appointments lets visitors book a free time on the website, for example a haircut or an intake meeting. The business sets its opening hours in the admin, sees the booked appointments there and can cancel them. Visitors get a confirmation email, and the business can get a notification for every new booking. It is a server package: an admin installs it on the Modules page (see Modules) and then switches it on. It is the first one built on SHADE's opening hours and holds: the opening hours give the free times, and a booking is a hold, so a time is never booked twice.
What accounts can do
Admins
- Install the package and switch the module on and off on the Modules page. It can only be switched on once email is set up.
- Set Send new appointments to: email addresses that get a notification for each new booking. Empty means only the visitor gets an email.
- Set Reminder (hours before): when the visitor gets a reminder of their appointment, 24 hours before by default (0 to 168; 0 sends none).
Admins and editors
- See the appointments from today on, grouped per day: time, name, email (a link to write to them), phone and note; with Show canceled appointments the canceled ones too, marked Canceled.
- See at a glance how many appointments there are today and tomorrow: the count on the Appointments entry in the sidebar's Bookings section entry.
- Cancel an appointment. The visitor gets an email, and the time becomes free again.
- Set the opening hours: periods per weekday, closed days and other hours (once or repeating), for the business or for a location of its own (see Opening hours for the rules).
- Set how appointments are booked: length, appointments at once, free time around each, notice and days ahead.
- Add the business's Services, each with its own length and, if wanted, a price: visitors then choose one first, and the free times follow its length. Change them, put them in order, and remove them.
- Add and remove the business's Locations. With locations, visitors choose one when booking. A location follows the business's opening hours until it is given its own.
Admins, for hosts and booking booking managers on the site
- Give an account the role Appointments: Host or Appointments: Booking manager for a location, under Accounts, the account's Roles (Account roles), and take it away again.
Host of a location, signed in on the site (likewise)
- See the appointments of their location from today on (time, name, email, phone), canceled ones marked, and cancel one (the visitor gets an email, the time is free again). Never another location's.
Booking booking managers of a location, also
- Make someone host of their location by the email address of their account, and take it away again. Only host, only in their own location, never themselves.
Visitors (on a page with the Appointment booking starter, see On the website)
- See the free times for the coming days (two weeks at a time unless the page says otherwise), page to later and earlier days, pick a time and book it with name and email (phone and note optional).
- When a time is full, wait for it: they give the same details and are put in line. When the time comes free, the first in line gets an email with a link to book it, held for them for a while (30 minutes unless the business sets another time). If they do not book it in time, the next in line is offered it.
- Confirm the booking with the link in the email they then get, within an hour. Until they do, the time is not theirs and the business doesn't see the booking.
- Get a confirmation email in the language they booked in (Dutch or English), once confirmed. It comes with the
appointment as a calendar file (
afspraak.icsorappointment.ics), which adds it to their own calendar (Apple, Google, Outlook and others): the time, the business and its location, and the business as organiser at the first address under Send new appointments to. It never holds their name, note or the links, since a calendar is often shared. When the appointment is cancelled, by them or the business, the cancellation email carries the same event called off, so a calendar that supports it removes it. - Move or cancel a booking through the links in their confirmation and reminder emails. The move link shows the free times of the next two weeks; choosing one moves the appointment at once, frees the old time, and sends a new confirmation with a calendar file that moves it in their calendar too. The business gets an email saying what moved where. Each link works once and until the appointment starts.
- Following a link opens a small page that asks before anything happens, so an email program that checks links changes nothing. A frontend can show these pages itself (Your own page for SHADE's links).
- Signed in on the site (with the My appointments starter), see their own appointments from today and cancel those that haven't started.
- Signed in, choose how their reminders reach them (
/my/reminders). Email is the only way so far, and what a visitor who chose nothing gets.
Who may do it
| Action | Permission | Roles |
|---|---|---|
| See appointments and the opening hours | appointments.read | admin, editor |
| Cancel an appointment, change the opening hours | appointments.manage | admin, editor |
| Read appointment times with an AI assistant's tools | appointments.ai.read | admin, ai |
| Switch the module on/off, edit its settings (recipients) | packages.manage | admin |
| See free times, book | none (rate-limited) | visitors |
| Add and remove locations | appointments.manage | admin, editor |
| See the services | appointments.read | admin, editor |
| Add, change, order and remove services | appointments.manage | admin, editor |
| Give and take the host and manager roles on the Accounts screen | accounts.roles | admin |
| See and cancel their own appointments on the site | the role appointments:customer (bookings.own), which every account with a confirmed address has without anyone giving it | accounts |
| See and cancel a location's appointments on the site | the role appointments:host (or booking-manager) for that location: bookings.read, bookings.manage | accounts with it |
| Make someone host of a location on the site | the role appointments:booking-manager for that location: host.assign, and it can give host | accounts with it |
- Editors get their actions from the module; admins get every action of a module automatically. The
airole has none: it cannot read appointments (which hold personal data) and the module gives AI assistants no tools. - While the module is off, its actions are refused for everyone.
- Without
appointments.manage, the Cancel buttons are hidden and the opening-hours editor is read-only.
The module's action for AI assistants, appointments.ai.read (Read appointment times through the AI's tools), gates
its tools. It is not appointments.read, which shows who booked: AI accounts never hold that.
For AI assistants
While the module is on, an AI assistant connected over MCP (AI assistants) has four read-only tools, so it can answer "what does Noord look like tomorrow?":
appointments_today: the confirmed appointments of one day (today unless given) in the business's time zone, with start, end, location and service, and the list of locations.appointments_week: the same for the 7 days from a date, per day.appointments_free_times: the times a visitor could book, over 1 to 14 days, and the last date that can be booked; with services, for the service given (the first one without) and the list of services with their length.appointments_location_day: one location's day, its appointments and the free times of that day.
They never book, move or cancel anything, and they give times and places only: no name, email address, phone number or note.
In the admin
Modules page (Modules): the module is listed as Appointments, "Visitors book a free time on
your site; you keep the opening hours and see the bookings here." Its first setting is Send new appointments to
(help: "Who hears of new appointments: type an email address and press Enter. Empty: only the visitor gets an email."),
a list of at most 20 addresses, one tag each. With it come Require consent, with it Consent text (the text by the
consent box, per language of the site: a language code such as nl or en and the text, up to 300 characters;
by default nl "Ik ga akkoord dat mijn gegevens voor deze afspraak worden gebruikt." and en "I agree that my details
are used for this appointment."), and Reminder (hours before, 24 by default, 0 for none). The settings are optional, so the only setup needed is email.
Appointments in the sidebar's Bookings section (calendar-check icon), shown with appointments.read. Four tabs:
- Upcoming: the confirmed appointments from the start of today (in the site's time zone), earliest first, grouped under a day heading ("Monday 19 October"). A switch Show cancelled appointments adds the cancelled ones, with a Cancelled badge and no cancel button. Days and times are shown in the site's time zone and the admin's language. Each row has the time range, the name, the service, the location and a Cancel button. Choosing the name opens the appointment beside the list (as a sheet on a phone): its status, when, where, the service and its price as booked, email, phone, note, consent and when it was booked. Cancel opens a confirmation: "Cancel the appointment of {name}?", "{when}. They get an email that it is canceled, and the time is free again.", button Cancel appointment. Success shows "Appointment canceled"; a failure "Could not cancel the appointment" with the reason. With nothing booked: "No appointments from today on."
- Services: what visitors can book, in the order the booking form offers them, each with its length and price. Add service takes a name, a description, the length in minutes (5 to 480, in steps of 5) and a price ("VAT included, in euros"; empty shows none). Each service can be moved up and down, and has Edit and Remove. A service no appointment names is deleted; one that appointments name is archived: no longer offered, listed under the others with Put back, and its appointments keep its name and the price they were booked at. With none: "No services: every appointment takes the length set under Opening hours."
- Locations: the business's locations, by name, each with Remove ("Remove the location {name}?", "Its appointments stay, without a location. Hosts and booking booking managers given their group for it no longer see them."), and a field Name of the location with Add location. With none: "No locations: appointments are the business's as a whole." The tab explains that hosts and booking booking managers get their group on their screen under Visitors. Each appointment on Upcoming shows its location.
- Opening hours: the line "Visitors can book the times in these hours. Changing them leaves existing appointments as they are."; with locations a selector Opening hours of (the business or a location); the opening-hours field (the week, and Closed days and other hours, once or repeating, described in Opening hours); and How appointments are booked: the length of an appointment, appointments at once, free time around each, notice and days ahead. A location shows whether it follows the business's hours and rules, and has a button Follow the business's hours that takes its own hours and rules away. Each location has its own places. Save opening hours shows "Opening hours saved" or "Could not save the opening hours". The hours and the rules are saved whole: when another admin saved them after the tab was loaded, nothing is saved and the tab shows "Someone else changed the opening hours meanwhile" with Reload the opening hours, so a change made meanwhile is never dropped.
The sidebar entry shows a count: the confirmed appointments today and tomorrow, still to come. There is no dashboard card. The screen texts are in English and Dutch.
Switching off goes through the guided turn-off of the Modules page (Modules):
- a confirmed appointment starting in the next 24 hours blocks the switch-off: "{n} appointment(s) in the next 24 hours. Cancel them or wait until they have passed.";
- confirmed appointments later in the coming year give a warning: "{n} upcoming appointment(s) are kept, but visitors can no longer book."
- Because the module holds data once anything was booked, the admin must type
appointmentsto confirm. - Dashboard card "Coming up" (in the default layout, small; for whoever may read appointments): how many confirmed appointments there are from now to the end of tomorrow, with a link to the appointments.
On the website
With the website module on, the module gives its editor three starter components (Components screen, marked From appointments). An admin adds one to the library, then puts it on a page like any component; once added it is an ordinary component, to change as you like. Their texts come in Dutch and English.
- Appointment booking: a heading, an intro, then the booking form. With services, Dienst comes first: each service with its length and price ("Grote beurt (90 min, € 109,00)"), and choosing one loads its free times. With locations, Vestiging comes next, and choosing one loads that location's free times. The free times load in the visitor's browser, so they are always current on a static site: grouped per day, the day written out ("vrijdag 30 oktober 2026"), each time a choice; Eerder and Later page through the days. Then name, email, phone and note, a consent box with the business's Consent text in the page's language (its default language's when the page's has none) when the business asks for it (Require consent), and Boek. After booking it asks the visitor to confirm with the link in their email (the message is a setting: "Kijk in je e-mail: bevestig je afspraak met de link die we je stuurden. Pas dan staat de tijd voor je vast.") and the times load again; the time stays free until the visitor confirms. Its settings: the heading, the intro, Days shown at a time (14 by default), the button's text and the message after booking. Two looks: Stacked and Card.
- Appointments for hosts: for a signed-in account with a host role, the appointments of their locations from today
on (time, location, name, email, phone, note), canceled ones marked, with Annuleren on those they may cancel. A
manager also gets Hosts: a location and an email address, Host maken and Rol afnemen. Someone
not signed in is asked to sign in (the link is a setting,
/accountby default); someone without a role is told so. - Free times, live (Vrije tijden, live): the free times of the next days, changing by themselves while a visitor looks, when someone else books or cancels (a socket, so it needs the realtime feature). It says "Live bijgewerkt" while it is connected, has a Verversen button, and without scripts says the times appear once the page has loaded. When the live updates can't go out (the realtime feature off, Redis away), bookings go on as usual and the failure is a warning in Errors and on the module's health card on the Modules page, its repeats counted in one line; a warning never marks the module as needing attention.
- My appointments: for the account page. A signed-in visitor sees the appointments booked with their account's
email address from today on, guest bookings made before the account included: the date and time, the location (with
locations), canceled ones marked, and Annuleren on those that haven't started. Cancelling says "Je afspraak is
geannuleerd. Je krijgt een e-mail."; with none it says "Je hebt geen afspraken vanaf vandaag.". Someone not signed in
is asked to sign in (the link is a setting,
/accountby default).
Other frontends can offer the same: the free times (with the consent text for locale), booking (refused without
consent, or with another text than one of the Consent texts, when Require consent is on,
and without a known location when there are locations), a visitor's own appointments, and the host's and
booking managers' screens. Another location's
appointments never reach a host's browser.
The consent text a visitor ticked is kept with their appointment, and as proof with SHADE: the text, its version and when, in their data on the Personal data screen and kept on erasure, for seven years by default (Data retention).
SHADE checks the account's roles on every request, before the module's code runs: a role taken away counts at once.
While the module is off, booking and the host screens stop working. Switching the module on or off rebuilds the site.
Without the website module
A frontend that builds its own booking form, in any framework, uses @shadestack/appointments-client. It is released
from the module's repository with the same version number as the module, and needs @shadestack/client beside it. It
holds no server code: a function per visitor route, and three stores that keep a form's state and do its work.
The route functions are listSlots, book, joinWaitlist, listMyAppointments, cancelMyAppointment,
getMyReminders and setMyReminders. Each takes the route's input and { baseUrl, fetch, headers, signal }, and
returns its answer typed. listSlots is public, so a server can call it while it renders (baseUrl set to SHADE's
address); the my routes need the visitor signed in and refuse with status 401 otherwise.
The stores are made per form, never once for the whole site:
import { createBooking } from '@shadestack/appointments-client'
const booking = createBooking({ locale: 'nl', live: true })
booking.store.subscribe(({ status, data, error }) => render(status, data, error))
await booking.load()
booking.choose(booking.store.getSnapshot().data.slots!.days[0]!.times[0]!.start)
await booking.book({ fullName, email, consent: true, website: honeypot.value })
createBooking({ days, locale, serviceId, locationId, live })reads the free times a page of days at a time (14 by default).earlierandlaterpage;chooseServiceandchooseLocationread the times again and clear the time chosen;choose(start)picks one.book(details)sends it with SHADE's spam fields: how long the form was open, counted from when the store was made (or fromformOpened()), and the hiddenwebsitefield as the page passes it. Withconsent: trueit sends the business's consent text thatGET /slotsgave. After a bookingdata.sentisbookedand the visitor still has to follow the link in their email. The times that are full are indata.slots.full, each with its day: choose one the same way, andjoinWaitlist(details)puts the visitor in line for it and makesdata.sentwaiting. When the time comes free, the first in line gets an email offering it. Withlive: truethe browser opens/slots/liveon the firstloadand reads the times again whenever one is taken or comes free;refresh()asks for them,close()ends it.createMyAppointments()loads the signed-in visitor's appointments from today on and cancels one withcancel(id).createReminderChoice()loads the notification methods their reminders can use and saves a choice withchoose(['email']).
Every store follows one contract: subscribe tells a new listener the state at once, and getSnapshot gives the same
object until the state changes, so Svelte's $store and React's useSyncExternalStore read it as it is (a Vue wrapper
is under Live updates, stores and kept state in Accounts). The
state is { status, data, error }, with status one of idle, loading, saving and error. A refused action
rejects with SHADE's ShadeApiError and also sets error: the status, the code, the message's key and the refused
fields' messages by field (error.fields.locationId). The key picks the words, and the package ships the module's in
@shadestack/appointments-client/locales/en.json and nl.json (appointments.errors.timeTaken and the others a
visitor can meet). A time someone else took first is refused with that key, and the store reads the times again.
On a server the stores open nothing: no socket, no storage. The booking form keeps nothing in the browser either,
since a time is only held once the visitor confirms it by email. The bookings starter books and lists
appointments with these stores (Use-case starters).
Rules and limits
Services: a name of 1–120 characters, a description up to 500, a length of 5 to 480 minutes in steps of 5, and a
price of at least 0 in euros, VAT included. Every service is offered at every location. Free times start on the grid
of the location's length (every 30 minutes by default) and last as long as the service, ending within the same
opening period; the free time around each appointment is the location's, for every service. A booking needs a service
once there are services, holds its whole length, and keeps the service's name and price as they were when it was
booked: a later change of price leaves it alone. A moved appointment keeps its length, and a waiting visitor waits for
their service's length. Changes on the Services tab are audited as appointments.manage. Without services the
module books as before: one length, and no question.
Booking input: name 1–120 characters; a valid email up to 254; phone up to 40; note up to 1000. Anything else is refused.
Spam measures (see Protection):
- A hidden field only bots fill in, or a form sent less than 3 seconds after the page loaded, gets a normal success answer but nothing is stored and no email goes out.
- Limits per visitor's address: looking up free times 120 times per 10 minutes, booking 5 times per 10 minutes. A booking of a time someone just took is refused.
- Only a real free slot can be taken: the module refuses times off the grid, closed, too soon, too far ahead or full (Opening hours).
Booking and confirming (so nobody can fill the calendar, or send booking emails with words of their choosing, to addresses that aren't theirs):
- A booking from the site is stored as waiting for confirmation, with an audit entry
appointments.book("Received an appointment booking, waiting for its confirmation", no visitor details). It holds no time: the time must be free when booking, but others can still book it. The business gets no email and doesn't see it anywhere in the admin or on the host page; it gets no reminder. - The visitor gets "Confirm your appointment at {site}" with the date and time and a link. The email holds nothing the
visitor typed (no name, no note). The link opens a page with the appointment and a Confirm appointment button
(opening the link alone confirms nothing, so a mail scanner can't); the button takes the time, if it is still free,
and confirms the booking (audit entry
appointments.confirm). Then the confirmation and the business's notification below go out. - Is the time taken meanwhile, or has it started, the page says the time is no longer free and to book again. The link works for an hour; after that the page says it has run out, and the waiting booking is deleted at the retention job's next run (hourly). A link that doesn't work (wrong or changed) says so, with status 404.
Opening hours and booking rules: the business's opening hours are closed until they are saved: until then visitors see no free times. A location has its own hours once it is given them, and follows the business's until then. The booking rules (length, appointments at once, free time around each, notice, days ahead) are the location's own too, once it is given its own hours. Changing the hours leaves existing appointments in place.
The waitlist: a visitor can wait for a full time (POST /api/v1/account/appointments/waitlist, the booking fields).
It is refused when the time is free. When a booked time is cancelled, the first in line is emailed a link to book it
and the time is held for them for Offer a freed time for (minutes), 30 by default. The link opens a page that asks
before anything happens, like the others; pressing the button books the appointment, with its confirmation and
reminder. If the offer runs out, the time is offered to the next in line. Waiting visitors are in no list or count
yet: the admin has no waitlist screen and the site no button for it (later).
Emails (plain text, through the email service):
| When | To | Language | Reply-to |
|---|---|---|---|
| Booked on the site | the visitor: "Confirm your appointment at {site}" with the date and time and the confirm link, nothing the visitor typed | the language they booked in, else the site's default; Dutch for any kind of Dutch, English otherwise | the first recipient, if any |
| Confirmed | the visitor: "Your appointment at {site}" with the date and time and the cancel link | the language they booked in, else the site's default; Dutch for any kind of Dutch, English otherwise | the first recipient, if any |
| Confirmed | the recipients: "New appointment: {name}, {when}" with email, phone and note | each recipient's own admin language (an account with that address), else the site's default | the visitor |
| Canceled (by the business or the visitor) | the visitor: "Your appointment at {site} is canceled" | as above | the first recipient, if any |
| Canceled by the visitor | the recipients: "{name} canceled their appointment of {when}. The time is free again." | each recipient's own admin language | the visitor |
| Reminder (hours before) before it starts | the visitor: "Reminder: your appointment at {site}" with the date and time, the location (with locations) and the cancel link | the language they booked in, else the site's default | the first recipient, if any |
Reminders: planned when the visitor confirms and sent by SHADE when it is time, through the notification method the visitor chose (email so far; email too when a chosen one can't take it). Cancelling the appointment (by the visitor, the business or host) calls its reminder off. An appointment confirmed later than its reminder would go (with the default, less than a day ahead) gets none, and so does every booking while the setting is 0. A changed setting moves the reminders still to come (at 0 they are called off, and switching it on again brings none back; one whose new time has passed goes at once; one already sent is never sent again). Removing a location rewrites the reminders still to come of its appointments without it. A reminder is part of the booking, like the confirmation: there is nothing to turn off apart from cancelling.
With a service, every email names it (with its price, when it has one) under the date and time, and the calendar file is called after it ("Grote beurt bij Voorbeeld").
Date and time are written in the site's time zone ("maandag 19 oktober 2026, 09:00–09:30" / "Monday, 19 October 2026, 09:00–09:30"). An email failure is logged (the appointment and the kind of error, never the address) and never shown to the visitor; the booking stands. The business gets no email when it cancels.
Recipients: split on commas, semicolons, spaces and new lines (the help text says so); invalid addresses are skipped.
Cancelling by the visitor: the confirmation email holds a link, "Can't make it? Cancel your appointment here:".
The link works only for that appointment and can't be guessed. It opens a plain page in the language they booked in
that shows the appointment and a Cancel appointment button; pressing it cancels the appointment and frees the
time (audited as appointments.cancel-own, "A visitor canceled their appointment", without the name), emails the
visitor and the business, and says so. A wrong link says "This link does not work…", in the site's default language
(a wrong link names no appointment); a canceled or started
appointment says it can't be canceled. Limits per visitor's address: 30 views and 10 cancels per 10 minutes.
A visitor's own appointments, signed in on the site: they work once accounts are on and an admin switched the
module's account capability on, like the host screens. They match the account's confirmed email address (any case), so
a visitor sees what they booked as a guest too, and nobody else's: another's appointment is not found. Bookings not
yet confirmed are left out. Cancelling works as with the link (the same emails, audited as appointments.cancel-own,
with the visitor's account); a started or canceled appointment can't be canceled. Limit: 10 cancels per 10 minutes per
account.
Locations: a name of 1–120 characters. Removing one leaves its appointments without a location; the host and
manager roles given for it give nothing any more (they are shown in the account's Roles dialog and can be taken away).
Adding and removing are audited as appointments.manage.
Hosts and booking booking managers, signed in on the site. They are an optional capability of the module:
guests book without an account, so appointments works with accounts off; the host screens work only once
accounts are on and an admin switched the capability on (its card on the Modules page). host per location gives
bookings.read and bookings.manage; booking-manager per location includes host, adds host.assign and can give
host. A host sees only their own locations: an appointment of another location is not found, as an unknown
one. A host's cancel is audited as appointments.host-cancel ("A host canceled an appointment",
with the host's account), a manager's change of the host group as SHADE's accounts.roles. Giving the manager
group raises a security alert. Limits: 60 requests a minute per account; cancelling 30, changing host 20 a minute. Each
location has its own places: a time booked at one stays free at another.
Rescheduling is cancelling (with the link, or by the business) and booking another time.
Cancelling in the admin frees the time and audits appointments.manage ("Canceled an appointment", without the
visitor's name), then emails the visitor. Cancelling an already canceled appointment changes nothing and sends no
email. Past appointments can be cancelled too (through the API).
The list shows appointments from the start of today (in the site's time zone), earliest first, at most 500; confirmed only, unless Show canceled appointments is on.
Personal data: each appointment keeps name, email, phone, note, the booking language and a scrambled code of the visitor's internet address, never the address itself. A person's data export holds all of it: the appointment's times, location, service and price, details, language, status, consent, when it was booked and canceled, and that code. Appointments are deleted automatically a year after they ended (admins can change it; see Data retention), canceled ones included. The consent checkbox's text is kept with the appointment when ticked, with the time, and shown under it in the admin. With Require consent on, that is always one of the business's own Consent texts (security review S9); without it, nothing is checked and a ticked text is kept as sent.
For developers
The code and its tests: the README of shade-plugin-appointments.
Limitations
- The waitlist has no admin screen and no site button yet.
- A manager can't see a list of their host on the site: SHADE's SDK offers no way to list a group's members yet.