Skip to content
Paul Saunders

Client build · Fern & Soul

Live since 27 Nov 2026

A booking system and staff app, built for a Perth massage studio

Fern & Soul, a remedial massage studio in Innaloo, Perth, now takes its online bookings through its own system on its own website instead of through the previous salon booking platform. I built it as one app on the studio’s existing site: online booking with no account wall, a live diary that refuses double bookings at the database, Stripe deposits and refunds, two-way SMS and email, and a staff app that installs on a phone.

By Paul Saunders ·

45 seconds, with music. Drawn in code: every name, booking and message in it is invented.

days from approved spec to live
8days from approved spec to live
commits on the booking code by go-live
344commits on the booking code by go-live
database migrations, each proven from empty
25database migrations, each proven from empty
automated tests passing on 30 November
1,382automated tests passing on 30 November

Spec approved 19 November 2026, live 27 November 2026. It was built onto the studio’s existing Next.js website, gift voucher checkout and counter health form, not from an empty folder.

01 · Before

What the studio had before its own booking system

The studio’s previous salon booking platform was charging approximately A$300 a month, some months more, some less. That was a monthly plan fee, about A$30 a month for each extra staff member, and 20% commission on every new client it introduced, for example A$30 on a A$150 lymphatic massage.

Clients also had to create an account on that platform before they could book.

What the studio did have was its own website. The site was already a Next.js app with a Stripe gift voucher checkout and an iPad health form at the counter. An earlier booking engine, paused in June 2026, was kept as reference only. The spec’s call was to build fresh.

02 · The brief

The brief for the booking system and staff app

  • Clients book on the studio’s own website, with no account, no password and no sign-up.
  • A live diary for each therapist that can never sell one time twice.
  • Optional prepayment: nothing, a 50% deposit or the full amount, with refunds and credit that follow the cancellation policy on their own.
  • Confirmations, reminders and two-way texts from a dedicated number.
  • A staff app on staff phones, with alerts, rosters, blocked time, clients, invoices and a waitlist.
  • Health forms in the same database, encrypted, behind a switch.
  • Keep the previous platform on its cheapest plan as a backup and for its marketplace bookings, and read those bookings into the new diary automatically.

03 · The spec

A written spec and three approval gates

Discovery came first: a map of the studio’s current system, a map of how the previous platform worked, and research. The spec then set out the booking flow, the staff app, payments, messages, privacy, the running costs and the switch-over plan, with every decision numbered so it could be cited later.

Each gate was signed off before the next stage began.

  1. Gate 1 · 19 November

    Spec approved

    The written spec, signed off before any code.

  2. Gate 2 · 20 November

    Designs approved

    The client booking screens and the staff app, built as real screens in the app and signed off before the live flow.

  3. Gate 3 · 27 November

    Go-live approved

    Phase 1 signed off after the end-to-end test pass, the code review and the start of the test week on staff phones.

04 · The stack

The booking system’s stack, piece by piece

Each piece was chosen for a reason the studio would feel: staff on phones, data in Sydney, and nothing that costs more per staff member.

01 · Next.js 16, React, TypeScript, Tailwind CSS

One Next.js app

The public site, the booking flow and the staff app are one app. The treatment menu, prices and brand are shared, so the website and the booking flow cannot drift apart. Tailwind carries the colour and type tokens from the studio’s brand guidelines.

02 · Own code: one-time codes, signed sessions

Sign-in and roles

Staff sign in with a six digit code sent by email or text, chosen so a therapist can sign in on a phone in seconds with no password and no authenticator app. The code is stored as a keyed hash, works for 10 minutes and allows 5 tries. Three roles are checked on the server for every action.

03 · Stripe Checkout, restricted live key

Payments

Stripe Checkout takes card payments with GST inclusive prices and no saved cards. The live key is a restricted key, which limits what a leaked key could do.

04 · Resend email, Mobile Message SMS, Web Push

Messages and alerts

Resend sends confirmations, receipts, invoices, staff alerts and sign-in codes from the studio’s bookings address, on its own sending-only key. Mobile Message gives a dedicated two-way Australian number, with signed webhooks for replies and delivery reports. Web Push puts alerts on staff lock screens and a badge on the Home Screen icon, with no app store.

05 · Vercel Cron, every 15 minutes and nightly

Scheduled jobs

The booking job runs every 15 minutes for reminders, rebook nudges, expiring holds, refund retries and message retries. The encrypted backup runs at 2:00am Perth time. A lease on the job makes a double run harmless.

06 · Neon Postgres in Sydney, PGlite for tests

Database

Appointments, clients, rosters and health forms live in a dedicated Postgres database in Sydney, kept on its own because health records are covered by Australian privacy law. The tests run against PGlite, Postgres compiled to WebAssembly, so every test runs real Postgres SQL without a server.

07 · Vercel Blob, sealed with AES-256-GCM

Backups

Every night every table is sealed with AES-256-GCM, stored privately, read back and restored into a throwaway database to prove the copy works. Thirty nights are kept, and the owners get an alert if a night fails. The studio’s data can be restored without the vendor.

08 · Vercel functions in Sydney, Vercel BotID

Hosting and bot protection

The functions run in Sydney, the same region as the database. Vercel BotID and the app’s own rate limits stop scripted fake bookings. The limits key on a hashed connection address that is deleted after 48 hours, so no addresses are stored.

09 · Tag Manager, GA4, Google Ads, Microsoft Clarity

Measurement

One Tag Manager container on the studio’s own site carries GA4 and the Google Ads tags, so the studio decides what is tracked and changes it when it needs to. Microsoft Clarity covers the public site and booking pages and is kept off every staff page.

05 · Features

Every feature of the booking system, from every angle

The mock-ups below are drawn in code in the studio’s own colours. Every name, time and reference in them is invented, and no real client data appears anywhere on this page.

Client booking online, with no account wall

Clients book without creating an account. No sign-up, no password. The steps run treatment, length, therapist (any available or a named diary), date and time, details, payment choice, review and confirmation. A “Book 60 min” button on a treatment page lands with that treatment and length already chosen.

The diary works on a 15 minute grid, bookable up to 12 months ahead, with 10 minutes of turnover after every treatment. “Any available” picks the diary with the most free minutes that day. A chosen time is held for 10 minutes, the date picker refreshes availability every 60 seconds while it is open, and the time step offers the next available days.

Clients confirm they are over 18 and accept the cancellation policy. The marketing and review request boxes start unticked. Every message carries a manage link to move or cancel inside the policy, and a move to less than 24 hours away asks the client to accept losing online changes first. A full day offers a waitlist with a preferred time and a short note. The confirmation page adds the booking to Google Calendar, attaches a calendar file and gives directions and parking.

The time step. A chosen time is held for 10 minutes while the client finishes.
A client books a remedial massage on the Fern & Soul booking page, choosing a time and paying in full with no account.
A client books on a phone: treatment, therapist, a time held for 10 minutes, then pay at the studio, 50% or in full. Drawn in code with invented data.

Booking at the counter

Staff book from the diary, including outside published hours and on any day. A walk-in needs no client details. A new client is added with gender and date of birth and booked in one step, or booked from their client page.

A counter payment or a deposit balance is recorded on the booking sheet, and that issues a tax invoice. The counter iPad health form for walk-ins was already in place, and saves into the booking database once health forms are switched on.

A booking made at the counter shows on staff phones within about 15 seconds, with a push alert, and leaves online availability straight away.

A lock screen alert shows a first name, time and diary only.

The staff app on staff phones

The staff app installs from the browser onto a phone’s Home Screen, with its own icon, a badge and push alerts. There is no app store. Set-up screens appear on phones only.

Today shows the day’s bookings, the next booking, each diary’s bookings and recent alerts. The diary has Day, Week and Month views, every diary or one, swipe between days and drag to move a booking. The booking sheet sets the status (Booked, Arrived, Completed, Cancelled or No-show), takes payment, adds extra time, moves, refunds, emails the invoice and cancels with a required “Who cancelled?” choice.

Alerts arrive by push, email and optional SMS for new, changed and cancelled bookings, clashes, waitlist joins and client replies, and each person switches each kind on or off. A lock screen alert never shows a surname, treatment detail or reply text. An open screen checks for changes every 15 seconds, catches up the moment it is shown again and reloads itself onto a new release.

Three roles: an owner sees everything, reception sees everything except team and logins, and a therapist sees their own diary only. A Help mode explains each screen, and “Suggest a change” sends the owners a screenshot with the label that was tapped.

Today: the day’s bookings and recent alerts, with red unread dots. The red heart marks a requested therapist.
A new counter booking appears in the Fern & Soul staff diary on a phone, with a push alert showing first name, time, length and diary.
A counter booking lands in the staff diary and a push alert drops in. Drawn in code with invented data.

Back of house

Rosters
Repeating shifts every 1 to 4 weeks, one-off shifts, days off and studio closures.
Blocked time
Lunch, time off, training or custom blocks, and extra time before or after any booking. Both leave online booking at once.
Clients
A sortable list and a page for each client with visit history, consent, notes, an online booking block and delete.
Texts and campaigns
Two-way client texts in a conversation view, and one text to many opted-in clients.
Invoices
Every invoice issued, each with a PDF.
Waitlist
Who is waiting, with a one tap text offer when a time frees.
Gift vouchers
The existing Stripe voucher sale, plus a field at booking to say a voucher will be used. The code is checked and redeemed at the counter.
Menu and prices
Edited in the app, with an email to the owners listing every change and the website files to update.
Message log
Every text and email with its delivery status, replies to read, and resend.

A live database that refuses double bookings

Bookings can never overlap in one therapist’s diary. The database itself refuses a second booking for the same time: a Postgres exclusion constraint covers each diary’s booked time plus turnover, so two clients pressing confirm in the same second cannot both win.

Every write that checks free time takes a lock on that diary first, so blocks and extra time queue the same way as bookings. The booking history is an append-only audit trail: a trigger refuses any edit or delete. Money is stored in whole cents, GST inclusive, and every time is stored in UTC.

The diary for one day. A second booking that overlaps a live one is refused by the database.
A second booking for 3:15pm is refused because it overlaps an existing booking in the same therapist’s diary.
A second booking dragged onto a booked time is refused by the database and slides back. Drawn in code with invented data.

Payments: deposits, refunds and tax invoices

Clients can pay nothing, a 50% deposit or the full amount when they book, through Stripe Checkout. A deposit is rounded up to the cent. Refunds and credit follow the studio’s cancellation policy automatically: a studio cancel refunds in full, a client cancel 24 hours or more ahead refunds in full, and a cancel inside 24 hours or a no-show keeps the amount as credit for three months.

Every online payment issues a proper tax invoice showing GST. Invoices are numbered from FSB-000001 upwards with no gaps, and a refund issues an adjustment note. A deposit’s balance shows on the confirmation, receipt, invoice and staff diary, and is never charged online.

The payment step. The policy lines change with the choice.
A tax invoice, drawn with invented details and the seller lines left out.
Fern & Soul payment records: a Stripe deposit with the balance due at the studio, a full refund with an adjustment note, and a tax invoice showing GST.
A 50% deposit, a refund marked “Refunded in full”, and a tax invoice with its GST lines. Drawn in code with invented data.

SMS and email that send themselves

The system sends the confirmation by email and SMS, a 24 hour reminder, moved, cancelled and no-show messages, a thank you with a Google review request, a 4 week rebook nudge to opted-in clients, waitlist messages, staff invites, sign-in codes, receipts and adjustment notes.

Each text is shaped to fit one SMS part where it can. Two-way texts: clients can reply, and STOP is honoured automatically. STOP, UNSUBSCRIBE, OPT OUT, END and QUIT turn SMS marketing off, and any other reply raises a staff alert. Marketing email carries one-click unsubscribe headers.

A failed send retries after 2, 10, 30 and 120 minutes under one idempotency key, then alerts the owners. No message, calendar entry or log carries any health detail.

A two-way text thread. A reply raises a staff alert.
A client replies STOP to a Fern & Soul rebook text and the staff app turns their SMS marketing off.
A rebook text, the reply “STOP”, and SMS marketing turned off for that client. Drawn in code with invented data.

Staff sign-in without passwords

Staff sign in with a six digit code by email or text, their choice each time, and stay signed in for 30 days. No passwords. A code works for 10 minutes with 5 tries, and sign-in locks after 10 failures in an hour.

Invites go by email or text and are accepted on the phone within 7 days. The texted code carries the domain line that lets an iPhone offer it above the keyboard, on the studio’s own domain only.

Translations

The staff app works in English and Simplified Chinese. One tap switches, the choice is stored per login, and anything without a translation falls back to English.

Staff sign in with a six digit code by email or text, in English or Chinese.

Privacy and health records

The database and the functions sit in Sydney. Health forms are built into the same database: answers, body map and signature are sealed with AES-256-GCM before they reach it. Only owners, reception and the client’s own therapist can open one, with a fresh sign-in code every 12 hours, and every opening is logged. A code review found a therapist could open a voided form, and it was fixed the same day.

Forms are kept seven years from the client’s last appointment and deleted only when an owner confirms, with a written breach plan behind them. Health forms are built and tested, and at the time of writing the switch is off in production.

Retention runs on its own:

  • Sign-in codes scrubbed after 10 minutes
  • Inbound texts kept 30 days
  • Bot protection records deleted after 48 hours
  • Consent records append-only, with the wording version and the channel

A booking funnel the studio owns, and its tracking

The booking now runs on the studio’s own website, so the studio owns the whole funnel, from the page a visitor lands on to the confirmation page. Every UTM, pixel, tag and conversion in it is the studio’s to set and change. On a third-party booking platform, the booking happens on that platform’s pages, and what can be tracked there is the platform’s decision.

Google Ads conversion tracking

The booking is measured on the studio’s own confirmation page, with the real booking value, as the main Google Ads conversion. It fires once per booking, only on a production deploy, and nothing that identifies the client enters the tracking data. Each booking stores its own click ids and source.

Microsoft Clarity

Clarity session replay shows where visitors stop in the booking flow, with smart events for Booking started and Booking confirmed. It runs on production deploys only and is kept off every staff page, with a mask over the whole staff app as a backstop.

The tracking was tested with a real ad click, which caught a bug that sent ad visitors back to the time step, fixed within three days of go-live.

The ad side of this build has its own write-up: the Google Ads case study for this booking app.

Build dashboard for the Fern & Soul booking system: over 1,300 automated tests, 25 database migrations, 36 preview deploys, and the Google Ads and Clarity set-up.
Over 1,300 automated tests, 25 migrations and 36 preview deploys, then the booking as the main Google Ads conversion and Clarity kept off staff pages. Drawn in code with invented data.

06 · Engineering

The hard parts a simple prompt will not build

A booking page is quick to draw. These are the problems behind its “Book now” button, and how the code solves each one.

  1. 01

    Two clients on two phones pick the same time in the same second.

    A Postgres exclusion constraint on each diary’s booked time makes the second write fail at the database, and a per-diary lock queues every free-time check. Proven with two simultaneous confirms on real Neon Postgres, and again with the lock bypassed.

  2. 02

    Perth has no daylight saving, but Stripe, Vercel and Postgres all run in UTC.

    Every instant is stored in UTC and every Perth conversion goes through the Australia/Perth time zone, never a typed offset. Testing on Neon found an import script whose own connection ran in GMT. It was fixed, with a test that fails on the old code.

  3. 03

    A Stripe Checkout session lasts at least 30 minutes, but a held time lasts 10.

    Starting checkout extends the hold to the session’s close plus 5 minutes, and abandoning checkout expires the session first. A payment that lands after someone else took the time is refunded in full automatically, and the client is emailed.

  4. 04

    Webhooks and the cron can run twice, and a retry must never charge, refund or text twice.

    Payments are unique on Stripe’s reference, each refund uses its payment row as the idempotency key, each message has its own key, and the 15 minute job takes a lease. The return page confirms on arrival, so the client never waits for a webhook.

  5. 05

    Refund rules have edge cases: exactly 24 hours, studio cancels, moves and deposits.

    One pure policy function decides every case. Exactly 24 hours counts as outside the window, a studio cancel always refunds in full, and a move carries the payment across. The test pass found the staff sheet always cancelled as the client, so it now asks who cancelled.

  6. 06

    Three roles with different reach, enforced on the server, not only hidden on screen.

    Every check goes through named role functions. Server actions and routes refuse a therapist even if they type the address of a screen they cannot see, and route tests cover it.

  7. 07

    Running beside the previous platform during the switch without selling a time twice.

    Its booking emails are forwarded by a script in the studio’s mailbox to a signed route that writes them into the diary. The emails give no booking length, so the reader blocks the longest length the treatment is sold in. Bookings from both sides are compared and any overlap raises a clash alert.

  8. 08

    A curly apostrophe in a name turns a cheap text into an expensive one.

    Each template has a long and a short form, and the first that fits one GSM-7 part is sent. Quotes and dashes are swapped for plain characters first.

  9. 09

    A backup nobody has restored is not a backup.

    The nightly job restores its own copy into a throwaway database and alerts the owners when a night fails.

  10. 10

    Session replay tools record whatever text is on the page, client names included.

    Reviewing Clarity itself showed a preview had recorded staff pages for about three days. Since the fix on 24 November, Clarity is refused on every staff page by path, runs on production deploys only, and the staff app is masked as a backstop.

  11. 11

    Webhooks for text replies must not be spoofed.

    Replies and delivery reports are HMAC signed with a five minute window, checked against the provider’s published test vector, and an unsigned call gets a 401.

07 · Testing

How the booking system was tested

test cases written across 143 test files
1,318test cases written across 143 test files
of 277 tests passed on real Postgres in Sydney, race tests included
277of 277 tests passed on real Postgres in Sydney, race tests included
preview deploys before go-live, each smoke checked
36preview deploys before go-live, each smoke checked
screenshots in the end-to-end pass at phone and desktop width
60screenshots in the end-to-end pass at phone and desktop width

Over 1,300 automated tests, an end-to-end test pass at phone and desktop width, and a code review, before and after go-live. The latest full run on 30 November passed 1,382 tests. At the go-live merge it was 1,255 passed and 8 skipped.

  • Every database migration applied to an empty database, then again: the second run changed nothing.
  • The end-to-end pass on 21 November covered every client and staff journey. It found no fault that blocked go-live, eight that should be fixed and 14 cosmetic ones. Each fix landed with a test named for its fault.
  • A correctness code review on 26 November found 10 issues. The five important ones were fixed with tests the same day.
  • Before every deploy: type check, site audits, the full test suite and a production build, all on Node 22, all exit 0.
  • A health form proof run passed 34 of 34, with no planted test value found in the database export.
  • On go-live day: a live card payment with refund, adjustment note and alerts, a pay-at-studio booking whose text arrived one second after sending, and a Tag Assistant test of the conversion.

08 · Timeline

Spec to live in eight days

Eight days from 19 to 27 November, seven of them working days, with commits on the weekend between. 344 commits landed on the booking code by go-live day. The build sat on the studio’s existing site, voucher checkout and counter health form, with a paused earlier engine as reference.

  1. 19 November 2026

    Gate 1: spec approved

    A written spec covering the booking flow, staff app, payments, messages, privacy and the switch-over plan, approved before any code.

  2. 19 November 2026, evening

    First commits

    Design drafts for gate 2 at 10:07pm, the booking engine and database layer 41 minutes later.

  3. 20 November 2026

    Gate 2: designs approved

    The client booking screens and staff app designs signed off. The first preview deploy runs on a real Postgres database in Sydney at 4:35pm.

  4. 21 November 2026

    End-to-end test pass

    Every client and staff journey at desktop and 375 px phone width, 60 screenshots. No fault blocked go-live, eight were marked should fix.

  5. 26 November 2026

    Code review

    A read-only correctness review found 10 issues. The five important ones were fixed with tests the same day. A test week on staff phones starts and runs to 3 December.

  6. 27 November 2026

    Gate 3 and go-live

    Phase 1 approved. First production deploy at about 3:05pm with the switch off, online booking switched over at about 9:45pm.

09 · Running costs

What the booking system costs to run

The new system has no per-staff fee and no paid add-ons. Its running costs are hosting, database, texts and card fees. The spec puts the database and texts at about A$6 to A$25 a month, plus card fees on prepaid bookings only.

Monthly running costs in AUD, as the spec estimates them
LinePer month, AUD
Vercel hostingAlready paid, no extra line for this project
Neon PostgresA$0 on the free tier at this volume, about A$12 if usage grows
SMS, about 130 to 300 messagesAbout A$6 to A$13
EmailThe studio’s existing email sending plan
Stripe1.65% plus A$0.30, on prepaid bookings only
Backups in Vercel BlobUnder 1 cent a month for storage at published rates
Previous platform, kept on its cheapest plan as a backupA$29.95 to A$59.90, plus 20% on new clients from its marketplace

These are the spec’s estimates, not a measured bill. The previous platform stays on its cheapest plan, so its plan fee and its commission on marketplace new clients still apply.

10 · Outcome

What changed for the studio

  • Clients book without creating an account. No sign-up, no password.
  • The studio owns its client list and booking history in its own database, in Sydney, with an encrypted nightly backup it controls.
  • Clients can pay nothing, a 50% deposit or the full amount when they book. Refunds and credit follow the studio’s cancellation policy automatically.
  • Bookings can never overlap in one therapist’s diary. The database itself refuses a second booking for the same time.
  • A booking made at the counter shows on staff phones within about 15 seconds, with a push alert, and leaves online availability straight away.
  • Every online payment issues a proper tax invoice showing GST.
  • Two-way texts: clients can reply, and STOP is honoured automatically.
  • Staff sign in with a six digit code by email or text and stay signed in for 30 days. No passwords. The app works in English and Simplified Chinese.
  • The old platform kept running during the switch. Its bookings flow into the new diary automatically.
  • The studio owns its booking funnel and every tracked event in it, from the tags on its pages to the Google Ads conversion on its own confirmation page.
Paul Saunders, AI solutions architect, at his desk.

Paul Saunders

AI Solutions Architect

Book a call

Let’s see what’s possible for your business

If you’ve got systems, knowledge or processes that could be working harder, let’s talk. No obligation, just a straightforward conversation about where AI could genuinely help.

Prefer email? hello@paulsaunders.ai