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.

  1. 01Drop inNext.js appsCopy one folder, import one stylesheet, place a component.How
  2. 02EmbedAny websiteOne script tag on WordPress, Webflow, Squarespace or plain HTML.How
  3. 03APIYour own UIAvailability and bookings over JSON, from the same engine.How
  4. 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.

1 · Theme - app/globals.css
@import "tailwindcss";
@import "../booking/theme.css";
2 · Provider and fonts - app/layout.tsx
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>
  );
}
3 · Place it - any page
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>
    </>
  );
}
4 · Your business - src/booking/config.ts
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.

Paste into your site
<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>
Listen for bookings
document.addEventListener("appointed:booked", (event) => {
  // event.detail = { reference, serviceId, staffId, ... }
  analytics.track("Booking confirmed", event.detail);
});
Embed attributes
AttributeDoesExample
data-appointedBusiness slug. Required.hale-studio
data-modeinline (default) or button - a button that opens a popup.button
data-labelButton text in button mode.Reserve
data-serviceOpen on one treatment.balayage
data-staffPre-select a professional.mara
data-themedark for the Evening palette.dark
data-accent6-digit hex for buttons - choose a dark shade.1f5f66
data-assistant1 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.
Create a booking
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

Mara
Theo
Priya
June
9am
10am
11am
12pm
1pm
2pm

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

Gap · offering to waitlist

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.

Production integration points
ConcernWhereWhat to do
Datasrc/booking/lib/schedule.tsReplace seededAppointments with a query against your bookings table.
Paymentssrc/booking/components/DepositForm.tsxCall your provider's checkout in handleSubmit.
Persistencesrc/app/api/bookings/route.tsInsert inside a transaction that re-runs isFree.
AIsrc/booking/lib/receptionist.tsLet a model extract the intent; keep findSlots so it only offers real times.
RemindersSettings in the adminSend 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.