This is the abridged developer documentation for Tape Chart booking engine # For AI agents > The rules, the order of work and the definition of done for a coding agent that integrates the booking engine into a hotel website. These docs are written to be read by a coding agent. This page is the brief: read it first, then open only the pages your task needs. ## Machine-readable docs | Address | What it is | | ------------------------------------ | ----------------------------------------------------------------------------------------- | | [`/llms.txt`](/llms.txt) | The index: what this is and where everything is. | | [`/llms-full.txt`](/llms-full.txt) | Every page as one Markdown file. Read this when you can afford it: it is the whole truth. | | [`/llms-small.txt`](/llms-small.txt) | The same, shortened, for a small context window. | ## What you need from the human Ask once, before writing code. Do not invent any of these. 1. **The property number** — nine digits, from Tape Chart Link → Booking engine. It goes into `data-property`. 2. **Whether the site’s address is on the hotel’s list of allowed origins** (Booking engine → Firewall), including `http://localhost:PORT` for development. Without it the script loads and every request is refused by the browser — nothing you write can fix that. 3. **Room type and rate plan ids**, only if the task names a specific room or plan (`data-room`, `data-rooms`, `data-plan`). They are UUIDs listed in Tape Chart Link → Booking engine → Components. ## The rules 1. **One script tag is the whole integration.** No npm package, no SDK, no API key, no server code. Never call the API behind the script yourself and never copy the script into the site. 2. **The script goes in ``, once, with `defer`,** on every page that shows a component or uses a `data-pms-*` attribute. 3. **The site needs two pages:** a booking page (default `/booking`) that carries `
` and an account page (default `/account`) that carries `
`. Other paths are named with `data-booking-path` and `data-account-path` on the script tag. 4. **The booking window and the guest area cannot be rebuilt.** The booking window is drawn by the script on the page, except its details-and-payment step, which is a frame of ours; the guest area is a frame of ours. The guest’s details, the card payment and the account live in those frames. Place the two boxes and style them with variables; do not try to recreate or reach into them. 5. **Everything else is better in the site’s own HTML.** A search form, book links, room cards and price lines are written in the site’s own markup with `data-pms-*` attributes. Use a ready component only when the site has no design for that piece. 6. **Style with `--pms-*` CSS variables on `:root`, in the site’s own stylesheet.** Exactly three selectors of yours may name an element of ours, and each is documented: `[data-pms-theme="dark"]`, to give a variable a value for the dark look; `[data-pms-booking-overlay]::part(name)`, to style a listed piece of the calendar or the guests panel — both open in that one element at the end of ``, for the site’s own form and for the ready search form alike, never inside a component’s box; and the two together, `[data-pms-booking-overlay][data-pms-theme="dark"]::part(name)`, for a piece in the dark look. No other selector reaches inside a component, with or without `!important`. Never put the variables on our `
`, and never set a property on the overlay element itself. See [How a part rule works](/reference/styling/#how-a-part-rule-works). 7. **Write real fallback text inside every live element.** `from €95` shows your text until the live value arrives, and again whenever there is no value for the stay it asks for: the answer on its way, a failed request, a room that cannot be sold. 8. **Never write the state attributes yourself** — `data-pms-ready`, `data-pms-filled`, `data-pms-loading`, `data-pms-open`, `data-pms-has-dates`, `data-pms-nights`, `data-pms-item`, `data-pms-available`, `data-pms-bound`, `data-pms-field`. The script sets them; your CSS reads them. 9. **Dates are `YYYY-MM-DD`; check-out is the day of departure.** A fixed date in markup goes stale — prefer `data-stay="weekend"` or `data-stay="tomorrow"` unless the task gives dates. A party with children is `data-adults` plus `data-child-ages="6,9"` (ages, comma-separated), wherever `data-adults` is accepted; a child is priced by its real age, so never invent ages. A list counts only whole: one entry that is not an age, or one child older than the property books as a child, drops every child and the price is for the adults alone, with no warning — see [Children](/reference/attributes/#children). Ask the human for the property’s highest child age if the task names children. 10. **In a framework (React, Next.js, Vue, Astro):** load the script once in the document head, not inside a component. Boxes and `data-pms-*` elements added later are picked up by themselves. Room cards: prefer `pmsBooking.rooms()` drawn in the framework’s own components. A `