Clinic Booking App Template

A free, open-source appointment booking app for physiotherapy, osteopathy and sports massage clinics, built with Next.js, TypeScript and PostgreSQL. Patients book online with an intake form and consent, practitioners and rooms are never double-booked, and staff work from a day, rooms or week diary with patient notes, a waitlist, reminders, late-cancellation fees and reports.

by Light CloudBooking and scheduling

Build a clinic booking app with Next.js and PostgreSQL

Staff day calendar with a column per practitioner, appointments coloured by physiotherapy, osteopathy and sports massage with their room, time off and shaded hours outside each practitioner's day
Staff day calendar with a column per practitioner, appointments coloured by physiotherapy, osteopathy and sports massage with their room, time off and shaded hours outside each practitioner's day, on a phone

Features

  • Online booking from a two-week date strip, with an intake form for new patients and cancellation and data consent
  • No double bookings: every appointment checks the practitioner and a suitable room under a per-day database lock
  • A diary by day, by room or by week, with time off, extra sessions and each practitioner's hours
  • Patient pages with booked and past appointments, statuses, fees and short treatment notes
  • A waitlist, and a Today screen for practitioners with reminders to send and notes to write
  • Reminders by email with Resend, or a list of tomorrow's patients for reception to call or text
  • Late-cancellation and no-show fees from your settings, and Stripe deposits for appointment types that need them
  • Reports on utilisation per practitioner, no-shows, late cancellations and revenue, with WCAG 2.2 AA in light and dark

Tech stack

What you need

  • A paid plan: deploying creates a PostgreSQL database, which the Free plan does not include
  • To run it locally: Node.js 22.12 or newer, npm, and Docker for a local PostgreSQL
  • No API keys: reception gets a reminders list, and nobody is asked to pay a deposit
  • Optional: RESEND_API_KEY and EMAIL_FROM to email appointment reminders and confirmations
  • Optional: STRIPE_SECRET_KEY and STRIPE_WEBHOOK_SECRET to take deposits through Stripe Checkout

About

Everything a clinic owner changes is in the app under Staff: clinic details and booking rules, practitioners, rooms, appointment types, hours and time off, with the demo Nottingham Physio Clinic removed in one click. Intake answers and treatment notes are health data, shown to practitioners but not to reception; the clinic that runs the app is the data controller and responsible for UK GDPR, and the privacy page is a starting point, not legal advice. The Stripe paths are type-checked only, and there is no cron, so reminders are sent after page requests at most every 10 minutes and a quiet clinic can miss one. Revenue in reports is the list price of appointments rather than payments received, rate limits are per instance, and the demo patients are made up.

FAQ

How does a clinic booking system stop double bookings and room clashes?

Every appointment, online or by staff, goes through one function that takes a PostgreSQL advisory lock for that day, re-reads the diary and checks that both the practitioner and a suitable room are still free before it writes. A second patient confirming the same time is asked to pick another.

Can patients fill in an intake form and consent online when booking physiotherapy?

Yes. New-patient appointments ask what the problem is, how long they have had it and about medical conditions, and every booking ticks the cancellation policy and agrees to the clinic keeping the answers. Practitioners see the answers on the appointment; reception does not.

Does it send appointment reminders without an email service?

With RESEND_API_KEY set, patients get an email the day before. Without it, the staff Reminders screen lists tomorrow's patients with their phone numbers so reception can call or text them and tick each one off.

Can I charge a deposit or a late cancellation fee for physio appointments?

Set STRIPE_SECRET_KEY and appointment types with a deposit take it through Stripe Checkout, refunded on free cancellations. Late cancellations and no-shows record a fee from the percentages in Settings, which staff take at the next visit or waive.

Is this physiotherapy booking app UK GDPR compliant?

It is built to keep health data to a minimum and limit who sees it, but compliance depends on how a clinic runs it: the clinic is the data controller and is responsible for its privacy notice, retention, access requests and agreements with its host. The demo patients and notes are made up.

Price
Free
Framework
Next.js · JavaScript
Updated

Variables

  • AUTH_SECRETGenerated

Related templates

All booking app templates