Product Architecture

How Hostela runs your hostel

A clear view of the core flows, the rules engine that keeps state consistent, and the data model behind every screen.

Core operational flow

STEP 1

Discover

Guest searches rooms by type, dates & capacity.

STEP 2

Book

Reservation created, availability locked, payment pending.

STEP 3

Check-in

Reception verifies guest, room set to occupied.

STEP 4

Turnover

On check-out, a housekeeping task is auto-queued.

STEP 5

Analyze

Revenue & occupancy roll up into admin analytics.

Rules engine

Deterministic when → then rules keep rooms, bookings and tasks in sync automatically.

When

Booking confirmed

Then

Room availability decremented + payment marked pending

When

Guest checks in

Then

Room status → occupied, payment → paid

When

Guest checks out

Then

Room status → cleaning, housekeeping task created

When

Cleaning task done

Then

Room status → available, ready to rebook

When

Booking cancelled

Then

Availability released, payment → refunded

Data model

Room

number, type, floor, capacity, price, status

Booking

guest, room, dates, amount, status, payment

Guest

name, contact, country, stays, status

Task

room, type, priority, assignee, status

Staff

name, role, shift, status

Payment

booking, amount, state

Access control matrix

ModuleGuestReceptionHousekeepingAdmin
Browse & book rooms
Manage bookingsOwnAllAll
Guest directory
Housekeeping tasks
Staff management
Analytics