# Openfront Gym

> Openfront Gym connects membership signup with class discovery, schedules, bookings, waitlists, instructor and roster work, member accounts, facility information, kiosk check-in, workout records, and operational reporting.

Membership, coaching and every class in between.

## At a glance

- 53 models for members, classes, check-ins, credits, retail and billing
- 19 role flags, from check-in to payroll and the instructor view
- 1 organization as the tenant boundary, active or suspended

## Links

- [Product overview](https://spec.openship.org/gym): every area and feature on one page
- [Live demo](https://gym.openship.org)
- [Documentation](https://docs.openship.org/docs/openfront/gym)
- [Source code](https://github.com/openshiporg/openfront-gym)
- [Feature film](https://spec.openship.org/gym/video): a 27-second walk through every area

## Areas

### Memberships

- **A place for every member**: Publish membership tiers, let visitors join through configured Stripe subscription checkout and give members an account for their membership, profile and bookings. (https://docs.openship.org/docs/openfront/gym/membership-plans)
- Participation terms can be accepted before joining.
- Without Stripe, members join at the front desk.
- Freeze, resume, cancel and change tiers through billing workflows.
- Class credits are recorded per service period.

### Classes

- **A schedule built around real sessions**: Class types and weekly schedules generate dated class instances. Booking checks membership, credits, capacity and resource state together; full sessions use a waitlist. (https://docs.openship.org/docs/openfront/gym/classes)
- Generate upcoming sessions from the schedule.
- Reject duplicate and past-session bookings.
- Canceling can promote the next waitlisted member.
- Coach and room conflicts are checked when generating sessions.

### Rosters

- **Know who is coming, and who came**: Staff and instructors work from session rosters, record attendance and review upcoming work in the instructor account. (https://docs.openship.org/docs/openfront/gym/rosters)
- Each booking belongs to a dated class session.
- Attendance records stay with participation.
- Instructor views are role-gated.
- Session cancellation has its own operation.

### Check-in

- **The front desk, without the bottleneck**: Record member entry and exit, or unlock the kiosk for member search, QR scanning and guest check-in. Member QR codes rotate every 30 seconds. (https://docs.openship.org/docs/openfront/gym/check-in)
- Staff authorize a bounded kiosk session.
- Members can present a rotating check-in code.
- Guest check-ins have a dedicated flow.
- Suspended organizations cannot take new check-ins.

### Training

- **Coaching with credits that add up**: Set trainer availability, sell training packages and let eligible members book, reschedule and cancel appointments. Package uses and adjustments keep a credit ledger. (https://docs.openship.org/docs/openfront/gym/training)
- Training packages retain prepaid-credit movements.
- Coaching assignments connect staff and members.
- Training leads have an operator workflow.
- Cash and configured counter card checkout are separate tender paths.

### Retail

- **The shop at the front desk**: Keep retail items by location, take sales and returns, record stock entries and close the drawer with a variance reason. (https://docs.openship.org/docs/openfront/gym/retail)
- Retail sales and returns retain their own records.
- Stock changes have ledger entries.
- Counter card attempts are recorded before provider calls.
- Close records preserve counted totals and variance.

### Billing

- **Membership money, with a recovery path**: Use configured Stripe for hosted subscriptions, the billing portal, refunds and counter card checkouts. Payment events and billing attempts keep exceptions available for reconciliation. (https://docs.openship.org/docs/openfront/gym/billing)
- Stripe is the registered payment adapter.
- Signed provider webhooks update payment evidence.
- Refund attempts have their own records.
- Online checkout requires one installed Stripe merchant organization.

### Operations

- **Run the club you actually have**: Locations, resources, member notices, cases, participation policies and operating exports sit alongside the class and front-desk tools. (https://docs.openship.org/docs/openfront/gym/operations)
- Organization-scoped records separate operational data.
- Publish your own participation terms.
- Import member contacts with a dry-run option.
- Partner discovery has scoped class and booking credentials.

### Developer

- **A club platform you can run yourself**: Openfront Gym brings memberships, classes, check-in, coaching and retail into one Next.js, Keystone, Prisma and Postgres application, with an organization as the tenant boundary. (https://github.com/openshiporg/openfront-gym)
- 53 models cover members, tiers, class sessions, bookings, check-ins, credits, retail and payments.
- Booking checks membership, credits, capacity and room state in one transaction.
- Staff forms keep an intent record, so a lost response can be retried without applying twice.
- Stripe is the payment adapter in the source.
