About this project
The Challenge
Running multiple housing properties is a logistical nightmare involving manual attendance tracking, disjointed billing, and massive food wastage due to inaccurate meal planning. Existing software lacked advanced automation, multi-tenant support for a single owner, and intelligent forecasting.
Stayora was built to solve this by consolidating all operations—inventory, subscriptions, residents, and menus—under one unified dashboard, enhanced with machine learning models that automatically track attendance and predict exact food requirements.
Engineering & Architecture
Stayora was designed from the ground up for scalability, utilizing a containerized microservices architecture. The system effortlessly manages real-time state via React Query and Zustand while the Django backend orchestrates complex RBAC, Razorpay subscription billing, and AI inference pipelines.
System Architecture
Key Features
Face Recognition Attendance
Utilizing InsightFace to extract 512-dimensional facial embeddings, residents can securely mark entry and exit by scanning their faces via the frontend webcam interface.
AI Meal Prediction
A Scikit-Learn Random Forest classifier analyzes historical attendance, weather patterns, and the day of the week to predict exact meal counts, drastically reducing food waste.
Multi-Tenant RBAC
Complete Role-Based Access Control allowing owners to effortlessly switch contexts between multiple properties without needing separate logins.
Smart Inventory Tracking
Centralized tracking of groceries and supplies, with automated critical alerts triggered when stock levels dip below dynamically configured minimum thresholds.
Razorpay Payment Gateway
Razorpay Standard Checkout wired end-to-end: the Django backend creates the order and derives the amount, the browser only ever sees the public key id, and every payment is confirmed with an HMAC-SHA256 signature check before a plan is activated.
Subscriptions & Plan Gating
BASIC, STANDARD and PREMIUM tiers with 30-day renewals and a full payment ledger — middleware dynamically locks AI attendance and analytics behind the tier that owns them.