External storefronts

Give an LLM the Tour Guide storefront skill to adapt the built-in storefront or create a separate client.

To create a custom Tour Guide storefront, copy the skill and give it to your LLM. The skill explains how features/storefront and the customer routes implement the current booking loop.

The built-in storefront has a home page with a harbor photo, trip cards with each tour's own photo, what is included, the cancellation policy, and the price for the chosen date. Treat its screens as the behavior reference for a separate client.

Current storefront routes

Route files live in app/(storefront)/**. Screens are in features/storefront/screens. Pages are server-rendered on demand.

RouteScreenWhat it does
/HomeScreenTours on sale with duration and the lowest price
/tours/[slug]TourScreenTour details, date picker, departure times with seats left, ticket and add-on quantities, promo code
/checkout/[holdId]CheckoutScreenHold timer, lead booker, one entry per guest, Stripe card form
/bookings/[ref]ConfirmationScreenBooking code, meeting point, waiver links, refund if cancelled now, cancel. An unknown code is a 404 (bookingRefExists)
/lookupLookupScreenFind a booking by code and email
/manageManageScreenManage link (/manage#<bookingRef>.<token>): cancel under the policy, move to another departure of the same tour at the same price, or change who is coming and pay the difference
/waitlistWaitlistScreenA waitlist link: place in line, book held seats, or leave
/waiver/[token]WaiverScreenRead and sign a waiver

The header shows the operator name from settings, with "Openfront Tour Guide" as the fallback.

Named operations

All calls are in features/storefront/lib/data.ts and go through the server, not the browser.

StepOperation
BrowsetoursOnSale, tourAvailability, operatorName
HoldcreateDepartureHold
CheckoutcheckoutHold, startBookingCheckout, completeBookingCheckout
Booking pagelookupBooking, cancelMyBooking, bookingRefExists
Manage linkmanageBooking, cancelManagedBooking, rescheduleManagedBooking, partyChangeQuote, changeParty, completePartyChange
WaitlistjoinWaitlist, waitlistStatus, claimWaitlistOffer, leaveWaitlist
Gift cardgiftCardBalance
WaiverwaiverForToken, signWaiver

rebookWithCredit exists in the API but has no storefront page.

Proof, not accounts

  • There is no guest sign-in. A random token is kept in an http-only cookie. Only its SHA-256 hash is stored with the hold. Every later step must present the same token.
  • The booking page asks for the email used to book. The browser keeps it in session storage so a refresh works. Lookup needs the booking code and the email together.
  • The manage and waitlist links are derived on the server and carry their proof in the URL fragment, so it never reaches a server log. Staff can Reset guest link to stop an old manage link working.
  • A waiver link is derived from the participant on the server. Anyone with the link can sign for that participant only.
  • Money amounts, seat counts, and prices come from the server's quote. The page sends choices, never prices.

Payment

The checkout page uses Stripe's Payment Element for cards. The server creates the payment intent with the card method only. After the card is confirmed, the page calls completeBookingCheckout. The server re-reads the payment from Stripe and checks the amount and currency before confirming seats. A webhook at /api/webhooks/payment/pp_stripe confirms the booking if the guest closes the tab after paying. See Payment providers.

On this page