A laptop in the dark with a rainbow-colored glow along its keyboard, banner image on the Booking app page

Template - App starter - About 1 hour

Booking app

App starter: availability defined as data: hours, blackouts, slot length, buffers

What ships inside

1

Availability defined as data: hours, blackouts, slot length, buffers

2

Atomic slot reservation that survives double-booking races

3

Timezone-correct display for booker and owner

4

Confirmation and reminder emails with reschedule links

Install

Step 1

Set your real availability rules, including the buffer you always forget manually.

Step 2

Run the two-window race test against the same slot before any real booking.

Step 3

Connect your calendar so personal events block slots automatically.

A worked example

A physiotherapist offers 45-minute sessions, Tuesday to Friday, 9:00 to 17:00, with a 15-minute buffer. Sample rules and a race test (example).

Rule or testValueExpected outcome
Slot length + buffer45 min + 15 minSlots start at 9:00, 10:00, 11:00 and so on
BlackoutFriday afternoonsNo slots after 12:00 on Fridays
Two browser windows pick Tue 10:00Submit both within a secondOne confirms, the other sees 'slot taken'
Booker in Lisbon, owner in HonoluluSame slotEach sees their own local time, same instant

The numbers shown are examples. Swap in your own.

Done looks like

  • The race test never produces two confirmations
  • Confirmation email has a working reschedule link
  • A personal calendar event removes the slot

Mistakes to avoid

  • Skipping the buffer and booking back-to-back all day
  • Testing timezones only in your own timezone
  • Going live before running the race test

What it connects

Google Calendar · Stripe

Each connector page describes what it does.

Get this template

Download the starter (zip) - a real, dependency-free Node app (v0.2.0): boots with npm start, passes npm test (boot, health check, sign-in, per-account data separation, CSRF, session expiry, login throttle and, for the billing starter, signed-webhook checks). External services run in clearly labeled mock mode until you add keys from the annotated .env.example.

Security upgrade notice. Earlier downloads of this starter had an open data API, shared data between accounts and a default or printed login. Check your ZIP's SHA-256 (first 16 characters): v0.1.0 (first release) e41c79a2575188c2; v0.1.1 (interim fix, Nov 28 00:19-00:3x HST) b9aacf8a9264cdd8. If yours matches, replace it with this version and follow SECURITY-UPGRADE.md inside the new ZIP; your data is not touched by this site.

Related playbook: Build a booking system from scratch

All templates

Questions about this template

How long does Booking app take to set up?

Plan for about 1 hour for the first run. The install steps above are in order, and the worked example shows what a finished setup looks like with example data.

How does it work?

The starter is built to be followed step by step. Every step is readable on this page and in the linked playbook, and the Google Calendar, Stripe connector pages cover the services involved.

What should I do first?

Set your real availability rules, including the buffer you always forget manually.

Other templates that use the same services: SaaS starter · Approval chain · Inventory manager

The playbook behind this template

This template follows Build a booking system from scratch. The same steps, with the free tool that does each one.

Step 1 of 5

Model availability as data, not as a calendar screenshot: open hours, blackout dates, slot length, buffer time.

Step 2 of 5

The one hard rule: slot reservation must be atomic. Test double-booking with two browser windows racing the same slot before anything else.

Step 3 of 5

Handle timezones explicitly with timezone-scheduler patterns - store everything in UTC, display in the booker's zone.

Use Timezone Scheduler. Find a meeting time that works for everyone, with each person's working hours and the clock changes on that date.

Step 4 of 5

Send confirmation and reminder emails from templates, and include a working reschedule link.

Step 5 of 5

Connect a deposit or card hold only after the booking flow itself is solid; payments magnify bugs.

Free tools you can use with it

These run in your browser with no account.

CRUD App Scaffolder

Name the thing you are building - entity, fields, types - and get the three files every CRUD app starts with: the SQL schema, the REST route handlers, and a working list-plus-form page, all consistent with each other.

  • One definition, three files. Schema, routes and UI generate from the same field list, so they cannot drift.
  • Typed fields. Text, number, boolean, date and enum map to the right SQL types and input controls.
  • Scope. Generates a starting point, not a production app - auth and validation are marked where you add them.
  • Copy per file. Each artifact copies separately into your project.

Real output from the tool

YOU ENTER:
Entity name (built-in example)
Subscriber
Fields (built-in example)
email: text
name: text
plan: enum:free,pro,team
mrr: number
active: boolean
joined: date
Tab
SQL schema

THE TOOL RETURNS:
-- TODO: add foreign keys where relationships exist
CREATE TABLE IF NOT EXISTS subscribers (
id SERIAL PRIMARY KEY,
email TEXT NOT NULL DEFAULT '',
name TEXT NOT NULL DEFAULT '',
plan TEXT CHECK (plan IN ('free', 'pro', 'team')),
mrr NUMERIC,
active BOOLEAN NOT NULL DEFAULT FALSE,
joined DATE,
created_at TIMESTAMPTZ NOT NULL DEFAULT now()
);

Timezone Scheduler

Add the places your people are, set their working hours, pick a date and a length. The scheduler shows which start times keep everyone inside their hours for the whole meeting, ranks the least bad options when none do, warns you about daylight-saving changes close to the date, and gives you the result as text or a calendar file. It runs in your browser. Nothing is uploaded or saved.

    Email Template Builder

    Pick the email type, fill in the specifics, and get a complete template with subject line, preview text, body, and CTA - written to be read on a phone and answered.

    • Four proven types. Cold outreach, follow-up, announcement, and newsletter - each with its own structure.
    • Subject + preview text. The two lines that decide the open rate, generated with the body.
    • CTA discipline. One clear ask per email. The builder enforces it.
    • Copy-ready. Plain text that pastes cleanly into any email tool.

    Real output from the tool

    YOU ENTER:
    Type
    outreach
    Your name / company
    Sam, Acme
    Recipient (name or role)
    Jordan
    The point (one sentence)
    we cut onboarding time in half for support teams
    The ask (the one thing you want)
    a 15-minute call next week
    
    THE TOOL RETURNS:
    Subject: Quick question, Jordan
    Preview: we cut onboarding time in half for support teams
    Hi Jordan,
    we cut onboarding time in half for support teams.
    I thought this was relevant to you specifically. Worth a 15-minute call next week?
    Either way, no follow-up spiral - one reply settles it.
    Sam, Acme

    Services this template touches

    Each connector page shows whether it is available yet.

    Google Calendar

    Uses:

    • Meeting ends trigger notes formatting and a follow-up draft.
    • Focus blocks defend themselves by declining conflicting invites politely.
    • Weekly time-in-meetings compiles by category.

    Until it ships, set this part up by hand in Google Calendar.

    Stripe

    Uses:

    • Failed payments start a dunning playbook with a recovery email draft.
    • New subscriptions trigger the onboarding sequence.
    • Weekly revenue and churn metrics compile from balance events.

    Until it ships, set this part up by hand in Stripe.

    More questions

    CRUD App Scaffolder: Which stack?

    SQL schema (Postgres-flavored), fetch-based route handlers, and a framework-free page - portable into whatever you use.

    CRUD App Scaffolder: Relations?

    Not yet - keep fields scalar and add foreign keys where the SQL comments mark them.

    Email Template Builder: Cold outreach included?

    Yes - structured for relevance-first, short, one ask. The rest is your research.

    Email Template Builder: Sequences?

    Generate the outreach, then the follow-up type for touch two and three.

    A wooden desk with glasses, a coffee cup, a plant and the edge of a laptop, banner image on the Booking app page

    Start from working, not from blank.

    Each template lists what ships inside and the install steps.