Transform the way you understand and manage insurance policies with cutting-edge AI technology.
Experience ClaimWise in action:
π Frontend: https://claimwise-fht9.vercel.app/
β‘ API Backend: https://claimwise.onrender.com/
π API Documentation: https://claimwise.onrender.com/docs
Note: The backend may take 30-60 seconds to wake up on first visit (Render free tier cold start)
ClaimWise is a production-ready, enterprise-grade platform that revolutionizes insurance policy management through advanced AI analysis. Upload your insurance documents, receive comprehensive insights, compare coverage options, and interact with your policies through intelligent chat functionality.
Our platform combines modern web technologies with powerful AI models to deliver:
- Instant Policy Analysis - Deep understanding of coverage, terms, and conditions
- Smart Comparisons - Side-by-side policy evaluation with gap analysis
- Interactive Chat - Natural language queries about your policies using RAG technology
- Premium Optimization - Identify cost savings and coverage improvements
- Renewal Management - Automated alerts and recommendations
- π AI Policy Analysis - Comprehensive document breakdown with claim readiness scoring
- π Multi-Policy Comparison - Side-by-side analysis with coverage gap identification
- π¬ Document Chat - Interactive Q&A using Retrieval-Augmented Generation (RAG)
- π Smart Insights - Premium optimization and coverage recommendations
- π± Modern Interface - Responsive design with dark mode and accessibility features
- π Renewal Alerts - Automated notifications for policy expirations
- π‘οΈ Enterprise Security - JWT authentication with user data isolation
- β‘ High Performance - Advanced caching strategies and rate limiting
- π Real-time Monitoring - System metrics and performance tracking
- π Error Recovery - Comprehensive error handling with user guidance
- π Production Ready - Docker support with CI/CD pipeline integration
- π§ Multi-LLM Support - Integration with Groq, Gemini, and OpenAI models
Next.js 15 (App Router) + TypeScript
React 18 with Suspense & Server Components
Tailwind CSS + shadcn/ui Components
Supabase Client (Auth + Real-time)
FastAPI (Python 3.11+) with Async/Await
Supabase (PostgreSQL + Authentication)
AI/ML: Groq + Gemini + OpenAI
OCR: Tesseract + Poppler + pdf2image
Production: Caching + Rate Limiting + Monitoring
claimwise/
βββ π± frontend/ # Next.js Application
β βββ app/ # App Router
β β βββ (auth)/ # Auth pages (login, signup)
β β βββ dashboard/ # Main dashboard
β β βββ upload/ # Policy upload interface
β β βββ analyze/ # Analysis results
β β βββ chat/ # AI chat interface
β β βββ compare/ # Policy comparison
β βββ components/ # React Components
β β βββ ui/ # shadcn/ui base components
β β βββ auth/ # Authentication forms
β β βββ analysis/ # Policy analysis widgets
β β βββ chat/ # Chat interface components
β β βββ layout/ # Layout components
β βββ lib/ # Utilities
β β βββ api.ts # API client with retry
β β βββ auth.ts # Auth helpers
β β βββ supabase.ts # Supabase config
β βββ hooks/ # Custom React hooks
β
βββ β‘ backend/ # FastAPI Application
β βββ src/ # Core Application
β β βββ main.py # FastAPI app entry
β β βββ auth.py # JWT authentication
β β βββ db.py # Database operations
β β βββ models.py # Pydantic models
β β βββ routes.py # API endpoints
β β βββ llm.py # AI integrations
β β βββ rag.py # RAG implementation
β β βββ π Production Features:
β β βββ exceptions.py # Error handling
β β βββ monitoring.py # Performance metrics
β β βββ caching.py # Multi-strategy cache
β β βββ rate_limiting.py # Request throttling
β β βββ embeddings.py # Vector embeddings
β βββ tests/ # Test suite
β βββ requirements.txt # Dependencies
β
βββ π docs/ # Documentation
βββ api/ # Architectural & RAG reviews
βββ deployment/ # Deployment guides (TODO)
- Node.js 18+ with pnpm
- Python 3.11+ with pip
- Supabase project configured
- AI API keys (Groq, Gemini, OpenAI)
# 1. Navigate to backend
cd backend
# 2. Create virtual environment
python -m venv .venv
# Windows
.\.venv\Scripts\Activate
# macOS/Linux
source .venv/bin/activate
# 3. Install dependencies
pip install -r requirements.txt
# 4. Configure environment
cp .env.example .env
# Edit .env with your API keys
# 5. Start development server
uvicorn src.main:app --reload --host 0.0.0.0 --port 8000β
Backend running at http://localhost:8000
π API docs at http://localhost:8000/docs
# 1. Navigate to frontend
cd frontend
# 2. Install dependencies
pnpm install
# 3. Configure environment
cp .env.local.example .env.local
# Edit .env.local with your config
# For quick testing, use: NEXT_PUBLIC_API_URL=https://claimwise.onrender.com
# 4. Start development server
pnpm devβ
Frontend running at http://localhost:3000
π Or try the live demo: https://claimwise-fht9.vercel.app/
-- Users table (managed by Supabase Auth)
CREATE TABLE users (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
email VARCHAR UNIQUE NOT NULL,
created_at TIMESTAMPTZ DEFAULT NOW(),
updated_at TIMESTAMPTZ DEFAULT NOW()
);
-- Policies table
CREATE TABLE policies (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
user_id UUID REFERENCES auth.users(id) ON DELETE CASCADE,
policy_name VARCHAR NOT NULL,
policy_number VARCHAR,
provider VARCHAR,
policy_type VARCHAR,
extracted_text TEXT,
file_path VARCHAR,
analysis JSONB,
created_at TIMESTAMPTZ DEFAULT NOW(),
updated_at TIMESTAMPTZ DEFAULT NOW()
);
-- Chat logs table
CREATE TABLE chat_logs (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
user_id UUID REFERENCES auth.users(id) ON DELETE CASCADE,
policy_id UUID REFERENCES policies(id) ON DELETE CASCADE,
question TEXT NOT NULL,
answer TEXT NOT NULL,
created_at TIMESTAMPTZ DEFAULT NOW()
);POST /auth/login # User login
POST /auth/refresh # Refresh JWT token
GET /auth/me # Current user infoPOST /upload-policy # Upload & process policy
GET /policies # List user policies
GET /policies/{id} # Get specific policy
DELETE /policies/{id} # Delete policyPOST /analyze-policy # Comprehensive analysis
POST /compare-policies # Multi-policy comparison
POST /chat # Interactive Q&A
GET /analysis/{id} # Cached analysis resultsGET /health # System health check
GET /metrics # Performance metrics
GET /cache/stats # Cache performance# Test the live API
curl https://claimwise.onrender.com/health
# Upload policy (requires authentication)
curl -X POST "https://claimwise.onrender.com/upload-policy" \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-F "file=@policy.pdf" \
-F "policy_name=My Policy"// POST /analyze-policy
{
"policy_id": "uuid-here",
"analysis_type": "comprehensive"
}
// Response
{
"policy_id": "uuid-here",
"analysis": {
"policy_type": "Health Insurance",
"provider": "Example Insurance Co.",
"premium": "$250/month",
"coverage_amount": "$1,000,000",
"deductible": "$2,500",
"key_features": ["Emergency Care", "Preventive Services"],
"claim_readiness_score": 85
},
"insights": {
"coverage_gaps": [],
"cost_optimization": "Consider higher deductible for 15% savings"
}
}β
Frontend (Vercel): https://claimwise-fht9.vercel.app/
β
Backend (Render): https://claimwise.onrender.com/
π API Docs: https://claimwise.onrender.com/docs
# 1. Environment Variables (Set in Render Dashboard)
SUPABASE_URL=https://xxx.supabase.co
SUPABASE_KEY=your-service-role-key
GROQ_API_KEY=your-groq-key
GEMINI_API_KEY=your-gemini-key
ALLOWED_ORIGINS=https://claimwise-fht9.vercel.app
# 2. Deploy command
git push origin main # Auto-deploys to Render# 1. Environment Variables (Set in Vercel Dashboard)
NEXT_PUBLIC_SUPABASE_URL=https://xxx.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
NEXT_PUBLIC_API_URL=https://claimwise.onrender.com
# 2. Deploy command
vercel --prod # Or push to main branch for auto-deploy# docker-compose.yml
version: '3.8'
services:
backend:
build: ./backend
ports:
- "8000:8000"
environment:
- SUPABASE_URL=${SUPABASE_URL}
- SUPABASE_KEY=${SUPABASE_KEY}
frontend:
build: ./frontend
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_API_URL=http://backend:8000# Deploy with Docker
docker-compose up -dcd backend
source .venv/bin/activate
# Run all tests with coverage
pytest tests/ -v --cov=src --cov-report=html
# Run specific test categories
pytest tests/test_auth.py -v
pytest tests/test_analysis.py -v
pytest tests/test_chat.py -vcd frontend
# Unit tests
pnpm test
# E2E tests
pnpm test:e2e
# Type checking
pnpm type-check
# Linting
pnpm lintWe welcome contributions! Here's how to get started:
- Fork the repository and create a feature branch
- Set up development environment using the Quick Start guide
- Make your changes with proper tests and documentation
- Run the test suite to ensure everything works
- Submit a pull request with a clear description
- Backend: Black formatting, type hints, comprehensive tests
- Frontend: TypeScript strict mode, ESLint, Prettier formatting
- Commits: Conventional Commits format
- Documentation: Update README and API docs for new features
This project is licensed under the MIT License - see the LICENSE file for details.
ClaimWise is built and maintained by a dedicated team of developers, AI engineers, and insurance domain experts.
- Lead Developer: ApexYash11
- π Bug Reports: GitHub Issues
- π‘ Feature Requests: GitHub Discussions
ClaimWise β Empowering users with AI-driven insurance insights. π‘οΈ