Openfront Airline is a self-hostable airline retailing and passenger-service application. Customers can explore flight options and manage bookings, while airline teams manage network schedules, dated flights, inventory, offers, passengers, departures, payments, and disruption recovery.
Documentation: docs.openship.org/docs/openfront/airline
- Set
DATABASE_URL,SESSION_SECRET,S3_BUCKET_NAME,S3_REGION,S3_ACCESS_KEY_ID,S3_SECRET_ACCESS_KEY(andS3_ENDPOINTfor non-AWS storage). - Apply the migrations with
npm run migrate, then start withnpm run build && npm start. - Open
/dashboard, create the first operator, and follow carrier onboarding. The "Full starter network" template loads a working carrier with routes, daily flights and a storefront. - Take card payments: on Payment providers, add a Stripe secret key (
sk_live_…for real charges; Stripe's ownsk_test_…key runs the same code with test cards).
Every Openfront is open source and self-hostable. Each one has its own live site.
| Product | For | Repository | Live site | 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 | 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 (this repository) | 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 settings, offers, disruptions, payments, bookings, store settings, departures, schedules, passengers, inventory, manifests through dedicated dashboard workspaces and permission-controlled data screens.
Public pages include flight discovery, /manage-booking, /manage, /check-in, and /status. Customer booking operations use a record locator together with a private access token.
Configure routes, schedules, dated flights, cabins, fare brands, rules, ancillaries, inventory buckets, and holds. Create offers and bookings with immutable booking lines.
Maintain passengers, travel-document verification, tickets and coupons, seats, check-in, boarding passes, bags, manifests, boarding, and offloading.
Record disruptions, reaccommodation, exchanges, refunds, and settlement evidence. The registered payment adapter is manual reconciliation, not a live card-acquiring or global distribution connection.
- 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-airline/
├── 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:
- Carriers, airports, stations, agents, routes, schedules, and flight instances.
- Cabins, inventory, fares, ancillaries, offers, holds, bookings, and journeys.
- Passengers, documents, tickets, coupons, seats, check-in, boarding, and baggage.
- Payments, reconciliation, exchanges, refunds, disruptions, provider records, credentials, and audit events.
- Node.js 22, compatible with the package requirements and Next.js 16.
- A PostgreSQL database you can migrate.
- npm.
-
Clone and install dependencies:
git clone https://github.com/openshiporg/openfront-airline.git cd openfront-airline npm install -
Configure environment variables:
cp .env.example .env
Review the example configuration and replace its placeholders. Keep only the local settings you need; do not copy production-mode or infrastructure examples unchanged.
DATABASE_URL=postgresql://user:password@host/database SESSION_SECRET=replace-with-a-new-private-random-secret
Generate the session secret with
openssl rand -hex 32; use the generated value, not the placeholder. Never commit.env.Review runtime configuration for additional application settings before building or deploying. Configure enabled integrations separately; the two values above are not a complete production configuration.
Production also requires configured object storage. Set
S3_BUCKET_NAME,S3_REGION,S3_ACCESS_KEY_ID, andS3_SECRET_ACCESS_KEY, and supply the S3-compatible endpoint described in the source. Review mail and application-specific security settings there as well. -
Start development server:
npm run dev
The development script prepares the backend schema, applies checked-in migrations, and starts Next.js.
-
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: Use
/dashboard/initonly when initial operator setup is enabled, as defined in the Keystone configuration. Production setup is explicitly gated; disable initial setup again after creating the first carrier administrator. -
Run application onboarding: Complete carrier onboarding, review network and dated-flight inventory, and configure station authority, provider records, and customer sales settings before opening direct sales.
npm run dev- Prepare the backend schema, apply migrations, and start Next.js development.npm run build- Build the backend and Next.js for production; does not apply migrations.npm start- Validate production runtime requirements and start the web server.npm run migrate:gen- Create migration SQL, run the migration-safety check, then apply development migrations.npm run migrate- Apply checked-in Prisma migrations.npm run lint- Run the repository's ESLint script.npm run typecheck- Run the configured TypeScript check.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 registry includes manual reconciliation only. The airline commands cover booking, flight provisioning, departures, customer access, and disruptions. Configure specialist provider connections explicitly rather than treating ticket or payment records as external execution.
See the Openfront Airline documentation for the application guide. The backend models, registered business workflows, access rules, and application routes document the implementation in this repository.
canAccessDashboard- Access dashboard.canManageNetwork- Manage network.canManageInventory- Manage inventory.canManageBookings- Manage bookings.canManagePassengers- Manage passengers.canManageSecurePassengerData- Manage secure passenger data.
- Session-based authentication for signed-in users.
- Backend list access and workflow authorization, rather than dashboard visibility alone.
- Carrier filters and current-permission checks scope operational data; station-scoped commands add local operating authority. Tenant ownership is immutable once assigned, and customer booking access is separate from operator authority.
Review the access implementation and individual workflow checks before extending permissions.
- Settings:
/dashboard/platform/settings. - Offers:
/dashboard/platform/offers. - Disruptions:
/dashboard/platform/disruptions. - Payments:
/dashboard/platform/payments. - Bookings:
/dashboard/platform/bookings. - Store Settings:
/dashboard/platform/store-settings. - Departures:
/dashboard/platform/departures. - Schedules:
/dashboard/platform/schedules. - Passengers:
/dashboard/platform/passengers. - Inventory:
/dashboard/platform/inventory. - Manifests:
/dashboard/platform/manifests.
Public pages include flight discovery, /manage-booking, /manage, /check-in, and /status. Customer booking operations use a record locator together with a private access token.
Configure routes, schedules, dated flights, cabins, fare brands, rules, ancillaries, inventory buckets, and holds. Create offers and bookings with immutable booking lines.
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.
Hold reaping and unpaid-booking expiry run inside the web process. npm start validates production configuration before starting the web server.
Use the development commands above when preparing changes. Keep model changes and their migrations together, and describe workflow and permission changes in pull requests.
This project is licensed under the MIT License. See LICENSE.
- Documentation: Openfront Airline guide.
- Issues: Report bugs and feature requests.
- Product: Learn more about Openfront Airline.
Built with Next.js and KeystoneJS.