See Lost Revenue. Recover It. Automate It.
Paragen is an AI-powered platform that automatically detects revenue leakage in your business documents. Upload contracts, invoices, and billing records - Paragen analyzes them to find pricing errors, missing charges, billing discrepancies, and contract deviations that cost you money.
- Upload contracts, invoices, and billing records
- AI automatically extracts and analyzes data
- Identifies revenue leakage opportunities
- Pricing Errors - Incorrect rates and tier miscalculations
- Missing Charges - Unbilled services and untracked usage
- Billing Discrepancies - Calculation errors and invoice mismatches
- Contract Deviations - Unearned discounts and invoice-contract misalignments
- AES-256 encryption for all files at rest
- PII auto-redaction before AI processing
- SQL injection & DDoS protection
- No data used for AI model training
- Multi-provider AI routing (Groq → Gemini → OpenRouter)
- Prioritizes free tiers for cost efficiency
- Automatic fallback for reliability
Backend:
- FastAPI (Python)
- SQLAlchemy + SQLite
- AI: Groq, Gemini, OpenRouter
- Document parsing: PyPDF2, python-docx
Frontend:
- React + Vite
- Lucide Icons
- Modern CSS with glassmorphism
- Python 3.9+
- Node.js 18+
- API keys for Groq and/or Gemini
cd backend
python -m venv venv
.\venv\Scripts\Activate.ps1 # Windows
source venv/bin/activate # Mac/Linux
pip install -r requirements.txt
# Create .env file
cp .env.example .env
# Add your API keys to .env
python main.pyBackend runs on http://localhost:8000
cd frontend
npm install
npm run devFrontend runs on http://localhost:5173
Required in backend/.env:
# AI Providers (at least one required)
GROQ_API_KEY=your_groq_key
GEMINI_API_KEY=your_gemini_key
OPENROUTER_API_KEY=your_openrouter_key # Optional fallback
# Security
ENCRYPTION_SECRET_KEY=your_32_byte_secret_key
# Database (defaults to SQLite)
DATABASE_URL=sqlite:///./paragen.db
# Backend
BACKEND_PORT=8000- Upload Documents - Drag and drop or select contracts, invoices, billing records
- Start Analysis - AI analyzes documents for revenue leakage
- Review Findings - See detected issues with evidence and recommendations
- Take Action - Export findings, generate dispute letters
Para/
├── backend/
│ ├── ai/ # AI client integrations
│ ├── analysis/ # Core leak detection logic
│ ├── database/ # Database models and connection
│ ├── routes/ # API endpoints
│ ├── security/ # Encryption, PII redaction
│ ├── uploads/ # File upload handling
│ └── main.py # FastAPI app entry point
│
└── frontend/
├── src/
│ ├── pages/ # React pages (Home, Dashboard, Results)
│ └── App.jsx # React router
└── public/
- Encryption: All uploaded files encrypted with Fernet (AES-128 CBC)
- PII Protection: Email, phone, SSN, credit card redaction
- Rate Limiting: 100 requests/minute per IP
- SQL Injection Protection: Pattern-based detection
- HTTPS Headers: HSTS, CSP, X-Frame-Options
- LLM Privacy: No data used for model training
Once running, visit:
- Swagger UI:
http://localhost:8000/docs - ReDoc:
http://localhost:8000/redoc
Proprietary - All Rights Reserved
For questions or issues, contact the development team.