A high-performance, AI-personalized hotel search and booking platform.
Welcome to the WinWin Travel implementation repository. This document serves as the master entry point for the entire project, consolidating all technical guidance, architectural patterns, and implementation hints.
🏁 Ready to build? Use the GENESIS PROMPT to start the platform build cycle.
🤖 For AI Agents: Read the AI Documentation Navigator (MCP Rules) first to understand how to efficiently parse this repository.
The platform is built on a scalable, modular architecture designed for high performance and intelligent personalization.
- Search Orchestrator: The brain of the system; handles fan-out, deduplication, and aggregation.
- Integration Layer: Unified adapter pattern for third-party hotel providers (Hotelbeds, Booking.com, etc.).
- AI Matching Service: Personalization engine with Neural Ranking and reaction analysis.
- Pricing & Availability: Real-time validation with intelligent caching (Redis).
- User & Session: Secure authentication (NextAuth) and preference persistence.
- Real-time Gateway: WebSocket-based live updates and AI chatbot interaction.
We have provided specific "Gold Standard" guides for every major component:
- 🎨 Frontend Implementation Guide: Premium UI patterns, Framer Motion, Zustand, and RSC strategies.
- 🤖 AI Layer & Algorithms: Deep dive into Neural Rankers, Embeddings, and Cold-Start solutions.
- 🔌 Adapter Implementation Handbook: Step-by-step framework for building new provider integrations.
- 🌐 Real-time Gateway Deep Dive: Socket.io architecture, event protocols, and scaling.
- 🏗️ Infrastructure & DevOps: Docker, CI/CD with GitHub Actions, and Monitoring.
- 💡 Architecture Hints & Details: Advanced optimizations for performance, DB indexing, and deduplication.
- 🧠 AI Prompts & Governance: Detailed system prompts and ranking contexts for AI services.
- 🧰 Tool & Skill Definitions:
- 🔍 Discovery Skills: Search, Maps, and Trending data.
- 👤 Personalization Skills: Reaction recording and profile tuning.
- 💰 Booking Skills: Real-time validation and price locking.
- 🙋 Support Skills: Policy QA and booking status tracking.
- 💻 Coding Rules Skill: Technical governance, architectural integrity, and engineering standards.
- 📖 Code Patterns Dictionary: Standards for Service, Repo, and Adapter architecture.
- 🔒 Security & Hardening: Anti-fraud, CSP, and defensive programming.
- 🧪 Testing & QA Strategy: Unit, Integration, and E2E testing for the platform.
- 🚀 Scalability & Performance: Guidance on scaling to millions of users.
- ✨ Sequential Prompt System: A 12-step guide to building the entire platform prompt-by-prompt.
- 📂 Individual Build Prompts: The collection of technical prompts for each build phase.
To understand how all these layers work together, read the: 👉 E2E MVP Case: "The Romantic Paris Getaway"
- Clone the Architecture: Study the Implementation Plan.
- Configure Environment: Use the
.env.exampleto set up your keys. - Initialize Foundation:
npx create-next-app@latest npm install @prisma/client socket.io-client framer-motion zustand @tanstack/react-query
- Database Setup: Follow the Database Schema section in the implementation plan.
Build a production-ready hotel search and booking platform MVP that "wows" users with premium aesthetics and feels alive through real-time, AI-driven personalization.