The Appointed booking kit
Booking, built into
the site you already have.
A booking engine, its interface and an admin for the business - ready to drop into a Next.js app, embed on any website, or drive from your own UI through an API. The Hale Studio site is a working example.
- 01Drop inNext.js appsCopy one folder, import one stylesheet, place a component.How
- 02EmbedAny websiteOne script tag on WordPress, Webflow, Squarespace or plain HTML.How
- 03APIYour own UIAvailability and bookings over JSON, from the same engine.How
- 04Hosted pageA linkShare a booking page in a bio, a QR code or an email.How
01 · Drop in - Next.js
One folder. One stylesheet.
Everything lives in src/booking: the engine, the components, the configuration and the theme. Copy it into any Next.js App Router project with Tailwind CSS v4.
BookingFlow
The complete flow: treatment, professional, day, time, details, deposit, confirmation.
BookingWidget
The compact reservation card from the demo hero.
TreatmentMenu
A spa-card menu showing each service's next two open times.
ReceptionistChat
The floating AI receptionist that books real slots.
PortalView
The client portal: next visit, reschedule, cancel, history.
SlotGrid · DateStrip · ServicePicker · StaffPicker
The building blocks, for your own layouts.
getSlots · isFree (from @/booking/server)
The availability engine, framework-free, for servers and tests.
@import "tailwindcss";
@import "../booking/theme.css";import { BookingsProvider } from "@/booking";
import { Cormorant_Garamond, Jost } from "next/font/google";
const display = Cormorant_Garamond({
subsets: ["latin"], weight: ["300", "400", "500"], variable: "--font-cormorant",
});
const sans = Jost({ subsets: ["latin"], variable: "--font-jost" });
export default function RootLayout({ children }) {
return (
<html lang="en" className={`${display.variable} ${sans.variable}`}>
<body>
<BookingsProvider>{children}</BookingsProvider>
</body>
</html>
);
}import { BookingFlow, TreatmentMenu } from "@/booking";
import { Suspense } from "react";
export default function Page() {
return (
<>
<h1>Treatments</h1>
<TreatmentMenu />
<Suspense>
<BookingFlow variant="embed" headingLevel="h2" />
</Suspense>
</>
);
}export const business = {
slug: "your-studio",
name: "Your Studio",
address: "1 High Street",
city: "Your City",
cancellationHours: 24,
...
};
export const staff = [ /* names, roles, weekly hours, breaks */ ];
export const services = [ /* durations, buffers, prices, deposit %, who performs */ ];02 · Embed - any website
One script tag.
For WordPress, Webflow, Squarespace, Shopify or hand-written HTML. The widget runs in its own frame, sizes itself to its content and reports confirmed bookings back to the page.
<script src="https://book.your-studio.com/embed.js" defer></script>
<!-- the full booking flow, inline -->
<div data-appointed="hale-studio"></div>
<!-- or a button that opens it in a popup -->
<div data-appointed="hale-studio" data-mode="button"
data-label="Reserve"></div>document.addEventListener("appointed:booked", (event) => {
// event.detail = { reference, serviceId, staffId, ... }
analytics.track("Booking confirmed", event.detail);
});| Attribute | Does | Example |
|---|---|---|
| data-appointed | Business slug. Required. | hale-studio |
| data-mode | inline (default) or button - a button that opens a popup. | button |
| data-label | Button text in button mode. | Reserve |
| data-service | Open on one treatment. | balayage |
| data-staff | Pre-select a professional. | mara |
| data-theme | dark for the Evening palette. | dark |
| data-accent | 6-digit hex for buttons - choose a dark shade. | 1f5f66 |
| data-assistant | 1 to include the AI receptionist. | 1 |
Live - the real embed.js
Your website
Any page, any platform.
The two elements below are plain HTML. The script turns the first into a “Reserve” button that opens a popup, and the second into the full inline booking flow.
03 · API - your own interface
The same engine, over JSON.
Build a native app, a kiosk or a completely custom page. Availability comes from the engine every other surface uses, so nothing can disagree.
- GET/api/servicesThe business, its menu (with deposits) and its team.
- GET/api/availabilitySlots for ?service= on ?date= (yyyy-mm-dd), optional &staff=.
- POST/api/bookingsValidates, re-checks the slot, returns 201 - or 409 if it has gone.
curl -X POST https://book.your-studio.com/api/bookings \
-H "Content-Type: application/json" \
-d '{
"service": "balayage",
"staff": "any",
"date": "2027-03-12",
"time": "10:00",
"name": "Ava Lindqvist",
"email": "ava@example.com"
}'
# 201 { "booking": { "reference": "HALE-...", "staff": "mara", ... } }
# 409 { "error": "That time is no longer available." }Live - try the availability endpoint
GET /api/availability?service=balayage&date=yyyy-mm-dd&staff=any
Send a request to see the live response.
04 · Hosted page - a link
Or simply share a link.
Every business gets its own booking page with a cover photograph, the full menu, the team, reviews and the AI receptionist - for Instagram bios, Google profiles, QR codes and emails.
Included · The admin
The business side, done.
Your client runs their day from a calendar with a column per professional, a week view with click-to-book, a client book, service and hours editors, AI front-desk insights and settings.
Today
11 bookings · $1,284 expected · 2 gaps
3 booked by the receptionist overnight
Olivia G.
Balayage
Imani C.
Gloss refresh
Maya B.
Signature cut
Marcus B.
Signature cut
Tomás H.
Cut & blow-dry
Leo C.
Signature cut
Sofia M.
Hydrafacial
Freya H.
Hana S.
Hydrafacial
Ruth A.
Hot stone
Isaac M.
Deep tissue
Going live
Five seams, clearly marked.
The demo runs on seeded data with no keys. Each integration point is a single, commented function.
| Concern | Where | What to do |
|---|---|---|
| Data | src/booking/lib/schedule.ts | Replace seededAppointments with a query against your bookings table. |
| Payments | src/booking/components/DepositForm.tsx | Call your provider's checkout in handleSubmit. |
| Persistence | src/app/api/bookings/route.ts | Insert inside a transaction that re-runs isFree. |
| AI | src/booking/lib/receptionist.ts | Let a model extract the intent; keep findSlots so it only offers real times. |
| Reminders | Settings in the admin | Send the 48h / 24h messages from a scheduled job. |
Questions
Before you integrate
Do I need Next.js?
Only for the drop-in components. The embed works on any website, and the API works with any frontend or language.
Will it clash with my site's styles?
The kit's tokens are namespaced as --appt-*, and the embed runs in its own document, so neither your CSS nor its CSS can leak across.
Can it match my brand?
Yes. Override the --appt-color-* tokens in theme.css for the drop-in, or pass data-theme and data-accent to the embed. Fonts are two next/font imports.
How do double bookings get prevented?
Every surface asks one engine, which checks working hours, breaks, buffers and existing bookings. The bookings API re-checks the slot at submit time and answers 409 if it has been taken.
Is there an admin for the business?
Yes - a day calendar per professional, a week view, a client book, service and hours editors, AI front-desk insights and settings, all included.