> ## Documentation Index
> Fetch the complete documentation index at: https://opencals.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Otherdoor — escape room template

> Free, open-source escape room website template. Next.js 15, an Edinburgh escape-room company with two venues and six private rooms that each open onto a completely different world, booked by team size with the group price, plus per-head workshops, built on the Opencals Storefront API.

A complete escape-room website you can clone and deploy today. Otherdoor is
built for **a venue that sells private rooms to whole teams**: the team picks a
room, a session and a team size, and pays the group price for that size. Start
here for escape rooms, VR arenas, karaoke or party rooms, or any business that
rents a themed room by the session with a price per group. It runs on the same
[Storefront API](https://opencals.com/docs/api-reference/introduction.md) and typed
[TypeScript SDK](https://opencals.com/docs/guides/storefront-sdk.md) as [Haar](https://opencals.com/docs/open-source/haar.md),
[Frisor](https://opencals.com/docs/open-source/frisor.md), [Clear Care](https://opencals.com/docs/open-source/clarity.md),
[VOLT](https://opencals.com/docs/open-source/volt.md), [NOIR Drive](https://opencals.com/docs/open-source/noir.md),
[Fluently](https://opencals.com/docs/open-source/fluently.md), [Bali Villa Rentals](https://opencals.com/docs/open-source/bali-villas.md),
[Tensile](https://opencals.com/docs/open-source/reformer.md), [Alba Dental](https://opencals.com/docs/open-source/alba.md),
[Gable](https://opencals.com/docs/open-source/gable.md), [Afterglow](https://opencals.com/docs/open-source/afterglow.md) and
[METTLE](https://opencals.com/docs/open-source/mettle.md).

It's set in Edinburgh (GBP, `Europe/London`) with two venues: Otherdoor Vaults
under the Old Town (The Jaguar Temple, The Gaslight Affair at No. 9, Protocol
Zero) and Otherdoor Leith on the Shore (Kepler Station, The Hôtel Lumière Job,
The Clockmaker's Workshop, and the workshops). The brand idea is the door:
"Pick a door. Leave the world behind." The shell is dark, modern and
genre-neutral, and every room page is a different world with its own palette,
type, layout and motion.

> [card] [Live demo](https://template-otherdoor.vercel.app)
>
> template-otherdoor.vercel.app

> [card] [Source code](https://github.com/letsopencals/template-otherdoor)
>
> letsopencals/template-otherdoor (MIT)

> [card] [Deploy to Vercel](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fletsopencals%2Ftemplate-otherdoor\&env=OPENCALS_API_KEY,AUTH_SECRET\&envDescription=API%20key%20from%20your%20Opencals%20dashboard%20and%20a%20random%20secret%20for%20auth\&project-name=otherdoor\&repository-name=template-otherdoor)
>
> One-click deploy

> [card] [Build it with AI](https://opencals.com/docs/ai-agents/build-booking-site-skill.md)
>
> build-booking-site skill

![Otherdoor escape room website template on a tablet and a phone: the corridor of six doors and a room world](https://raw.githubusercontent.com/letsopencals/template-otherdoor/main/docs/cover.png)

Otherdoor: the corridor of doors on a tablet, a room world on a phone

## The Corridor

The home page is a dark hall with six doors over a video of the corridor. Hover
or focus a door (tap on a phone): its lever turns, it swings out towards you on
its hinge, and that room's video loop plays behind it, its light spills across the floor, and the whole site takes
the room's colour. Mood filters (the past, the future, family, hardest,
scariest) re-order the doors. Below: **Tonight** with the next free sessions
per room, live from the API, a "which door is yours?" picker, a flashlight
room, and a **keypad lock** that gives away the discount code.

![Otherdoor home page: a dark corridor with six numbered doors](https://raw.githubusercontent.com/letsopencals/template-otherdoor/main/docs/home-corridor.png)

The Corridor: six doors over the hall video

![An Otherdoor door swung open onto its room's video, its light spilling into the hall](https://raw.githubusercontent.com/letsopencals/template-otherdoor/main/docs/home-door-open.png)

Hover a door and it swings open onto its room's video

## Six rooms, six worlds

Each room has its own landing page at `/rooms/<slug>` that shares nothing with
the others but the header, the footer and the booking panel:

| Room | The world |
| - | - |
| **Kepler Station** (2187, the 120-minute Epic) | The mission timeline: a station you can turn, a scroll-driven docking approach, a cutaway of both decks with failing lights, a signal decoder, a power board that relights the whole page and an airlock you press and hold |
| **The Jaguar Temple** (1936) | One continuous descent from the canopy to the idol chamber, with leaves that part like curtains, swinging lianas, a glyph lock and a rolling stone |
| **The Gaslight Affair at No. 9** (1891) | A gaslit street, then an evidence wall travelled sideways, with red string that draws itself and a reading glass that finds hidden clues |
| **Protocol Zero** (2071) | The rogue AI's own interface: it boots, then decays from clinical white to alarm red as you scroll, with a wipe countdown and an access prompt |
| **The Hôtel Lumière Job** (1963) | A comic book: panels that slam in with halftone screens and speech balloons, a playable laser grid and a safe dial |
| **The Clockmaker's Workshop** (family, 7+) | A mechanical toy you wind up: the scroll drives every gear, cabinet compartments open, a cuckoo calls and brass keys hide on the page |

Each world is built on a hero video loop and stills in `public/worlds/<slug>/`,
with code on top (canvas, SVG and CSS overlays, scroll choreography). The
contract a world gets (room data, stats, palette, media, the game master, the
next door and the booking panel) is documented in
`components/worlds/README.md`, so you can replace a world or add a seventh.

![Kepler Station room page: a ring station over a nebula with the life support gauge](https://raw.githubusercontent.com/letsopencals/template-otherdoor/main/docs/room-kepler-station.png)

Kepler Station: the derelict station over a nebula, life support failing

![Protocol Zero room page: a clinical white AI interface with a countdown](https://raw.githubusercontent.com/letsopencals/template-otherdoor/main/docs/room-protocol-zero.png)

Protocol Zero: MERIDIAN's interface, wipe countdown running

![The Hôtel Lumière Job room page drawn as a comic book with a laser grid](https://raw.githubusercontent.com/letsopencals/template-otherdoor/main/docs/room-hotel-lumiere-laser-corridor.png)

The Hôtel Lumière Job: the vault corridor, a laser grid you cross with the pointer

## Booking by team size

The booking panel is plain on purpose, in every world: the date strip sits
right above the session times, the team-size buttons show the group price and
the price per head ("4 players · £108 · £27 pp"), extras are checkboxes, and
the total with **Add to your doors** stays in view. `/book` lists every room's
sessions for a day with a venue filter, and `/workshops` books seats in the
lockpicking and cipher workshops with a stepper.

The cart, **Your doors**, shows each booking as a door card with the hold
countdown. Checkout is one page (your team, contact, payment). The confirmation
is **"The door unlocks"**: the booking reference keys into a lock and the door
opens onto the room, then the arrive-by time, the venue, what to wear and
calendar links. The account, **Doors opened**, lists upcoming bookings (move or
cancel up to 24 hours before) and shows every room as a door, lit once you've
played it.

![Otherdoor session board listing each room's sessions for one day](https://raw.githubusercontent.com/letsopencals/template-otherdoor/main/docs/book.png)

Book: every room's sessions for a day, team sizes inline

![Otherdoor confirmation page with the door opening onto the booked room](https://raw.githubusercontent.com/letsopencals/template-otherdoor/main/docs/thank-you.png)

The door unlocks: the booking reference opens the door onto the room

## The escape-room model

This is the part worth copying even if you never ship Otherdoor itself. It uses
existing Opencals features only.

| Piece | How it's modelled |
| - | - |
| A venue | A location (`otherdoor-vaults`, `otherdoor-leith`) with its address and coordinates |
| A room | A product group in the `rooms` collection with **one variant per team size** (`kepler-station-6p`, "6 players", priced at the group price), `maxAttendees: 1` and no staff |
| One room, many team sizes | Every variant of a room is in **one product pool**, so a booking for any team size blocks the room for everyone |
| Sessions | The variant duration is the whole visit (briefing, game, debrief); sessions start on a fixed grid, every 90 minutes from midnight (120 for Kepler Station) |
| The team size on the booking | Sent as the custom attribute `people`, next to the variant that already prices it |
| Workshops | Products in the `workshops` collection, led by staff and priced per head, with `maxAttendees` = seats |
| Team portrait, escape on film, the Victory Bottle, Lobby sharing board, costume rail, birthday ceremony | 6 add-ons |
| Matinee, `OTHERDOOR` | 15% off rooms starting before 15:00 Monday to Thursday (automatic), and a 10% code once per customer |
| Team name, occasion, experience, notes | Checkout questions; the team name appears on the confirmation |

Availability is read once per room (for its smallest team) for the whole
booking window, cached for 60 seconds, and cut into sessions in the browser.
Switching day, venue or team size makes no API calls.

## What's inside

| Feature | Notes |
| - | - |
| Home | The Corridor with mood filters, Tonight, the door picker, the flashlight room, the keypad lock, both venues, the game masters, a Hall of Fame (sample records, labelled), groups and FAQ |
| Room worlds | Six hand-built pages with their own fonts, palettes and motion, a generic world for any other store room |
| Booking | Room panel with team sizes and extras, the `/book` session board, per-head workshops, deep links to a session |
| Your doors | The cart as door cards with a hold timer |
| Checkout | One page: team questions, contact, then Stripe, pay at the venue or bank transfer as the store allows |
| Confirmation | "The door unlocks", with arrive-by time, the venue, what to wear and calendar links |
| Accounts | Passwordless 6-digit code and magic links; upcoming bookings with move and cancel, rooms played |
| Venues, groups, FAQ | A page per venue, group and party bookings, questions |
| Stack | Next.js 15, TypeScript, Tailwind v4, `@opencals/storefront-sdk` v0.3.20, no motion library |

## Get started

**1. Clone and install**

```bash theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
git clone https://github.com/letsopencals/template-otherdoor.git
cd template-otherdoor
npm install
```

**2. Add your API key**

Create a Dev Store in the [Opencals dashboard](https://opencals.com) with the
country set to the **United Kingdom** (for GBP) and choose the **Otherdoor**
dataset (`escape_rooms`). It seeds the two venues, six rooms with their
team-size variants and schedules, two workshops, six game masters, the
extras, the checkout questions, both discounts and sample bookings. Then grab
a private storefront key (`spk_`, see [API keys](https://opencals.com/docs/authentication.md#api-keys))
and set `OPENCALS_API_KEY` and `AUTH_SECRET` in `.env.local`.

**3. Run it**

```bash theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
npm run dev
```

Your rooms, sessions and venues render immediately.

**4. Deploy**

Push to your own repo and
[deploy to Vercel](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fletsopencals%2Ftemplate-otherdoor\&env=OPENCALS_API_KEY,AUTH_SECRET\&envDescription=API%20key%20from%20your%20Opencals%20dashboard%20and%20a%20random%20secret%20for%20auth\&project-name=otherdoor\&repository-name=template-otherdoor),
or host anywhere Next.js runs.

> [!NOTE]
>
> Pages are server-rendered, so their API calls carry no browser `Origin`.
> Leave **allowed origins** empty on the key you give this template, or those
> calls are rejected.

> [!NOTE]
>
> Set **Storefront Base URL** in your dashboard (Settings → API) to your
> deployed domain. Every customer link (view, reschedule, cancel, leave
> feedback) is built as `{storefrontBaseUrl}/link/{token}`.

## Make it yours

MIT-licensed: rebrand it, restructure it, or use it for client work. Everything
the API has no field for lives in `lib/site-config.ts`: each room's stats
(difficulty, fear, escape rate, record), palette and door light, the moods,
venue copy, game-master titles, the keypad code and the world media. The shell's
colours and fonts are Tailwind v4 `@theme` tokens in `app/globals.css`, and
`DESIGN.md` describes the design system:

```css theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
@theme {
  --color-night-1: #0c0a12; /* the hall */
  --color-night-3: #1b1725; /* cards and panels */
  --color-ink: #f1ecf4;     /* text */
  --color-lamp: #f2c46d;    /* the light under a door */
}
```

Each room's door light (`palette.glow`) replaces the lamp colour across the
shell while that room is in focus.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.