How gentlemoo/lyseum works
Lyseum Hotel is a server-rendered hotel website, booking engine, and staff operations system. The main guest journey runs from public room and date search through booking creation, inventory claims, and optional online payment; staff manage bookings, hotel operations, content, and settings through the admin, while authentication and middleware protect those actions. CMS, chat, weather, channel-manager synchronization, backups, and durable jobs are additional capabilities. Arrows are limited to relationships visible in the excerpts, SOURCE INDEX references, or README; some unsampled feature wiring is therefore not shown.
Main entry points: service.ts Booking service · handlers.ts Job handlers · app.ts Express application · router.ts Staff admin
Components 34
Website and CMS
- Public site
src/modules/public/routes.ts - CMS pages
src/modules/cms/pages.ts - Support chat
src/modules/chat/service.ts - Weather
src/modules/weather/service.ts
Booking and Payments
- Booking service
src/modules/booking/service.ts - Inventory availability
src/modules/booking/availability.ts - Booking pricing
src/modules/booking/pricing.ts - Booking states
src/modules/booking/states.ts - Payment service
src/modules/payments/service.ts - Stripe
src/modules/payments/stripe.ts - PayPal
src/modules/payments/paypal.ts - Payment webhooks
src/modules/payments/webhooks.ts
Staff and Security
- Staff admin
src/modules/admin/router.ts - Hotel operations
src/modules/admin/operations.ts - Content management
src/modules/admin/content.ts - Booking management
src/modules/admin/bookings.ts - Staff authentication
src/modules/auth/routes.ts - Request security
src/middleware/core.ts
Operations and Integrations
- Channel managers
src/integrations/channel.ts - Backup and restore
src/modules/backups/service.ts - Job handlers
src/jobs/handlers.ts - Durable job queue
src/jobs/queue.ts - Email delivery
src/lib/mailer.ts
Shared Platform
- Express application
src/app.ts - Server process
src/server.ts - MySQL database
src/db/knex.ts - Business settings
src/lib/settings.ts - Audit log
src/lib/audit.ts - Environment config
src/config/env.ts
Other components
- Guest
- Stripe and PayPal
- External channel services
- Weather provider
- Optional AI provider
Connections 37
- Guest → Public site: browses and books
README.md - Public site → CMS pages: loads published pages
src/modules/public/routes.ts - Public site → Booking service: searches and creates
src/modules/public/routes.ts - Booking service → Inventory availability: checks and claims
src/modules/booking/service.ts - Booking service → Booking pricing: uses pricing
src/modules/booking/service.ts - Booking service → Booking states: uses states
src/modules/booking/service.ts - Booking service → Durable job queue: enqueues email
src/modules/booking/service.ts - Payment service → Booking service: settles booking
src/modules/payments/service.ts - Payment service → Stripe: starts checkout
src/modules/payments/service.ts - Payment service → PayPal: starts checkout
src/modules/payments/service.ts - Payment service → Stripe and PayPal: charges through
README.md - Express application → Payment webhooks: mounts routes
src/app.ts - Staff admin → Booking management: registers routes
src/modules/admin/router.ts - Staff admin → Content management: registers routes
src/modules/admin/router.ts - Staff admin → Hotel operations: registers routes
src/modules/admin/router.ts - Staff admin → Staff authentication: registers routes
src/modules/admin/router.ts - Staff authentication → MySQL database: reads and writes
src/modules/auth/routes.ts - Staff authentication → Audit log: records events
src/modules/auth/routes.ts - Staff authentication → Email delivery: queues reset email
src/modules/auth/routes.ts - Express application → Staff admin: mounts routes
src/app.ts - Express application → Public site: mounts routes
src/app.ts - Express application → Request security: uses middleware
src/app.ts - Server process → Express application: starts
src/server.ts - Server process → Job handlers: registers jobs
src/server.ts - Job handlers → Durable job queue: registers handlers
src/jobs/handlers.ts - Job handlers → Channel managers: syncs bookings
src/jobs/handlers.ts - Job handlers → Weather: refreshes weather
src/jobs/handlers.ts - Job handlers → Backup and restore: runs backup jobs
src/jobs/handlers.ts - Job handlers → Email delivery: sends queued email
src/jobs/handlers.ts - Durable job queue → MySQL database: stores job state
src/jobs/queue.ts - Business settings → MySQL database: reads and writes
src/lib/settings.ts - MySQL database → Environment config: gets connection config
src/db/knex.ts - Express application → MySQL database: uses database
src/app.ts - Channel managers → External channel services: syncs inventory
README.md - Weather → Weather provider: fetches forecasts
README.md - Support chat → Optional AI provider: may query
README.md - Support chat → Booking service: checks booking info
src/modules/chat/service.ts