Booking & Scheduling

Appointed - Booking Kit for Next.js & Any Website

Quick Start

Requirements: Node.js 20+ and npm. No environment variables or backend are needed to run it - the schedule, receptionist and insights run on seeded data in src/booking.

1

Download and unzip

After purchase, download the zip from your order confirmation email and unzip it.
2

Install dependencies

npm install
3

Start the dev server

npm run dev
Open http://localhost:3000. Routes:
  • / - the demo client website (Hale Studio), built with the kit
  • /integrate - developer guide with a live embed and API playground
  • /book/hale-studio - hosted booking page (add ?chat=1 to open the receptionist), /embed/hale-studio - the bare widget
  • /portal - client portal, /dashboard - the owner's admin (calendar, clients, services, insights, settings)
4

Test and build

npm test           # 56 unit tests
npm run build
npm run test:a11y  # WCAG 2.2 AA check
npm start

Folder Structure

Next.js App Router. Everything a buyer reuses lives in one copyable folder, src/booking; the rest is the demo site and the admin.

src/
├── booking/                      THE KIT - copy this folder into your app
│   ├── config.ts                 Business, timezone, staff hours, services, reviews
│   ├── theme.css                 --appt-* tokens, Day / Evening palettes
│   ├── index.ts                  Public API: components, hooks, engine
│   ├── server.ts                 Server-safe engine for API routes and jobs
│   ├── api/                      services, availability, bookings handlers (+ CORS)
│   ├── components/               BookingFlow, BookingWidget, TreatmentMenu, ReceptionistChat, ...
│   ├── lib/                      availability engine, receptionist, schedule, timezones
│   └── __tests__/                56 Vitest unit tests
├── app/
│   ├── (site)/                   Demo site, /integrate, hosted page, portal, admin, login
│   ├── (embed)/embed/[business]  The bare widget for iframes (own root layout)
│   └── api/                      One-line re-exports of the kit's handlers
└── components/                   Demo site and admin UI
public/
└── embed.js                      One-line embed for any website

Customization

Your business

Edit src/booking/config.ts: name, address, timeZone, staff with weekly hours and breaks, and services with durations, buffers, prices and deposit percentages. Every surface - components, embed, API and receptionist - reads it.

Put booking on your site

In a Next.js app, copy src/booking, import booking/theme.css after Tailwind, wrap the layout in BookingsProvider and place BookingFlow. On any other website, add embed.js and a data-appointed element (inline, or data-mode="button" for a popup). The full guide with live examples is the /integrate page.

Re-skin

Override the --appt-color-* tokens in src/booking/theme.css; --appt-color-primary is the button fill and --appt-color-primary-text the accent used as text. The embed also takes data-theme and data-accent.

The AI receptionist

src/booking/lib/receptionist.ts is rule-based today - no model, no API key. To use a model, have it extract the service, staff, days and time window, and keep findSlots so it can only offer real availability.

Deployment

Every variable in .env.example is optional - the demo runs fully seeded.

1

Deploy the demo

Import the repo on Vercel and deploy. No database or API keys are required.
2

Connect your services when you go live

Replace seededAppointments in src/booking/lib/schedule.ts with your bookings table and make POST in src/booking/api/bookings.ts insert inside a transaction that re-runs isFree. Wire your payment provider in src/booking/components/DepositForm.tsx, protect /dashboard with your auth, and set APPOINTED_ALLOWED_ORIGINS to restrict which sites may call the API.

Still stuck?

Email us at support@thekitbase.app with your order number and we'll help you get set up.