# ─── VisionScrape Engine Configuration ──────────────────────────────────────────
# This file contains the environment variables required for the VisionScrape 
# core engine and the backend server. Copy this to .env and fill in your keys.

# ── Server Settings ───────────────────────────────────────────────────────────
# Port on which the Express server will run.
PORT=4000

# ── Security ──────────────────────────────────────────────────────────────────
# A secure, random string used to protect the API endpoints.
# Clients must send this key in the 'x-api-key' header.
# Generate one: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
API_SECRET_KEY=your_secure_secret_key_here

# ── AI Providers Configuration ───────────────────────────────────────────────

# 🟢 GOOGLE GEMINI (Recommended for Vision)
# Get your key at: https://aistudio.google.com/app/apikey
# Recommended Model: gemini-1.5-flash (fast/cheap) or gemini-1.5-pro (highly accurate)
GEMINI_API_KEY=your_gemini_api_key_here

# 🔵 OPENAI GPT-4o
# Get your key at: https://platform.openai.com/api-keys
# Recommended Model: gpt-4o (best vision capabilities)
OPENAI_API_KEY=your_openai_api_key_here

# 🔴 ANTHROPIC CLAUDE 3.5
# Get your key at: https://console.anthropic.com/
# Recommended Model: claude-3-5-sonnet-20240620
ANTHROPIC_API_KEY=your_anthropic_api_key_here

# ── Browser / Scraper Settings ────────────────────────────────────────────────
# Comma-separated list of allowed origins for CORS.
ALLOWED_ORIGINS=http://localhost:3000,http://localhost:5173

# Playwright Headless Mode (true/false)
# Set to false for debugging to see the browser in action.
BROWSER_HEADLESS=true

# Navigation Timeout (in milliseconds)
# Default is 60000 (60 seconds)
NAVIGATION_TIMEOUT=60000
