Openfront Barber

Self-hosted booking, deposits, checkout and earnings for a barber who runs their own business.

Source · Live site

Openfront Barber is for one barber who works for themselves: in their own space, renting a chair in someone else's shop, or mobile. Clients book from the barber's own page and can pay a deposit by card. The barber keeps services, weekly hours, time off, clients, retail products, tips and chair rent in one dashboard, and sees what they actually keep.

It is a different product from Openfront Barbershop. Barbershop is for a shop owner with employee barbers, a walk-in queue and commissions. Barber is for the barber who is the business.

The live site runs one barber, Marcus Reed Cuts, with a booking page at /book/marcus-reed. The dashboard is at /dashboard.

To install it, see Getting started.

Concepts

ConceptMeaning
Barber profileThe business: name, booking address (slug), timezone, currency, booking rules and work style. Created once by the setup form.
ServiceSomething a client books, with a price, a length and an optional deposit. A deposit of 0 means the client pays at the chair.
Weekly hours and time offWhen the barber works. Open times on the booking page come from these, minus existing appointments and the clean-up buffer.
AppointmentA booked visit. Status is requested, confirmed, completed, cancelled or no_show; payment status is unpaid, deposit_paid, paid or refunded.
Unpaid holdAn online booking waiting for its deposit keeps its time for Hold unpaid bookings for hours (6 by default). After that it is cancelled and the time opens again.
PaymentA settled amount: a deposit, the service at checkout (with tip and products), a refund or a no-show fee. Written only by the server.
Chair rentalRent paid to a shop owner, weekly or monthly. Earnings subtract it for the days it ran.

Ownership

Every record belongs to one barber profile. Access filters on each list limit a barber to their own records, so several barbers can share one deployment without seeing each other's clients, appointments or money. The home page at / shows the first barber who opened booking on that deployment.

Stack

Next.js 16 (App Router) with React 19, Keystone 6 with GraphQL at /api/graphql, Prisma with PostgreSQL, Tailwind CSS and shadcn/ui. Sign-in uses Keystone password auth with stateless session cookies.

Source layout

PathContents
app/Thin routes: /, /book/[slug], /booking/[id], the dashboard and the API routes.
features/storefront/The home page, booking page, booking flow and the client's booking status page.
features/platform/The dashboard pages: Today, Earnings and Settings (setup).
features/keystone/models/The lists.
features/keystone/mutations/index.tsThe custom queries and mutations.
features/keystone/utils/commands.tsBooking, slots, deposits, client cancel and refunds.
features/keystone/utils/staffCommands.tsSetup, checkout, no-show, barber cancel and earnings.
features/integrations/payment/The manual and stripe payment adapters.

Main workflows

  1. Set up. The barber creates an account, then fills in the setup form: business name, booking address, timezone, phone, location and work style. Start with a typical menu adds five services and three retail products. See Settings.
  2. Take bookings. Clients pick a service and a time on /book/<address> and leave a name and a phone or email. See Storefront.
  3. Collect deposits. If Stripe is set up and the service has a deposit, the client pays it through Stripe Checkout. The booking is confirmed when the payment is read back from Stripe. See Payment providers.
  4. Work the day. Today lists open appointments with what the client asked for and their saved preferences. Check out with price, tip, a product and the payment method, mark a no-show, or cancel. See Today.
  5. See earnings. Services, tips and products for the last 7, 30 or 365 days, by payment method, less chair rent. See Earnings.

On this page