Kiln
Tidewell Pottery · back officeConcept project
Start=KILN("Tidewell Pottery") → bookings, waitlists, invoices, kiln loading and monthly numbersHover or tap anything on the sheet
CONCEPT PROJECTA pottery studio's back office in Google Sheets and Apps Script

Your whole studio, run from one spreadsheet.

Bookings, waitlists, invoices, kiln loading and monthly numbers. Automated inside the Google Sheet you already use. Nothing to host, nothing to log into.

The sheet below isn't a screenshot. It replays real output from the TypeScript code that runs inside Apps Script.

AguestBclassCseatsDstatusEinvoiceFtotalGemailHpdf
2Mira OkaforWheel throwing · Tue 15 Dec2CONFIRMEDINV-2026-0158£96.00SENTSAVED
3Joon ParkWheel throwing · Tue 15 Dec1CONFIRMEDINV-2026-0159£48.00SENTSAVED
4Anselm WeissWheel throwing · Tue 15 Dec4CONFIRMEDINV-2026-0160£192.00SENTSAVED
5Priya RamanWheel throwing · Tue 15 Dec5WAITLISTno invoicen/aSENTn/a
A · guestPriya Raman
B · classWheel throwing · Tue 15 Dec
C · seats5
D · statusWAITLIST
E · invoiceno invoice
F · totaln/a
G · emailSENT
H · pdfn/a
row5 of 5
Sheet 2 · Bookings

A booking arrives. Watch the sheet do the rest.

Fill in the form like a customer would. Every step on the right is the real output of the booking engine: the same code that runs inside Apps Script.

Book a class

Tidewell Pottery · Google Form (what your customers see)

Seats
2 seats left.
£96.00 incl. tax

What the script did

Press “Book” to send a form response. The steps appear here, one at a time, and the formula bar above shows the formula behind each one.

Bookings · Wheel throwing: mugs · Wed 9 Dec

2 rows · 0 waitlisted
Abooking_idCemailDseatsEnameHstatusLinvoice_no 
2BK-FA11BAD3ines.bello@example.com2Ines BelloCONFIRMEDINV-2026-0151
3BK-B5AA0B15tomas.sato@example.com2Tomás SatoCONFIRMEDINV-2026-0150
nameInes Bello
seats2
statusCONFIRMED
invoiceINV-2026-0151
nameTomás Sato
seats2
statusCONFIRMED
invoiceINV-2026-0150
Sheet 3 · Waitlist

Full classes fill themselves again.

When someone cancels, the next person in line gets the seat, an invoice and a calendar invite. Nobody has to remember to check the list.

Wheel throwing: mugs

Wed 9 Dec · 18:30 · 6 seats

2 LEFT

Nobody waiting.

Handbuilding: tiles

Sat 12 Dec · 10:30 · 8 seats

FULL · 2 WAITING
  1. #1Luca Lund2 seats
  2. #2Noor Reid1 seat

Wheel throwing: first bowl

Tue 15 Dec · 18:30 · 6 seats

3 LEFT

Nobody waiting.

The rules, as the sheet applies them

  1. Whoever filled in the form first gets offered a seat first.
  2. A party is never split. A group of three waits for three seats.
  3. If the first in line is too big for the free seats, they keep their place and the next party that fits gets the seats.
  4. New bookings can't jump the queue.

What the script did

Cancel a booking on the left. The seats go back on sale and the script offers them to the waitlist.
Sheet 4 · Invoices

Numbered, taxed and filed before you look up.

Every confirmed booking gets the next invoice number and a PDF saved to Drive. Tax is a setting, not a rewrite: change two cells and the same code bills a UK studio, a US one or a German one.

Studio's tax setup

UK: VAT 20%, prices include tax. Switching resets the demo studio and its bookings.

next number
INV-2026-0158
currency
GBP
tax
VAT 20%, inclusive

Try the tax maths

Net£40.00
Tax£8.00
Gross£48.00

Money is whole pence or cents end to end, so net plus tax always equals gross to the penny.

INV-2026-0157 · built from your latest booking

Becomes a PDF in Drive
Tidewell Pottery
14 Salt Row
Falmouth TR11 3QA
VAT GB 000 0000 00
Tax invoice
INV-2026-0157
Issued 2026-11-12
Billed to
Priya Okafor
priya.okafor@example.com
DescriptionQtyUnitAmount
Wheel throwing: first bowl, Tuesday 15 December at 18:301£48.00£48.00
Subtotal (excl. tax)£40.00
VAT 20%£8.00
Total (incl. tax)£48.00
Paid at the studio on the day. Thank you for booking with Tidewell Pottery.
  • Numbers use the highest one issued, not a row count, so deleting a row never reuses a number.
  • A new year starts again at 0001. Nothing else about the format changes.
  • Rerunning a failed step finds the existing PDF in Drive instead of making a second one.
Sheet 5 · Kiln

Never fire a half-empty kiln.

Pieces wait in a list. Kiln packs them onto shelves by footprint, height and firing temperature, and tells you which firing is ready to load and which still needs a few more pieces.

84 pieces waiting

44 bisque · 15 earthenware · 25 stoneware

Bisque firing · cone 06 · 1000°C

292928272726262525212018
shelf 1 · 30.5 cm headroom89% covered · 0.5 cm gaps
1717161615151099
shelf 2 · 18.5 cm headroom77% covered · 0.5 cm gaps
1499888
shelf 3 · 15.5 cm headroom77% covered · 0.5 cm gaps
222211
shelf 4 · 3.5 cm headroom76% covered · 0.5 cm gaps

74 / 74 cm

under 6 cm6 to 14 cm14 to 22 cmover 22 cm

Ready to load. Full: fire it. Pieces in a glaze firing keep 0.5 cm apart so glazed surfaces never touch.

Sheet 6 · Reports

Monthly numbers, without the month-end evening.

Revenue, tax owed, costs, profit and how full your classes were. Written into the Reports tab every night, so the question “how did November go?” is already answered.

Synthetic demo data for a fictional studio.
ANovember 2026BamountCvs Oct
2Revenue (net of tax)£1,920.00DOWN 12.7%
3VAT collected, owed to the tax office£384.00
4Clay−£161.00
5Glaze−£67.00
6Electricity (kiln)−£120.00
7Rent−£482.00
8Instructors−£508.00
9Costs−£1,338.00DOWN 10.7%
10Profit£582.00DOWN 17.1%
11Margin30.3%

Revenue is counted in the month the class takes place. Invoices for cancelled bookings are void, and tax is shown on its own line because it isn't yours.

How full were the classes?

48 of 76 seats · 63.2%
  • Tue 3 NovHandbuilding: planters6/8
  • Fri 6 NovGlaze night6/10
  • Mon 9 NovWheel throwing: mugs4/6
  • Thu 12 NovHandbuilding: tiles5/8
  • Sun 15 NovWheel throwing: first bowl4/6
  • Wed 18 NovHandbuilding: planters6/8
  • Sat 21 NovGlaze night8/10
  • Tue 24 NovWheel throwing: mugs4/6
  • Fri 27 NovHandbuilding: tiles3/8
  • Mon 30 NovWheel throwing: first bowl2/6

10 classes · 0 cancellations · 0 seats on waitlists

Sheet 7 · Script

One codebase, two places.

The booking rules, tax maths and kiln packing are plain TypeScript with no Google code in them. esbuild bundles them into the Apps Script project. This page imports the same files. What you just clicked is what runs in your sheet.

core/

  • booking.ts capacity, waitlist, cancel
  • money.ts tax split, formatting
  • invoice.ts numbering, HTML layout
  • kiln.ts firing planner (MaxRects)
  • reports.ts monthly P&L, utilisation
  • ics.ts calendar invites

No Google APIs, no DOM, no clock. Everything “now” is passed in, so it's deterministic and testable.

Runtime 1 · Your Google account

Thin adapters over SpreadsheetApp, FormApp, MailApp, DriveApp, LockService. npm run build:gas bundles it all into one Code.js.

Runtime 2 · This page

Next.js imports the same files, so the live demo is the real engine, not a mock-up of it.

ApropertyBhow it works
2idempotentGoogle can fire a form trigger twice. Each response gets a key from the email, class, seats and the form's own timestamp. A repeat is recognised, logged and ignored: one booking, one invoice, one email.
3concurrentTwo people booking the last seat at the same moment go through a script lock one at a time. The check, the decision and the write happen together; PDFs and emails happen after the lock is released.
4failure-safeIf Gmail is down the booking is kept, the row is flagged unsent, the error goes to the Log tab and the nightly job retries it exactly once. Nobody loses a seat because an email failed.
5moneyWhole pence or cents everywhere, tax split once on the total, net plus tax equal to gross to the penny. Checked across 100,000 amounts, 7 tax rates, both inclusive and exclusive.
6configurableCurrency, tax label and rate, invoice prefix, kiln size and owner email live in a Settings tab. Changing a studio from UK VAT to US sales tax is two cells.
7testedThe core has unit and property tests. The Apps Script adapters run against mocked SpreadsheetApp, LockService, MailApp and DriveApp: replayed triggers, lock contention, failed mail, bad settings.
idempotent
Google can fire a form trigger twice. Each response gets a key from the email, class, seats and the form's own timestamp. A repeat is recognised, logged and ignored: one booking, one invoice, one email.
concurrent
Two people booking the last seat at the same moment go through a script lock one at a time. The check, the decision and the write happen together; PDFs and emails happen after the lock is released.
failure-safe
If Gmail is down the booking is kept, the row is flagged unsent, the error goes to the Log tab and the nightly job retries it exactly once. Nobody loses a seat because an email failed.
money
Whole pence or cents everywhere, tax split once on the total, net plus tax equal to gross to the penny. Checked across 100,000 amounts, 7 tax rates, both inclusive and exclusive.
configurable
Currency, tax label and rate, invoice prefix, kiln size and owner email live in a Settings tab. Changing a studio from UK VAT to US sales tax is two cells.
tested
The core has unit and property tests. The Apps Script adapters run against mocked SpreadsheetApp, LockService, MailApp and DriveApp: replayed triggers, lock contention, failed mail, bad settings.

The adapter is short on purpose

export function onFormSubmit(e) {
  const ss = SpreadsheetApp.getActiveSpreadsheet();
  const request = requestFromNamedValues(e.namedValues, submittedAtFrom(e));

  const result = withScriptLock(() => {
    const { state } = loadState(ss);
    const res = processBooking(state, request, nowIso());   // core: pure
    applyChanges(ss, res.changes, state.sessions);          // rows, in one batch
    return res;
  });

  runEffects(ss, result);  // PDF + email, after the lock, each flagged when sent
}

processBooking never touches Google. It returns the next state, the exact row changes to write and the emails to send, which is also what this page animates.

Setting it up takes five steps

  1. 1Make a Google Sheet. New sheet, then Extensions → Apps Script.
  2. 2Paste the bundle. Code.js and appsscript.json from npm run build:gas, or push them with clasp.
  3. 3Reload the sheet. A Kiln menu appears. Choose Set up this spreadsheet.
  4. 4Create the booking form. Kiln → Create booking form. Share the link.
  5. 5Install triggers. Kiln → Install triggers. Bookings now run themselves, and the nightly job runs at 2am.

The at the top of this page lists every action the script adds.

Want a back office like this?

Kiln is a concept project: Tidewell Pottery is fictional and every name, booking and figure is invented. It shows how I build Sheets and Apps Script automation: typed, tested, safe to run twice. I take on this kind of work, and the same core can sit behind a web app when a sheet isn't enough.