> ## 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.

# Afterglow — content gym template

> Free, open-source gym website template for a content gym. Next.js 15, two Miami sites, a class schedule grouped by set with golden-hour badges, story rings, shot add-ons on every class, shoots with the crew, physique coaching, recovery and bar tables, a Shot List cart and a call-sheet confirmation, built on the Opencals Storefront API.

A complete gym website you can clone and deploy today. Afterglow is built for
**a boutique gym where the crew shoots you while you train**: every class can
come with photos or video from the in-house crew, and the edits land in your
inbox. Start here for boutique gyms, studios that sell content or photo
packages, or any class business with paid extras picked at booking. 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) and
[Gable](https://opencals.com/docs/open-source/gable.md).

It's set in Miami (USD, `America/New_York`) with two sites: South Beach on
Collins Ave (Mirror Hall, the Rooftop, the beach and the Afterglow Bar) and
Wynwood (the Neon Room, the Ring, the Mural Floor, the Studio Wall and the
café). Ten coaches in three tiers and six crew (photographers, filmmakers and a
makeup artist). The promise is **"You train. We shoot."** The design is a film
set in deco cream and golden-hour gradients: camera viewfinders, story rings,
contact sheets, call sheets and grease pencil.

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

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

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

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

![Afterglow content gym website template on a tablet and a phone: the You train. We shoot. homepage and the call-sheet confirmation](https://raw.githubusercontent.com/letsopencals/template-afterglow/main/docs/cover.png)

Afterglow: the homepage on a tablet, the call sheet on a phone

![Afterglow template homepage row of story rings for the Neon Room, the Rooftop, the Ring, Mirror Hall, the Bar and the sunrise run](https://raw.githubusercontent.com/letsopencals/template-afterglow/main/docs/home-stories.png)

Story rings: today at Afterglow, each one opens a full-screen vertical story

## The schedule

One day at a time. The day strip shows each date's session count and that
day's sunset. Sessions are grouped by **set** (the room they run in), each
under its photo, and every row shows the time, the class, the coach and spots
left. Outdoor classes that overlap the real Miami sunrise or sunset hour get a
**golden-hour badge**, worked out from the NOAA solar calculation in
`lib/sun.ts`. Full classes are struck through and point to the next one with
space.

Tap a row and it opens in place: what the class is, what the crew shoots, the
four **shot add-ons** drawn as viewfinder frames you circle in grease pencil
(Class Clips, Photo Set, Slow-mo Reel, Raw Camera Roll), bar extras, the price
and **Book**. Filters cover the site, the class type, the coach and "golden
hour only", and everything lives in the URL, so `/schedule?s=<series>@<start>`
opens a row directly.

![Afterglow template schedule grouped by set with an expanded class row, shot add-ons as viewfinder frames and a Book button](https://raw.githubusercontent.com/letsopencals/template-afterglow/main/docs/schedule.png)

The schedule: a Rhythm Ride open in the Neon Room with two shots circled

## Shoots, coaching, glow and the bar

Content sessions with the crew, physique coaching, recovery and glam, and bar
tables all use one booker: pick the session, then the option, who (or anyone
free), the site, the length (30, 60 or 90 minutes for coaching) or the party
size, then a day and a start time. A draft call sheet fills in beside it as you
choose. Free windows are read once per variant, person and site, and every day
and start time is worked out in the browser.

![Afterglow template shoot booker with a photographer, a day strip, start times and a draft call sheet](https://raw.githubusercontent.com/letsopencals/template-afterglow/main/docs/shoots.png)

Shoots: the Golden Hour Shoot on the rooftop, with golden-hour start times and the draft call sheet

## The Shot List, the release form and the call sheet

The cart is the **Shot List**, drawn as a contact sheet: one numbered frame per
session with its shots circled. Totals and offers always come from the cart.
Checkout is a **release form**: your details, the waiver, whether the crew may
post you, your Instagram handle and your goal, signed once, then Stripe or pay
at the desk. The confirmation is a **call sheet** with the call time, set, crew,
wardrobe notes and the circled shots for each session, calendar links and a
9:16 story card you can download and post.

![Afterglow template cart drawn as a contact sheet with numbered frames and circled shot add-ons](https://raw.githubusercontent.com/letsopencals/template-afterglow/main/docs/shot-list.png)

The Shot List: a class with two shots circled and a shoot, with First glow and Shot on us applied

![Afterglow template booking confirmation laid out as a film call sheet](https://raw.githubusercontent.com/letsopencals/template-afterglow/main/docs/thank-you.png)

The call sheet: call times, crew, sets, wardrobe notes and the shots booked

## The content gym model

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

| Piece | How it's modelled |
| - | - |
| A site | A location with its address and hours (South Beach, Wynwood) |
| A class type | A collection (`ride`, `sculpt`, `flow`, `box`, `sweat`), with its colour in `lib/site-config.ts` |
| A class | One product group; one variant per class × site × coach (`glute-lab-south-beach-valentina`) with its own weekly schedule and `maxAttendees` = spots |
| Full classes | The API drops a full slot, so the template learns each series' weekly pattern and shows a missing week as Full (`lib/timetable.ts`) |
| A set (room) | Not an API entity: site copy maps each class to its set |
| Shots | Add-ons on every class and coaching product, recognised by title; site copy adds what you get and when |
| The crew | Staff on the content products, so the Staff rule stops a photographer being booked twice; the Studio Wall and Creator Brand Day share a product pool |
| Physique coaching | One product per coach tier with a 30-minute base and `allowCustomDuration` up to 90 |
| Partner training and duo shoots | One booking for two, sent as the custom attribute `people = "2"` |
| Glow suites and bar tables | Staffless products on the Self rule; a table's party size is the number of attendees |
| Offers | First glow (40% off a first class), Early light (20% off weekday classes before 8 AM) and `GLOW15`, which don't stack, plus **Shot on us**: an automatic, combinable discount that only takes 30% off shot add-ons, so it applies on top |
| Waiver, content consent, Instagram handle, goal | Checkout questions |

## What's inside

![Afterglow template account page with past sessions on a contact sheet and the delivery state of each edit](https://raw.githubusercontent.com/letsopencals/template-afterglow/main/docs/account-contact-sheet.png)

Your roll: past sessions on a contact sheet, circled when the crew shot them

| Feature | Notes |
| - | - |
| Home | Hero video in a viewfinder, story rings with a full-screen story viewer, next call times, the sets, shoots, cast and crew, the bar and both sites |
| Schedule | One day at a time grouped by set, golden-hour badges, spots left, Full classes, rows that open in place with shot add-ons, filters in the URL |
| Services | Shoots with the crew, physique coaching at 30/60/90 minutes, glow (infrared suites, cold plunge, red light, compression, glam) and bar tables in one booker |
| Crew, classes, sites | A page per class with what the crew shoots and the next call times, a crew page with handles, and a page per site with hours, transit and sets |
| Shot List | A multi-item cart as a contact sheet, shots circled, discounts and offers from the cart |
| Checkout | A release form with the checkout questions, a discount code, Stripe or pay at the desk; the free First Glow Tour needs no payment |
| Confirmation | A call sheet with call times, crew and wardrobe notes, calendar links and a downloadable 9:16 story card |
| Accounts | Passwordless 6-digit code or magic link; **Your roll** with up next as call sheets (move and cancel until the product's change window closes, 12 hours in the seed) and past sessions with the delivery state of the edits |
| Glow Pass | A clearly labelled "Coming soon" preview of a monthly pass; nothing is for sale |
| SEO | Per-page metadata, Open Graph, `ExerciseGym` + `HealthClub` structured data per site, `robots.txt`, `sitemap.xml` |
| Stack | Next.js 15, TypeScript, Tailwind v4, `@opencals/storefront-sdk` v0.3.20 |

## Get started

**1. Clone and install**

```bash theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
git clone https://github.com/letsopencals/template-afterglow.git
cd template-afterglow
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 States** (for USD) and choose the **Afterglow**
dataset (`content_gym`). It seeds the two sites, ten coaches and six crew,
the weekly timetable, coaching, shoots, glow and bar tables, three dated
events, the shot add-ons and bar menu, the checkout questions, four
discounts and sample bookings, so some classes are already full. 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 classes, crew and sites 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-afterglow\&env=OPENCALS_API_KEY,AUTH_SECRET\&envDescription=API%20key%20from%20your%20Opencals%20dashboard%20and%20a%20random%20secret%20for%20auth\&project-name=afterglow\&repository-name=template-afterglow),
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. Gym copy
lives in `lib/site-config.ts` (the sets, which class runs on which set,
wardrobe notes, what the crew shoots, crew roles and handles, the shot
deliverables, the stories and the Glow Pass preview). Every colour and font is
a Tailwind v4 `@theme` token in `app/globals.css`, and `DESIGN.md` describes
the call-sheet system:

```css theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
@theme {
  --color-cream: #fff4ea;   /* page */
  --color-night: #120e1a;   /* text, night sections */
  --color-peach: #ffb38a;   /* start of the afterglow gradient */
  --color-pink: #ff5e8a;    /* gradient middle; the grease pencil */
  --color-violet: #6a4bff;  /* end of the gradient */
  --color-rec: #d7ff3a;     /* the REC dot and "live" */
}
```


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