Openfront Med Spa is a self-hostable medical-aesthetics booking and practice-operations application. Clients can discover services and providers, book appointments, and manage visits. Practice teams coordinate scheduling, intake, treatment plans, consent, clinical records, checkout, inventory, memberships, packages, and commissions.
Documentation: docs.openship.org/docs/openfront/medspa
| Storefront | medspa.openship.org |
| Dashboard | medspa.openship.org/dashboard |
Every Openfront is open source and self-hostable. Try any of them on its live demo.
| Product | For | Repository | Demo | Docs |
|---|---|---|---|---|
| Openfront E-commerce | Online store: catalog, checkout, orders, fulfillment | openfront | e-commerce.openship.org | Docs |
| Openfront Restaurant | Online ordering, POS and kitchen display | openfront-restaurant | restaurant.openship.org | Docs |
| Openfront Grocery | Grocery ordering, lots, expiry and pickup | openfront-grocery | grocery.openship.org | Docs |
| Openfront Gym | Memberships, classes, check-in and billing | openfront-gym | gym.openship.org | Docs |
| Openfront Hotel | Reservations, front desk, housekeeping, folios | openfront-hotel | hotel.openship.org | Docs |
| Openfront Rental | Short-term rental bookings and calendars | openfront-rental | rental.openship.org | Docs |
| Openfront Salon | Appointments, stylists and services | openfront-salon | salon.openship.org | Docs |
| Openfront Barbershop | Bookings, walk-ins and barbers | openfront-barbershop | barbershop.openship.org | Docs |
| Openfront Coffee Shop | Café ordering and counter POS | openfront-coffeeshop | coffee-shop.openship.org | Docs |
| Openfront Real Estate | Listings, showings and transactions | openfront-realestate | real-estate.openship.org | Docs |
| Openfront Dealership | Inventory, test drives, deals and service | openfront-dealership | dealership.openship.org | Docs |
| Openfront Vape | Age-gated retail with compliance controls | openfront-vape | vape.openship.org | Docs |
| Openfront Convenience | Convenience store POS and inventory | openfront-convenience | convenience.openship.org | Docs |
| Openfront Collectibles | Graded items, consignment and provenance | openfront-collectibles | collectibles.openship.org | Docs |
| Openfront Cannabis | Dispensary menu, packages and recalls | openfront-cannabis | cannabis.openship.org | Docs |
| Openfront Pharmacy | Prescriptions, inventory lots and pickup | openfront-pharmacy | pharmacy.openship.org | Docs |
| Openfront Med Spa (this repository) | Treatments, consents and memberships | openfront-medspa | medspa.openship.org | Docs |
| Openfront Construction | Projects, bids, change orders and crews | openfront-construction | construction.openship.org | Docs |
| Openfront Law Firm | Matters, intake, time and billing | openfront-law-firm | law-firm.openship.org | Docs |
| Openfront Scheduling | Booking pages for appointment businesses | openfront-scheduling | scheduling.openship.org | Docs |
| Openfront Social | Creator community and posts | openfront-social | social.openship.org | Docs |
| Openfront Rideshare | Rides, drivers and dispatch | openfront-rideshare | rideshare.openship.org | Docs |
| Openfront Airline | Flights, booking and passenger operations | openfront-airline | airline.openship.org | Docs |
| Openfront Hospital | Appointments, patients and care teams | openfront-hospital | hospital.openship.org | Docs |
| Openfront Sportsbook | Markets, bets and results | openfront-sportsbook | sportsbook.openship.org | Docs |
| Openfront Financial | Accounts, portfolios and advisory | openfront-financial | financial.openship.org | Docs |
| Openfront Analytics | Privacy-friendly website analytics | analytics | analytics.openship.org | Docs |
| Openship | Order routing from sales channels to fulfillment | openship | os.openship.org | Docs |
| Marketplace | Shop across Openfront stores | marketplace | marketplace.openship.org | Docs |
Manage commissions, clients, storefront, appointments, catalog, resources, schedules, checkout, engagement, integrations, inventory, benefits through dedicated dashboard workspaces and permission-controlled data screens.
Public routes include /services, /providers, /book, /appointments, /account, gift cards, gallery, and reviews. Appointment and treatment-plan journeys connect client booking to practice workflows.
Coordinate provider availability, resources, appointment reservations, waitlists, clients, checkout, retail sales, and reports.
Manage consultations, treatment plans, clinical orders, provider credentials and authorization, consent versions, treatment sessions, administrations, and signed records. Clinical execution remains subject to recorded authority and readiness checks.
Track inventory custody, lots, receiving, recalls, packages, memberships, loyalty, follow-up, incidents, and commissions. Medical use requires jurisdiction-specific clinical policy, approved infrastructure, and professional review.
- Frontend: Next.js 16 with App Router and React 19.
- Backend: KeystoneJS 6 with a GraphQL API.
- Database: PostgreSQL with Prisma ORM.
- Styling: Tailwind CSS 4 and shared shadcn/ui components.
- Authentication: Password-based user accounts and session-based access with role capabilities.
openfront-medspa/
├── app/ # Public pages, dashboard routes, and HTTP endpoints
├── features/
│ ├── keystone/ # Backend models, access rules, and GraphQL workflows
│ ├── platform/ # Operator workspaces and onboarding
│ ├── storefront/ # Public application components and screens
│ └── dashboard/ # Authentication and shared dashboard shell
└── components/ # Shared UI components
The model registry and Prisma schema cover:
- Practices, locations, memberships, providers, credentials, schedules, and resources.
- Clients, appointments, consultations, treatment plans, clinical orders, consent, and sessions.
- Products, vendors, purchasing, receiving, inventory lots, movements, and recalls.
- Transactions, payments, refunds, memberships, packages, gift cards, commissions, follow-up, and governance records.
- Node.js 22, compatible with the package requirements and Next.js 16.
- A PostgreSQL database you can migrate.
- npm.
- Working S3-compatible storage, including its endpoint and credentials.
-
Clone and install dependencies:
git clone https://github.com/openshiporg/openfront-medspa.git cd openfront-medspa npm install -
Configure environment variables: Create a local
.envfile using the runtime configuration as the authority.DATABASE_URL=postgresql://user:password@host/database SESSION_SECRET=replace-with-a-new-private-random-secret S3_BUCKET_NAME=your-bucket S3_REGION=your-region S3_ACCESS_KEY_ID=your-access-key S3_SECRET_ACCESS_KEY=your-secret-key
Generate the session secret with
openssl rand -hex 32; use the generated value, not the placeholder. Never commit.env.This app also requires working S3-compatible storage at configuration load time. Supply the bucket, region, credentials, and endpoint according to runtime configuration; the endpoint is configured separately from the four storage values above.
-
Start development server:
npx keystone build --no-ui npm run migrate npm run dev
Apply migrations explicitly: the development script prepares the backend schema and starts Next.js, but does not apply database migrations.
-
Access the application: Open the URL
npm run devprints, then use these paths:- Public application:
/ - Admin dashboard:
/dashboard - GraphQL API:
/api/graphql
- Public application:
-
Create your first admin user: Visit
/dashboard/initon an empty database to create the initial administrator, then sign in to the dashboard. -
Run application onboarding: Run practice onboarding, then review practice membership, locations, provider credentials, service eligibility, schedules, resources, clinical policies, and checkout configuration.
npm run dev- Prepare the backend schema, and start Next.js development.npm run build- Build the backend and Next.js for production; does not apply migrations.npm start- Start the production Next.js server.npm run migrate:gen- Prepare the schema and generate/apply development migrations.npm run migrate- Apply checked-in Prisma migrations.npm run lint- Run the repository's ESLint script.npm run test- Run the repository's configured test suite.
Use a disposable development database for migration generation. Review the script before running it against any existing data.
The payment loader includes manual and Stripe adapters. The registered clinical commands cover treatment authority, plan approval, consent, safety, and clinical record actions; a payment does not confer treatment authorization.
The backend models, registered business workflows, access rules, and application routes document the implementation in this repository.
canAccessDashboard- Access dashboard.canSchedule- Schedule.canReadClients- Read clients.canManageClinical- Manage clinical.canManageSensitiveRecords- Manage sensitive records.canManageInventory- Manage inventory.canManageFinance- Manage finance.
- Session-based authentication for signed-in users.
- Backend list access and workflow authorization, rather than dashboard visibility alone.
- Current-actor checks bind active users and roles to a practice. Scheduling, client reads, clinical operations, sensitive records, inventory, and finance are separate capabilities; practice ownership alone is not a claim of clinical licensure.
Review the access implementation and individual workflow checks before extending permissions.
- Commissions:
/dashboard/platform/commissions. - Clients:
/dashboard/platform/clients. - Storefront:
/dashboard/platform/storefront. - Appointments:
/dashboard/platform/appointments. - Catalog:
/dashboard/platform/catalog. - Resources:
/dashboard/platform/resources. - Schedules:
/dashboard/platform/schedules. - Checkout:
/dashboard/platform/checkout. - Engagement:
/dashboard/platform/engagement. - Integrations:
/dashboard/platform/integrations. - Inventory:
/dashboard/platform/inventory. - Benefits:
/dashboard/platform/benefits.
Public routes include /services, /providers, /book, /appointments, /account, gift cards, gallery, and reviews. Appointment and treatment-plan journeys connect client booking to practice workflows.
Coordinate provider availability, resources, appointment reservations, waitlists, clients, checkout, retail sales, and reports.
The Vercel button imports this application's own repository. Provision PostgreSQL and configure the application's complete runtime requirements, storage, mail, and enabled providers before building. Importing the source does not configure these services or grant regulatory approval.
Build the application and apply checked-in migrations as a release step before starting the server. Back up existing data before migration.
npm run build
npm run migrate
npm startThe included Railway configuration defines this app's build and startup lifecycle. Provision services and secrets separately.
Keep the shared PostgreSQL database, session secrets, and configured object storage consistent across application processes. Review background delivery and integration requirements before choosing a serverless runtime; a source import does not supply persistent workers.
Use the development commands above when preparing changes. Keep model changes and their migrations together, and describe workflow and permission changes in pull requests.
No top-level license file or package license declaration is included in this repository.
- Documentation: Source models and workflows.
- Issues: Report bugs and feature requests.
- Product: Learn more about Openfront Med Spa.
Built with Next.js and KeystoneJS.