{"id":31684603,"url":"https://github.com/drbata/case-file-hydration","last_synced_at":"2026-04-29T20:33:51.813Z","repository":{"id":317462910,"uuid":"1067518456","full_name":"DRBATA/case-file-hydration","owner":"DRBATA","description":"🕵️ Noir-themed MCP orchestration for wellness bookings | Supabase + Resend + React Email | Windsurf Hackathon 2025","archived":false,"fork":false,"pushed_at":"2025-10-01T02:04:14.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-01T03:35:16.020Z","etag":null,"topics":["email","hackathon","mcp","react","resend","supabase","windsurf"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DRBATA.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-01T01:23:58.000Z","updated_at":"2025-10-01T02:04:17.000Z","dependencies_parsed_at":"2025-10-01T03:35:19.811Z","dependency_job_id":null,"html_url":"https://github.com/DRBATA/case-file-hydration","commit_stats":null,"previous_names":["drbata/case-file-hydration"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/DRBATA/case-file-hydration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DRBATA%2Fcase-file-hydration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DRBATA%2Fcase-file-hydration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DRBATA%2Fcase-file-hydration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DRBATA%2Fcase-file-hydration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DRBATA","download_url":"https://codeload.github.com/DRBATA/case-file-hydration/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DRBATA%2Fcase-file-hydration/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278909754,"owners_count":26066899,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["email","hackathon","mcp","react","resend","supabase","windsurf"],"created_at":"2025-10-08T08:10:32.017Z","updated_at":"2026-04-29T20:33:51.807Z","avatar_url":"https://github.com/DRBATA.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Water Bar Email#  Case File: Hydration\n\n*Another late night in the data district.*\n\n**Supabase** had the records.  \n**React** wrote the story.  \n**Resend** delivered the goods.\n\nThis isn't just another email server — it's an **MCP crew** working together to solve the hydration case.\n\n---\n\n##  The Demo\n\n[Watch the case unfold](https://www.youtube.com/watch?v=dQw4w9WgXcQ) *(add your video link)*\n\n---\n\n##  The Evidence\n\n- **Supabase MCP** → Pulls the booking (neat, precise)\n- **React Email** → Dresses it up sharp (timeline, purple gradient, paired drinks)\n- **Resend MCP** → Slips it into the inbox (no middlemen)\n- **Supabase logs** → Keeps the receipts (sent, delivered, timestamped)\n\n**Case closed.**\n\n---\n\n##  Fork This Case\n\n### Prerequisites:\n- Node.js 18+\n- [Windsurf IDE](https://codeium.com/windsurf) (with MCP support)\n- [Resend API key](https://resend.com)\n- [Supabase project](https://supabase.com)\n\n### Setup:\n\n```bash\n# Clone the case file\ngit clone https://github.com/yourusername/case-file-hydration\ncd case-file-hydration\n\n# Install dependencies\nnpm install\n```\n\n### 2. Build\n```bash\nnpm run build\n```\n\n### 3. Configure Windsurf\n\nAdd to `~/.codeium/windsurf/mcp_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"waterbar-emails\": {\n      \"command\": \"node\",\n      \"args\": [\"C:\\\\Users\\\\azamb\\\\OneDrive\\\\Desktop\\\\THE.WATER.BAR\\\\mcp-waterbar-emails\\\\build\\\\index.js\"],\n      \"env\": {\n        \"RESEND_API_KEY\": \"re_your_api_key_here\"\n      }\n    }\n  }\n}\n```\n\n### 4. Refresh MCP in Windsurf\n\nClick the hammer icon → Refresh MCP servers\n\n## Demo: AOI Booking Confirmation\n\nIn Windsurf chat, try:\n\n```\nUse the waterbar-emails MCP. Call send_waterbar_email with this:\n\n{\n  \"flow\": \"aoi-booking-confirmation\",\n  \"to\": \"azambata.1984@gmail.com\",\n  \"data\": {\n    \"customerName\": \"Dr Azam\",\n    \"bookingDate\": \"2025-07-06\",\n    \"venue\": \"AOI - Al Quoz, Dubai\",\n    \"totalAmount\": \"AED 180.00\",\n    \"paymentUrl\": \"https://buy.stripe.com/test_xxx\",\n    \"bookings\": [\n      {\n        \"time\": \"08:30\",\n        \"experience\": \"Ice Bath\",\n        \"duration\": 10,\n        \"preDrink\": \"Ginger Shot\",\n        \"explanation\": \"Ice Bath sharply awakens your system through noradrenaline release.\"\n      },\n      {\n        \"time\": \"09:10\",\n        \"experience\": \"AOI Air PRO Implosion Dome\",\n        \"duration\": 50,\n        \"duringDrink\": \"Humantra Electrolytes\",\n        \"explanation\": \"Immersive light and sound enhance cognitive clarity and focus.\"\n      },\n      {\n        \"time\": \"10:10\",\n        \"experience\": \"Infrared Sauna\",\n        \"duration\": 30,\n        \"afterDrink\": \"METÉ Sparkling Water\",\n        \"explanation\": \"Gentle warmth opens circulation, preparing you for integration.\"\n      }\n    ]\n  }\n}\n```\n\n## Available Flows\n\n- `aoi-booking-confirmation` - AOI experience bookings with timeline\n- `water-bar-order-confirmation` - Water Bar order receipts\n- `water-bar-followup` - Post-visit thank you\n- `water-bar-missed-you` - Event no-show followup\n\n## Hackathon Demo Script\n\n**Opening:**\n\u003e \"I built an AI-orchestrated wellness booking system that chains Supabase + OpenAI + Stripe + Resend to automate multi-venue experience confirmations.\"\n\n**Show:**\n1. User books Ice Bath + Air PRO + Sauna on AOI site\n2. AI suggests paired drinks based on physiology\n3. Windsurf calls send_waterbar_email MCP tool\n4. Beautiful branded email arrives with timeline + drinks\n\n**Emphasize:**\n- Multi-MCP orchestration (4 services)\n- Real business value (actual bookings)\n- AI-driven content (drink pairings, explanations)\n- Repeatable (React Email templates = editable)\n---\n## ?? Planned Future Flows (Beyond Hackathon Demo)\n\nThis repo currently showcases **Flow 1: AOI Booking Confirmation**.  \nWe�ve also designed (not demoed here) additional flows:\n- ?? Hydration plan generation (Supabase ? Resend)\n- ?? On-venue orchestration (timeline + paired drinks)\n- ?? Combined experience recap (Stripe ? Resend ? Supabase)\n\nThese are detailed in **docs/Confidential/APPENDIX_CASE_NOTES.md**,  \nbut only Flow 1 is guaranteed to work out-of-the-box for hackathon judges.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrbata%2Fcase-file-hydration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrbata%2Fcase-file-hydration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrbata%2Fcase-file-hydration/lists"}