{"repo": "anserindicus/lifeline", "files": {"DEPLOYMENT_PLAN.md": {"61b6f2e26ffedcede39cb28ecde745a9bcb88a85": {"t": 1785746614.8901114, "n": 2835, "h": "01c3ed4d549d9bf4", "c": "# Deployment & Product Launch Plan\n\n## 1. Technical Architecture (MVP)\n\n### Frontend (Current)\n- **Hosting**: Vercel or Netlify (Recommended for static sites/SPA).\n - *Why*: Free tier is generous, global CDN, automatic SSL, git integration.\n- **Domain**: Purchase a clean, short domain (e.g., `lifeline.art` or `lifeline.io`).\n\n### Backend (Future / Phase 2)\n- **API**: Serverless Functions (Vercel Functions / AWS Lambda).\n - *Why*: Pay-per-use, scales to zero cost when no users.\n- **Database**: Supabase (PostgreSQL) or PlanetScale (MySQL).\n - *Why*: Serverless, easy to manage, generous free tier.\n- **AI Integration**: DeepSeek API (deepseek-chat) via backend proxy.\n - *Why*: Best in class reasoning for complex astrological synthesis.\n\n## 2. Step-by-Step Launch Guide\n\n### Phase 1: Static MVP (Current State)\n1. **Domain Registration**:\n - Go to Namecheap, GoDaddy, or Porkbun.\n - Search for a name that reflects \"Minimalism\" and \"Destiny\".\n - Cost: ~$10-50/year.\n\n2. **Hosting Setup**:\n - Create account on [Vercel](https://vercel.com).\n - Connect your GitHub repository.\n - Import `minimal-astrology-web`.\n - Vercel will automatically detect Vite and build settings.\n - Deploy.\n - Add your custom domain in Vercel settings.\n\n3. **Analytics**:\n - Add Vercel Analytics or a privacy-focused tool like Plausible.\n - *Goal*: Track user engagement without compromising the \"clean\" feel with cookie banners.\n\n### Phase 2: Dynamic Features (The \"Analysis\" Step)\nTo enable the real AI analysis (currently simulated):\n\n1. **API Route**:\n - ✅ Created `api/analyze.ts` using OpenAI SDK (compatible with DeepSeek).\n - ✅ Integrated with frontend `App.tsx`.\n\n2. **Configuration**:\n - You must set `DEEPSEEK_API_KEY` in your Vercel Project Settings > Environment Variables.\n - For local development, create a `.env` file in the root:\n ```\n DEEPSEEK_API_KEY=sk-your-deepseek-api-key-here\n ```\n - Run locally with `npx vercel dev` to test the API functions.\n\n3. **Rate Limiting & Monetization**:\n - Use Upstash (Redis) for rate limiting (1 free request per IP).\n - Implement a simple \"Share to Unlock\" mechanism on the client side (localStorage check).\n\n## 3. Cost Estimate (Monthly)\n\n| Service | MVP (0-1k users) | Growth (10k+ users) |\n| :--- | :--- | :--- |\n| **Hosting** | $0 (Vercel Hobby) | $20 (Vercel Pro) |\n| **Database** | $0 (Supabase Free) | $25 (Compute) |\n| **AI API** | Pay as you go (~$5) | Scale with usage |\n| **Domain** | ~$1/mo (amortized) | ~$1/mo |\n| **Total** | **~$1 - $10** | **~$50+** |\n\n## 4. Future Roadmap\n\n- **User Accounts**: Save charts (requires Auth - Supabase Auth recommended).\n- **Export**: Generate high-res PDF of the \"Life Map\".\n- **Social**: \"Compare Charts\" feature.\n"}, "8ddc6ba47532b25723b7efb2d1b3ffd48ea17a9f": {"t": 1785766295.941713, "n": 2835, "h": "01c3ed4d549d9bf4", "c": "# Deployment & Product Launch Plan\n\n## 1. Technical Architecture (MVP)\n\n### Frontend (Current)\n- **Hosting**: Vercel or Netlify (Recommended for static sites/SPA).\n - *Why*: Free tier is generous, global CDN, automatic SSL, git integration.\n- **Domain**: Purchase a clean, short domain (e.g., `lifeline.art` or `lifeline.io`).\n\n### Backend (Future / Phase 2)\n- **API**: Serverless Functions (Vercel Functions / AWS Lambda).\n - *Why*: Pay-per-use, scales to zero cost when no users.\n- **Database**: Supabase (PostgreSQL) or PlanetScale (MySQL).\n - *Why*: Serverless, easy to manage, generous free tier.\n- **AI Integration**: DeepSeek API (deepseek-chat) via backend proxy.\n - *Why*: Best in class reasoning for complex astrological synthesis.\n\n## 2. Step-by-Step Launch Guide\n\n### Phase 1: Static MVP (Current State)\n1. **Domain Registration**:\n - Go to Namecheap, GoDaddy, or Porkbun.\n - Search for a name that reflects \"Minimalism\" and \"Destiny\".\n - Cost: ~$10-50/year.\n\n2. **Hosting Setup**:\n - Create account on [Vercel](https://vercel.com).\n - Connect your GitHub repository.\n - Import `minimal-astrology-web`.\n - Vercel will automatically detect Vite and build settings.\n - Deploy.\n - Add your custom domain in Vercel settings.\n\n3. **Analytics**:\n - Add Vercel Analytics or a privacy-focused tool like Plausible.\n - *Goal*: Track user engagement without compromising the \"clean\" feel with cookie banners.\n\n### Phase 2: Dynamic Features (The \"Analysis\" Step)\nTo enable the real AI analysis (currently simulated):\n\n1. **API Route**:\n - ✅ Created `api/analyze.ts` using OpenAI SDK (compatible with DeepSeek).\n - ✅ Integrated with frontend `App.tsx`.\n\n2. **Configuration**:\n - You must set `DEEPSEEK_API_KEY` in your Vercel Project Settings > Environment Variables.\n - For local development, create a `.env` file in the root:\n ```\n DEEPSEEK_API_KEY=sk-your-deepseek-api-key-here\n ```\n - Run locally with `npx vercel dev` to test the API functions.\n\n3. **Rate Limiting & Monetization**:\n - Use Upstash (Redis) for rate limiting (1 free request per IP).\n - Implement a simple \"Share to Unlock\" mechanism on the client side (localStorage check).\n\n## 3. Cost Estimate (Monthly)\n\n| Service | MVP (0-1k users) | Growth (10k+ users) |\n| :--- | :--- | :--- |\n| **Hosting** | $0 (Vercel Hobby) | $20 (Vercel Pro) |\n| **Database** | $0 (Supabase Free) | $25 (Compute) |\n| **AI API** | Pay as you go (~$5) | Scale with usage |\n| **Domain** | ~$1/mo (amortized) | ~$1/mo |\n| **Total** | **~$1 - $10** | **~$50+** |\n\n## 4. Future Roadmap\n\n- **User Accounts**: Save charts (requires Auth - Supabase Auth recommended).\n- **Export**: Generate high-res PDF of the \"Life Map\".\n- **Social**: \"Compare Charts\" feature.\n"}}}}