Prompt Details
Model
(claude-5-sonnet)
Token size
1,456
Example input
[Website Name]: ProStay Hub
[Describe what the website should achieve]: Streamline operations for independent hotels, boutique resorts, and vacation rentals through unified booking, housekeeping, guest communication, revenue optimization, and staff scheduling
[Consumers / Businesses / Enterprise / Students / etc.]: Hotel owners (1โ500 rooms), property managers, boutique resorts, vacation rental operators, hospitality staff, corporate travel coordinators
[Home / About / Services / Pricing / Blog / Contact / Dashboard / etc.]: Landing & Pricing Property Dashboard Booking Calendar & Management Guest Portal Staff Scheduling & Tasks Housekeeping & Maintenance Revenue Management Guest Communication Hub Financial Reports & Analytics Integrations Marketplace Admin Control Panel Mobile Staff App Property Settings
[Authentication / Payments / Booking / Chat / CMS / Search / Forms / Analytics / etc.]: Multi-property management Channel Manager (OTA sync: Booking.com, Airbnb, Expedia) Dynamic pricing engine Guest pre-check-in & mobile key Housekeeping task automation Staff scheduling & performance tracking In-app guest messaging Payment processing & invoicing Revenue forecasting Third-party integrations (PMS API, payment gateways, email, SMS) Real-time occupancy analytics Automated guest reviews collection
Example output
## OUTPUT
### ๐ SECTION 1 โ Business & Requirements Analysis
**๐ฏ Executive Project Summary:**
โข ProStay Hub is an all-in-one hospitality management SaaS eliminating fragmented spreadsheets and legacy PMS systems
โข ๐ต Revenue model: Subscription tiers based on room count ($49/mo for 1โ10 rooms โ $299/mo for 100+ rooms) + 2โ5% commission on upsell services (cleaning, maintenance, guest experiences)
โข ๐ฏ Target: $200K MRR within 24 months; 2,500+ properties; 250K+ managed rooms
โข ๐ Key differentiator: AI-driven dynamic pricing + automated OTA synchronization eliminates double-bookings and manual channel management (save property managers 10+ hours/week)
โข ๐ Primary KPIs: ARR growth, property retention (target >95%), average revenue per property, NPS score, feature adoption rate
**โ
Functional Requirements:**
โข ๐๏ธ Central booking calendar synced to Booking.com, Airbnb, Expedia (real-time availability sync)
โข ๐ฐ Dynamic pricing engine: Adjust rates based on demand, occupancy, seasonality, competitor pricing
โข ๐ฅ Guest management: Pre-check-in via mobile link, digital waiver signing, guest preferences storage
โข ๐ Mobile key: Smartphone digital lock codes; no physical keys needed
โข ๐งน Housekeeping automation: Auto-assign cleaning tasks post-checkout; photo verification of room cleanliness
โข ๐จโ๐ผ Staff scheduling: Shift creation, time tracking, performance metrics, payroll integration
โข ๐ฌ Guest communication: In-app messaging, SMS alerts, automated check-in/check-out reminders
โข ๐ณ Payment processing: Secure payment capture, invoice generation, multi-currency support
โข ๐ Analytics: Occupancy rates, ADR (Average Daily Rate), revenue forecasting, LOS (Length of Stay) analysis
โข ๐ API integrations: Stripe, Twilio, SendGrid, Google Meet (for video walkthroughs)
**โ๏ธ Technical Constraints:**
โข โก Sub-500ms response times for booking calendar (PostgreSQL indexing, Redis caching of occupancy)
โข ๐ฑ Mobile-responsive staff app for field operations (housekeeping checks, maintenance reporting)
โข ๐ OTA sync: Real-time channel manager updates to prevent overbooking (<5-min latency)
โข ๐ Payment compliance: PCI DSS Level 1, SOC 2 Type II
โข ๐ Multi-timezone support (properties across 180+ countries)
โข ๐ Handle 100K+ concurrent bookings during peak seasons
---
### ๐๏ธ SECTION 2 โ System Architecture
**๐จ Frontend Architecture:**
โข SvelteKit (full-stack, server-side rendering for SEO + performance)
โข ๐ญ Component library: Skeleton UI (Svelte-native accessibility-first components)
โข ๐ State management: SvelteStore (lightweight, built-in to Svelte)
โข ๐ Charting: Chart.js + Svelte wrapper for revenue dashboards, occupancy visualizations
โข ๐ฑ Mobile staff app: Svelte Native (cross-platform iOS/Android from Svelte code)
โข ๐๏ธ Calendar: FullCalendar.js with custom Svelte adapter for drag-drop booking management
โข ๐บ๏ธ Maps: Leaflet.js for multi-property location visualization
**๐ง Backend Architecture:**
โข Python microservices (Django REST Framework):
- ๐ค Auth Service (JWT + OAuth2 Google/Microsoft SSO for enterprise)
- ๐
Booking Service (reservations, cancellations, modifications)
- ๐ Channel Manager Service (OTA synchronization: Booking.com, Airbnb, Expedia APIs)
- ๐ฐ Revenue Manager Service (dynamic pricing engine, forecasting)
- ๐ฅ Guest Service (profiles, preferences, communication history)
- ๐จโ๐ผ Staff Service (scheduling, time tracking, performance)
- ๐งน Operations Service (housekeeping tasks, maintenance requests)
- ๐ณ Payment Service (Stripe integration, invoicing, reconciliation)
- ๐ Analytics Service (occupancy, revenue, KPI aggregation)
- ๐ง Notification Service (email, SMS, push notifications)
- ๐ Integration Service (API marketplace, webhook management)
โข Message Queue: Celery + Redis for async tasks (channel sync, invoice generation, guest notifications)
โข Cache Layer: Redis for session management, frequently accessed property settings, real-time occupancy
โข Search: Elasticsearch for guest reservation history search, staff activity logs
**๐๏ธ Architecture Diagram:**
```
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ SvelteKit Client + Mobile App โ
โ (Dashboard, Calendar, Staff Tasks) โ
โโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโ
โ DigitalOcean CDN โ
โ (Static Assets) โ
โโโโโโโโโโโโโโฌโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโ
โ API Gateway โ
โ (Rate Limiting) โ
โโโโโโโโโโโโโโฌโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ DigitalOcean App Platform โ
โ (Django Microservices) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โข Auth Service โ
โ โข Booking Service โ
โ โข Channel Manager โ
โ โข Revenue Manager โ
โ โข Guest Service โ
โ โข Staff Service โ
โ โข Operations Service โ
โ โข Payment Service โ
โ โข Analytics Service โ
โ โข Notification Service โ
โโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ PostgreSQL Managed DB โ
โ Redis Cache โ
โ DigitalOcean Spaces (Storage) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ External APIs โ
โ โข Booking.com (OTA) โ
โ โข Airbnb (OTA) โ
โ โข Expedia (OTA) โ
โ โข Stripe (Payments) โ
โ โข Twilio (SMS) โ
โ โข SendGrid (Email) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
```
**๐ก APIs:**
โข REST endpoints for property, booking, guest, staff management
โข GraphQL layer for complex queries (multi-property analytics, guest history)
โข WebSocket for real-time occupancy updates, booking notifications
โข Webhook endpoints for OTA updates (new bookings, cancellations from Booking.com/Airbnb)
---
### ๐จ SECTION 3 โ UI/UX Design Strategy
**๐จ Design System:**
โข ๐ต Primary: Professional Blue (#2563EB)
โข ๐ข Success: Green (#10B981)
โข ๐ Warning: Amber (#F59E0B)
โข ๐ด Danger: Red (#EF4444)
โข โช Neutral: Gray scale (#F3F4F6 light, #1F2937 dark)
โข ๐ Dark Mode: Default for evening shifts; toggle available
**โ๏ธ Typography:**
โข Headings: **IBM Plex Sans** (semi-bold, 24pxโ42px)
โข Body: **Inter** (regular, 13pxโ15px, perfect for dense information dashboards)
โข Data numbers: **IBM Plex Mono** (monospace, 12pxโ14px for occupancy, revenue figures)
โข Labels: **IBM Plex Sans** (medium, 12px, uppercase tracking 0.5px)
**๐ฑ Responsive Breakpoints:**
โข ๐ฑ Mobile (320pxโ480px): Single-column calendar, stacked task cards, full-width buttons
โข ๐ฑ Tablet (480pxโ1024px): Two-column layouts (property selector + calendar)
โข ๐ฅ๏ธ Desktop (1024px+): Three-column dashboard (properties list + calendar + analytics sidebar)
**โฟ Accessibility:**
โข WCAG 2.1 AA+ compliance (contrast ratio 7:1 minimum)
โข Keyboard shortcuts: J/K for next/prev date, E for edit booking, A for add guest note
โข Screen reader optimization: Aria-labels for chart bars, skip links, semantic HTML5
โข Color-blind mode: Patterns + labels (not color-only information)
โข Motion: Reduced motion support for animations, transitions
---
### ๐ SECTION 4 โ Website Structure
**๐บ๏ธ Sitemap:**
```
/ (Landing page + feature showcase)
โโ /pricing (SaaS subscription tiers)
โโ /signup (Property manager registration)
โโ /app (Authenticated dashboard hub)
โ โโ /properties (manage multiple properties)
โ โโ /calendar (booking calendar view)
โ โ โโ /calendar/:property_id (single property detail)
โ โ โโ /bookings/:booking_id (edit reservation)
โ โโ /guests (guest profiles, history, preferences)
โ โ โโ /guests/:guest_id/history (booking history, communication log)
โ โโ /staff (schedule, performance, payroll)
โ โ โโ /staff/schedule (shift planning)
โ โ โโ /staff/:staff_id/performance (KPIs, ratings)
โ โโ /housekeeping (cleaning tasks, inspections)
โ โ โโ /tasks/:task_id (photo verification, completion)
โ โโ /revenue (pricing, forecasting, reports)
โ โ โโ /pricing-rules (dynamic pricing setup)
โ โ โโ /forecasts (30/60/90 day revenue projections)
โ โโ /channels (OTA synchronization: Booking.com, Airbnb, Expedia)
โ โโ /communications (guest messages, automated reminders)
โ โโ /analytics (occupancy, ADR, LOS, forecasting)
โ โ โโ /custom-reports (build custom date range reports)
โ โโ /integrations (API marketplace, webhook setup)
โ โโ /settings (property details, staff permissions, payment methods)
โ โโ /billing (invoice history, subscription management)
โโ /guest-app (Public guest portal)
โ โโ /check-in (pre-check-in, mobile key request)
โ โโ /messages (in-app messaging with property)
โ โโ /services (book add-on services: spa, dining, tours)
โ โโ /feedback (rate stay, leave review)
โโ /staff-mobile (Mobile staff app)
โ โโ /tasks (daily housekeeping checklist)
โ โโ /maintenance (report issues with photos)
โ โโ /time-tracking (clock in/out, shifts)
โโ /admin (Platform admin control panel)
โ โโ /platform-analytics (all-property metrics)
โ โโ /customers (property management, upgrades, billing)
โ โโ /support (customer tickets, feature requests)
โโ /blog (hospitality tips, case studies, webinars)
โโ /integrations-marketplace (partner APIs, plugins)
โโ /contact (sales, support)
```
**๐ค User Flows:**
โข **Property Manager Onboarding:** Sign up โ Add property details โ Connect OTA channels (Booking.com API) โ Invite staff โ Configure pricing rules โ Launch
โข **Daily Operations:** Log in โ View today's bookings โ Assign housekeeping tasks โ Monitor check-ins โ Handle guest messages โ Update revenue forecast
โข **Guest Journey:** Receive pre-check-in link (72h before arrival) โ Upload ID/payment info โ Receive mobile key โ Message property โ Check out
โข **Staff Task Completion:** Receive daily cleaning checklist โ Photo verification (before/after room photos) โ Mark tasks complete โ Submit maintenance requests
---
### โ๏ธ SECTION 5 โ Backend & API Design
**๐ Core REST Endpoints:**
```python
# Auth
POST /api/auth/register # Property manager signup
POST /api/auth/login # Email/password login
POST /api/auth/oauth/microsoft # Microsoft/Office 365 SSO
POST /api/auth/logout # Revoke session
# Properties
POST /api/properties # Add new property
GET /api/properties # List all properties (multi-tenant)
GET /api/properties/:id # Property details (rooms, amenities)
PATCH /api/properties/:id # Update property settings
DELETE /api/properties/:id # Archive property
# Bookings & Reservations
POST /api/bookings # Create manual booking
GET /api/bookings?property_id=X&date_from=2024-01-01 # Calendar data
GET /api/bookings/:id # Booking details + guest info
PATCH /api/bookings/:id # Modify dates, rates, guest notes
DELETE /api/bookings/:id # Cancel reservation (calculate refund policy)
POST /api/bookings/:id/check-in # Mark checked-in, unlock door
POST /api/bookings/:id/check-out # Finalize stay, send receipt
# Channel Manager (OTA Sync)
POST /api/channels/connect # OAuth connect Booking.com/Airbnb
GET /api/channels/status # Sync status for each OTA
POST /api/channels/sync-now # Force manual sync
GET /api/channels/sync-logs # View sync history, error logs
# Guests
GET /api/guests?property_id=X # Guest list with stay history
GET /api/guests/:id/history # Previous bookings, preferences, notes
POST /api/guests/:id/preferences # Store room preferences, dietary needs
GET /api/guests/search?name=John # Quick guest lookup
# Dynamic Pricing
GET /api/pricing/recommendations # AI-suggested rates based on demand
POST /api/pricing-rules # Set seasonal rates, occupancy-based pricing
GET /api/pricing-rules/:id # Pricing rule details
# Housekeeping & Operations
GET /api/tasks/today # Daily checklist for cleaning staff
POST /api/tasks/:id/complete # Mark room cleaned (with photo proof)
GET /api/inspections # QA inspection history
POST /api/maintenance-requests # Report broken AC, leaky faucet, etc.
# Staff Management
POST /api/staff # Add staff member
GET /api/staff # List team members
PATCH /api/staff/:id # Update role, permissions
GET /api/staff/:id/schedule # View assigned shifts
POST /api/staff/:id/time-tracking # Clock in/out logs
# Guest Communication
POST /api/messages # Send message to guest
GET /api/messages?booking_id=X # Conversation history
POST /api/messages/:id/read # Mark message read
WebSocket /ws/messages/:booking_id # Real-time messaging
# Payments & Invoicing
POST /api/payments/process # Charge guest card via Stripe
GET /api/invoices # Invoice history
POST /api/invoices/:id/send # Email invoice to guest
GET /api/accounting/revenue # Monthly revenue breakdown
# Revenue Analytics
GET /api/analytics/occupancy?property_id=X&period=month # Occupancy %
GET /api/analytics/adr # Average Daily Rate trends
GET /api/analytics/revpar # Revenue Per Available Room
GET /api/forecasts/revenue # 30/60/90 day projections
# Integrations
GET /api/integrations/marketplace # Available partner APIs
POST /api/webhooks # Subscribe to Booking.com new-booking event
```
**๐ค Dynamic Pricing Logic:**
โข **Inputs:** Current occupancy, length of stay, day of week, season, competitor pricing, special events (festivals, conferences), historical booking velocity
โข **Algorithm:** Machine learning model (scikit-learn Random Forest Regressor)
- High occupancy (>80%) + low LOS โ raise rates +15โ25%
- Low occupancy (<40%) + mid-week โ lower rates โ10โ20%
- Special events: detect high demand days, suggest premium pricing
โข **Output:** Daily rate recommendations; property manager can override
โข **Retraining:** Weekly batch job using historical booking data
**โ Error Handling:**
โข ๐ด 400 Bad Request: Invalid check-in date (before current date)
โข ๐ 401 Unauthorized: API token expired, SSO session invalid
โข ๐ฐ 402 Payment Required: Subscription expired or payment method declined
โข ๐ซ 403 Forbidden: Staff member lacks permission to view guest data
โข โ ๏ธ 409 Conflict: Double-booking detected (room already reserved for dates)
โข โก 429 Too Many Requests: Rate limit (1000 req/min per property)
โข ๐ 503 Service Unavailable: OTA sync service offline (graceful fallback to cached data)
---
### ๐๏ธ SECTION 6 โ Database Design
**๐ Core Tables:**
```sql
-- Users & Tenants
users (
id UUID PRIMARY KEY,
email VARCHAR UNIQUE NOT NULL,
password_hash VARCHAR,
oauth_provider VARCHAR,
oauth_id VARCHAR,
first_name VARCHAR,
last_name VARCHAR,
role ENUM ('property_manager', 'staff', 'admin'),
created_at TIMESTAMP
)
-- Properties (Multi-tenant Core)
properties (
id UUID PRIMARY KEY,
owner_id UUID FOREIGN KEY users(id),
name VARCHAR NOT NULL,
country VARCHAR,
city VARCHAR,
address VARCHAR,
total_rooms INT,
amenities JSONB,
check_in_time TIME,
check_out_time TIME,
cancellation_policy VARCHAR,
currency_code VARCHAR DEFAULT 'USD',
timezone VARCHAR,
stripe_account_id VARCHAR (connected account),
created_at TIMESTAMP
)
-- Rooms/Units
rooms (
id UUID PRIMARY KEY,
property_id UUID FOREIGN KEY properties(id),
room_number VARCHAR UNIQUE NOT NULL,
room_type ENUM ('single', 'double', 'suite', 'deluxe'),
max_occupancy INT,
amenities JSONB,
base_rate_per_night DECIMAL(10,2),
status ENUM ('available', 'maintenance', 'blocked'),
created_at TIMESTAMP
)
-- Bookings/Reservations
bookings (
id UUID PRIMARY KEY,
property_id UUID FOREIGN KEY properties(id),
room_id UUID FOREIGN KEY rooms(id),
guest_id UUID FOREIGN KEY users(id),
check_in_date DATE NOT NULL,
check_out_date DATE NOT NULL,
number_of_guests INT,
nightly_rate DECIMAL(10,2),
total_price DECIMAL(10,2),
status ENUM ('pending', 'confirmed', 'checked_in', 'checked_out', 'cancelled'),
source ENUM ('direct', 'booking.com', 'airbnb', 'expedia'),
source_booking_id VARCHAR,
payment_status ENUM ('unpaid', 'partial', 'paid', 'refunded'),
notes TEXT,
created_at TIMESTAMP,
updated_at TIMESTAMP
)
-- OTA Channel Connections
ota_channels (
id UUID PRIMARY KEY,
property_id UUID FOREIGN KEY properties(id),
channel_name VARCHAR ('booking.com', 'airbnb', 'expedia'),
is_connected BOOLEAN,
api_key VARCHAR (encrypted),
last_sync TIMESTAMP,
sync_status ENUM ('success', 'failed', 'in_progress'),
created_at TIMESTAMP
)
-- Guests
guests (
id UUID PRIMARY KEY,
email VARCHAR UNIQUE NOT NULL,
phone VARCHAR,
first_name VARCHAR NOT NULL,
last_name VARCHAR NOT NULL,
country_of_residence VARCHAR,
id_type VARCHAR ('passport', 'driver_license', 'id_card'),
id_number VARCHAR,
preferences JSONB (e.g., "high floor", "extra pillows", "vegetarian meals"),
total_stays INT DEFAULT 0,
total_spent DECIMAL(12,2) DEFAULT 0,
created_at TIMESTAMP
)
-- Housekeeping Tasks
housekeeping_tasks (
id UUID PRIMARY KEY,
property_id UUID FOREIGN KEY properties(id),
room_id UUID FOREIGN KEY rooms(id),
booking_id UUID FOREIGN KEY bookings(id),
assigned_staff_id UUID FOREIGN KEY users(id),
task_type ENUM ('turnover', 'deep_clean', 'maintenance_check'),
status ENUM ('pending', 'in_progress', 'completed', 'failed_inspection'),
assigned_date DATE,
completed_at TIMESTAMP,
before_photo_url VARCHAR,
after_photo_url VARCHAR,
inspection_notes TEXT,
created_at TIMESTAMP
)
-- Staff Scheduling
staff_shifts (
id UUID PRIMARY KEY,
property_id UUID FOREIGN KEY properties(id),
staff_id UUID FOREIGN KEY users(id),
shift_type ENUM ('morning', 'afternoon', 'evening', 'overnight'),
shift_date DATE,
start_time TIME,
end_time TIME,
status ENUM ('scheduled', 'completed', 'no_show'),
created_at TIMESTAMP
)
-- Guest Messages
messages (
id UUID PRIMARY KEY,
booking_id UUID FOREIGN KEY bookings(id),
sender_id UUID FOREIGN KEY users(id),
sender_type ENUM ('guest', 'property_staff'),
content TEXT NOT NULL,
is_read BOOLEAN DEFAULT FALSE,
created_at TIMESTAMP
)
-- Dynamic Pricing Rules
pricing_rules (
id UUID PRIMARY KEY,
property_id UUID FOREIGN KEY properties(id),
name VARCHAR,
rule_type ENUM ('seasonal', 'occupancy_based', 'length_of_stay', 'day_of_week'),
date_from DATE,
date_to DATE,
multiplier DECIMAL(3,2) (e.g., 1.25 = +25% markup),
condition JSONB (e.g., "occupancy > 80%"),
active BOOLEAN,
created_at TIMESTAMP
)
-- Subscriptions & Billing
subscriptions (
id UUID PRIMARY KEY,
property_id UUID FOREIGN KEY properties(id),
tier ENUM ('starter', 'professional', 'enterprise'),
monthly_price DECIMAL(8,2),
room_count INT,
status ENUM ('active', 'paused', 'cancelled'),
stripe_subscription_id VARCHAR,
renewal_date DATE,
created_at TIMESTAMP
)
-- Invoices & Payments
invoices (
id UUID PRIMARY KEY,
booking_id UUID FOREIGN KEY bookings(id),
property_id UUID FOREIGN KEY properties(id),
amount DECIMAL(10,2),
currency VARCHAR DEFAULT 'USD',
status ENUM ('draft', 'sent', 'paid', 'refunded'),
stripe_payment_intent_id VARCHAR,
issued_at TIMESTAMP,
due_at TIMESTAMP,
paid_at TIMESTAMP,
created_at TIMESTAMP
)
-- Revenue Analytics (Materialized View for Performance)
revenue_daily_summary (
property_id UUID,
date DATE,
occupancy_count INT,
occupancy_percent DECIMAL(5,2),
total_revenue DECIMAL(12,2),
adr DECIMAL(8,2) (Average Daily Rate),
revpar DECIMAL(8,2) (Revenue Per Available Room),
PRIMARY KEY (property_id, date)
)
```
**๐ Indexes:**
โข `bookings(property_id, check_in_date)` โ Calendar queries
โข `bookings(status, check_in_date)` โ Today's check-ins
โข `housekeeping_tasks(property_id, assigned_date)` โ Staff daily checklist
โข `staff_shifts(staff_id, shift_date)` โ Staff schedule
โข `messages(booking_id, created_at)` โ Conversation history
โข `revenue_daily_summary(property_id, date)` โ Analytics dashboard
โข Full-text index on `guests(first_name, last_name, email)` โ Guest search
---
### ๐ SECTION 7 โ Authentication & Security
**๐ Auth Flow:**
โข **Email/Password:**
- Argon2id hashing (memory cost: 64MB, iterations: 3)
- JWT tokens (HS256, 1-hour expiry) + refresh tokens (14-day rotation in httpOnly cookies)
- Password reset: TOTP-based one-time links (15-min expiry), sent via email
โข **OAuth2 / SSO:**
- Microsoft/Office 365 sign-in for enterprise customers
- Google Workspace for small property teams
- Auto-provisioning: Create property manager account on first SSO login
โข **MFA:**
- TOTP (Google Authenticator, Microsoft Authenticator) for admin/property manager accounts
- Biometric unlock for staff mobile app (fingerprint, face ID)
**๐ค Authorization (RBAC):**
โข **Property Manager role:**
- Full access to own properties (bookings, guests, staff, billing)
- Limited visibility: Cannot see other property managers' data
- Can invite staff with limited permissions
โข **Staff roles:**
- Housekeeping: View daily tasks, photo verification, maintenance reports
- Front Desk: Check-in/check-out, guest communication, payment processing
- General Manager: Access all staff functions + revenue reports
- Admin: Platform-level access (customer management, billing, support)
โข **Guest role:**
- Access own reservation (check-in, messages, services)
- Cannot view other guests' data
**๐ก๏ธ Data Security:**
โข **Transport:** HTTPS/TLS 1.3 enforced globally
โข **Payment Data:** PCI DSS Level 1 compliance (Stripe tokenization, no raw CC storage)
โข **Guest Data:** Encrypted at rest (AES-256) and in transit; GDPR Right to Deletion enforced (90-day post-account closure)
โข **API Keys:** Stored in environment variables, rotated quarterly
โข **Rate Limiting:** 1000 requests/min per property (prevent scraping)
โข **SQL Injection Prevention:** Parameterized ORM queries (Django ORM)
โข **CORS:** Restricted to authenticated webapp origin only
โข **Audit Logs:** Track all booking modifications, refunds, staff actions (immutable append-only log)
โข **Backups:** Daily encrypted backups to DigitalOcean Spaces; 30-day retention
โข **Data Residency:** GDPR compliance (EU customer data stored in EU data centers)
---
### โก SECTION 8 โ SEO & Performance
**๐ฏ Core Web Vitals Targets:**
โข ๐ข LCP (Largest Contentful Paint): **<2.0s** (dashboard load)
โข ๐ข FID (First Input Delay): **<80ms** (booking calendar interactions)
โข ๐ข CLS (Cumulative Layout Shift): **<0.05** (dynamic rate updates, notifications)
**๐ SEO Optimization:**
โข Landing page + blog: SvelteKit SSR for First Contentful Paint optimization
โข Dynamic meta tags: Property amenities, customer reviews, case studies
โข Structured data (JSON-LD):
- Organization schema (company info, social profiles)
- LocalBusiness schema for properties (name, address, phone, rating)
- FAQPage schema (common hospitality questions)
- Review schema (customer testimonials, ratings)
โข Sitemap.xml: Updated daily; robots.txt indexes pricing, blog, not private dashboards
โข Blog SEO: Topic clusters (hospitality management, revenue optimization), internal linking
**โก Performance Tactics:**
โข **Image Optimization:**
- WebP + AVIF with JPG fallback
- Responsive images: srcset for mobile/tablet/desktop
- Lazy loading for below-fold property photos
- Room images cached on CDN: 90-day TTL
โข **Calendar Optimization:**
- Virtual scrolling (render only visible months)
- Infinite scroll pagination for guest list
- Debounced API calls on date range changes
โข **Caching Strategy:**
- Browser cache: 24-hour TTL for property settings, staff list
- Redis cache: 5-min TTL on occupancy data (invalidate post-booking)
- CDN cache: 24-hour TTL for static assets (CSS, JS bundles)
- Database: Materialized view for daily revenue summary (updated nightly)
โข **Database Optimization:**
- Connection pooling: pgBouncer (30 connections)
- Prepared statements to reduce query compilation
- N+1 prevention: Batch load related data (booking + guest in single query)
- Query timeout: 5-second limit to prevent slow queries blocking app
โข **DigitalOcean Scaling:**
- App Platform: Auto-scaling (1โ10 containers) based on CPU/memory
- PostgreSQL: Read replicas for analytics queries; automatic failover replica for HA
- Spaces CDN: Automatically scaled to handle 10K+ concurrent downloads (photos, documents)
---
### ๐งช SECTION 9 โ Testing & Deployment
**โ
Testing Stack:**
โข **Unit Tests:** pytest (Django business logic, pricing calculations)
- OTA channel sync logic (detect double-bookings, rate conflicts)
- Dynamic pricing algorithm (test rate recommendations)
- Refund policy calculations (test cancellation rules)
โข **Integration Tests:** pytest + PostgreSQL test fixtures
- Create booking โ trigger housekeeping task โ complete task โ verify room status
- Connect OTA channel โ fetch bookings โ sync to local DB
- Process payment โ generate invoice โ send email
โข **E2E Tests:** Playwright (critical user journeys)
- Property manager: Sign up โ add property โ create booking โ check-in guest
- Guest: Receive pre-check-in link โ upload ID โ unlock door โ message property
- Staff: Receive daily tasks โ photo verification โ mark complete
โข **Load Testing:** k6 (Grafana Labs)
- Simulate 1K concurrent property managers viewing booking calendar
- OTA sync: 100 simultaneous channel syncs during peak hours
- Target: Sub-500ms response times for calendar queries
โข **Security Testing:**
- OWASP ZAP scanning (XSS, SQL injection, CSRF)
- Automated credential scanning (API keys, DB passwords)
- Manual penetration testing (quarterly)
โข **Coverage Target:** 75% for payment, booking, OTA sync logic; 50% for UI
**๐ CI/CD Pipeline (GitHub Actions):**
```yaml
on: [pull_request, push to main]
jobs:
test:
- Lint (Ruff for Python, ESLint for Svelte)
- Unit tests + coverage (pytest)
- Type check (mypy for backend)
- Integration tests (PostgreSQL test container)
- E2E tests (Playwright)
- Security scan (Snyk, OWASP ZAP)
deploy:
- Build SvelteKit + Django Docker images
- Push to DigitalOcean Container Registry
- Deploy to App Platform (blue-green)
- Run smoke tests (5-min synthetic checks)
- Rollback on error rate spike >5% or latency >1s
deployment window: 8 minutes
post-deploy:
- Datadog alerting enabled
- Customer notifications (status page update if downtime)
```
**๐ Production Checklist:**
โข โ
SSL/TLS: Let's Encrypt auto-renewal via DigitalOcean
โข โ
Database: Daily automated backups to Spaces (7-day retention)
โข โ
Monitoring:
- Datadog APM: Trace OTA sync latency, booking API response times
- Custom dashboard: MRR, property retention, occupancy rates, API error rates
- Uptime monitoring: Synthetic checks every 60s on login, booking calendar, checkout
โข โ
Alerting:
- PagerDuty: Error rate spike >5%, payment processing failures, OTA sync down
- Slack notifications: Daily KPI digest, booking milestones, customer churn alerts
โข โ
Disaster Recovery:
- RTO (Recovery Time Objective): <30 minutes
- RPO (Recovery Point Objective): <1 hour (hourly snapshots)
- Failover: Automatic to read replica on primary DB failure
โข โ
Compliance:
- SOC 2 Type II audit (annually)
- PCI DSS Level 1 (payment processing)
- GDPR data processing agreement (EU customers)
---
### ๐ SECTION 10 โ Future Scaling
**๐ฎ Phase 2 (6 Months):**
โข ๐ฑ **Native Mobile Apps** (React Native)
- Property manager: Receive booking notifications, approve guest requests on-the-go
- Guest: Mobile key unlock, check-in photo, communicate with property
- Staff: Offline task synchronization, QR-code room verification
โข ๐ค **AI Concierge Bot**
- Chatbot answers guest FAQs (WiFi password, restaurant recommendations, room controls)
- Powered by LLM with property-specific context (amenities, local events)
- Natural language booking modifications (rephrase: "Check out one day later" โ apply upsell)
โข ๐ **Guest Upsell Services Marketplace**
- In-app booking: Airport transfers, spa services, local tours, restaurant reservations
- Property earns 15โ20% commission on upsells
- Real-time availability sync with service providers
โข ๐ **Multi-Property Reporting**
- Consolidated dashboards for hotel chains (10+ properties)
- Benchmark performance: Compare occupancy rates, ADR across properties
**๐ฎ Phase 3 (12 Months):**
โข ๐ฏ **Smart Revenue Optimization**
- Predictive LOS (Length of Stay) demand forecasting
- Auto-adjust cancellation policies based on booking velocity
- Package deals (multi-night + upsell bundles) recommendation engine
โข ๐ **Global Expansion**
- Multi-language UI (DE, FR, ES, ZH, JA)
- Local payment gateways (Alipay, WeChat Pay, regional card schemes)
- Tax compliance per jurisdiction (VAT, GST, municipal taxes)
โข ๐ **API Ecosystem**
- White-label PMS for hotel chains (license software with custom branding)
- Partner marketplace: Connect third-party apps (accounting, HR, maintenance software)
- Webhooks for customer integrations (sync bookings to Salesforce, HubSpot)
โข ๐ **Business Intelligence**
- Historical trends: 3โ5 year occupancy/revenue analysis
- Predictive analytics: Forecast guest churn, lifetime value
- Benchmarking reports: Compare performance vs. competitive market data
**๐ก Monitoring & Analytics:**
โข **Amplitude:** Feature adoption tracking
- Pricing rule usage, OTA channel connections, housekeeping task completion rates
- Churn analysis: Which feature gaps lead to cancellations?
โข **Sentry:** Error tracking + performance profiling
- Real user monitoring (RUM) for guest app
- Transaction waterfall for slow OTA sync operations
โข **Datadog:** Infrastructure + application metrics
- App Platform container health, PostgreSQL query performance
- Custom metrics: Booking conversion rate, guest message response time, occupancy forecast accuracy
โข **Custom Dashboards:**
- ARR, MRR, customer acquisition cost (CAC), lifetime value (LTV)
- Top 20 properties by revenue, occupancy, NPS scores
- Feature adoption: % of properties using dynamic pricing, OTA sync, mobile key
---
**END SAMPLE TEST #4**
By purchasing this prompt, you agree to our terms of service
CLAUDE-5-SONNET
This prompt acts as a Principal Full-Stack Software Architect, transforming any website idea into a complete implementation blueprint. It designs the frontend, backend, APIs, database, authentication, CMS, SEO, DevOps, testing, deployment, and scalability strategyโready for developers or AI coding assistants to build.
๐จ UI/UX & responsive design strategy
โ๏ธ Backend & API architecture
๐๏ธ Database & CMS design
๐ Authentication & security framework
๐ SEO & performance optimization
๐ Deployment
...more
Added 15 hours ago
