CorpLens One is a corporate intelligence platform that integrates public-source intelligence (OSINT), third-party risk management (TPRM), vulnerability tracking, sanctions compliance, and AI-assisted analysis into a unified enterprise application.
Architecture • Modules • Installation • API Reference • Documentation Directory
CorpLens One provides a unified operational surface for security analysts, risk officers, compliance teams, and legal auditors. The application ingests non-intrusive public telemetry (DNS records, SSL/TLS certificate transparency logs, web server response headers, NIST NVD advisories, and OFAC/UN/EU sanction registries) to calculate continuous corporate risk scores, map entity relationship topologies, manage investigation cases, and generate audited compliance reports.
CorpLens One follows a decoupled microservices architecture with a React 18 single-page application (SPA), FastAPI ASGI services, PostgreSQL relational storage with Row-Level Security (RLS), Neo4j graph data, and Redis caching.
graph TD
subgraph Presentation ["Presentation Layer"]
UI["React 18 SPA + Vite 5 + TypeScript"]
end
subgraph Logic ["Business Logic Layer"]
API["FastAPI 0.110 ASGI Gateway"]
Risk["7-Pillar Risk Engine"]
AI["CorpLens AI Copilot Engine"]
PDF["ReportLab PDF Generator"]
GraphSvc["Neo4j Graph Service"]
end
subgraph Data ["Data & Storage Layer"]
PG[("PostgreSQL 16 (Primary DB + RLS)")]
Neo[("Neo4j 5.18 (Entity Topology)")]
Redis[("Redis 7 (Cache & Queue)")]
end
UI -->|HTTP REST / JSON| API
API --> Risk
API --> AI
API --> PDF
API --> GraphSvc
Risk --> PG
GraphSvc --> Neo
API --> Redis
| Component | Technology | Version | Purpose |
|---|---|---|---|
| Frontend UI | React, TypeScript, Tailwind CSS | React 18.2, TS 5.2 | Web Application Interface |
| Frontend Bundler | Vite | 5.4.21 | Module Bundling & HMR |
| Graph Visualizer | Cytoscape.js | 3.28.1 | Entity Network Graph Rendering |
| Backend Gateway | FastAPI, Uvicorn | 0.110.0 | Asynchronous REST API Server |
| Primary Relational DB | PostgreSQL | 16.0 | Persistent Entity & Telemetry Storage |
| Graph Database | Neo4j | 5.18 | Corporate Network & Ownership Topology |
| In-Memory Cache | Redis | 7.0 | Query Caching & Task Dispatch |
| PDF Engine | ReportLab | 4.5.0 | ISO/IEC 27037 PDF Report Compilation |
| Test Framework | Pytest, FastAPI TestClient | Pytest 9.0 | Automated Backend Unit/Integration Testing |
CorpLens One (x:\CorpLens One)
├── backend/ # FastAPI Microservices Application
│ ├── app/ # Application Core (API, Services, Repositories, Schemas)
│ ├── tests/ # Pytest Automated Test Suite
│ ├── Dockerfile # Container Definition for Backend
│ └── requirements.txt # Python Package Dependencies
├── docs/ # Detailed Architectural & Subsystem Documentation
│ ├── backend/ # Backend Subsystem Architecture Guides
│ └── frontend/ # Frontend Subsystem Architecture Guides
├── frontend/ # React 18 / Vite Web Application
│ ├── src/ # Components, Pages, Context, Hooks, Services
│ ├── index.html # Main Entry Point Document
│ └── package.json # Node Dependencies & Build Scripts
├── k8s/ # Kubernetes Deployment & Service Manifests
├── API_REFERENCE.md # REST API Specification
├── ARCHITECTURE_GUIDE.md # System Architecture Blueprint
├── CHANGELOG.md # Technical Release History
├── COMPLIANCE.md # Compliance & Sanctions Module Specification
├── CONTRIBUTING.md # Developer Contribution Guidelines
├── CORPLENS_AI.md # CorpLens AI Module Specification
├── DATABASE_DESIGN.md # Relational & Graph Database Specification
├── DEPLOYMENT_GUIDE.md # Docker & Kubernetes Operational Guide
├── DEVELOPER_GUIDE.md # Engineering Setup & Coding Standards
├── INVESTIGATIONS.md # Investigation & Case Management Specification
├── KNOWLEDGE_GRAPH.md # Neo4j Entity Topology Specification
├── LICENSE.md # Enterprise License Agreement
├── REPORTING.md # Evidence Report Engine Specification
├── SECURITY.md # Security & Governance Specification
├── TESTING.md # Automated Testing & Verification Guide
├── TPRM.md # Third-Party Risk Management Specification
└── docker-compose.yml # Production Multi-Container Orchestration
Copy .env.example to .env in the root workspace directory:
PROJECT_NAME=CorpLens One
VERSION=1.0.0
POSTGRES_SERVER=db
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgrespassword
POSTGRES_DB=corplens_db
POSTGRES_PORT=5432
SECRET_KEY=corplens-super-secret-jwt-key-production-change-me
GEMINI_API_KEY=your_gemini_api_key_optional
OPENAI_API_KEY=your_openai_api_key_optional# Clone the repository
git clone https://github.com/amn2905/CorpLens-AI.git
cd CorpLens-AI
# Build and start all microservices
docker compose up --build -d
# Verify service availability
docker compose psServices will be accessible at:
- Frontend UI: http://localhost:5173
- Backend API: http://localhost:8000
- OpenAPI Documentation: http://localhost:8000/docs
cd backend
python -m venv venv
venv\Scripts\activate # On Windows
# source venv/bin/activate # On Linux/macOS
pip install -r requirements.txt
pytest # Execute backend unit test suite (22 tests)
python app/main.pycd frontend
npm install
npm run build # Verify TypeScript compilation and Vite build
npm run dev # Start local Vite development serverCorpLens One features 13 dedicated operational modules:
- Dashboard: High-level corporate risk metrics, active alerts, and quick actions.
- Companies: Target profile workspace detailing digital footprint, tech stack, CVEs, and reputation.
- CorpLens AI: Grounded RAG AI copilot module providing natural language risk synthesis and evidence citations.
- Investigations: Analyst case board with Kanban status tracking, task management, and activity logs.
- Compliance: Sanctions screening against OFAC SDN, UN, EU, and UK HMT registries.
- Third Party Risk: Vendor portfolio management, concentration metrics, and SLA tracking.
- Supply Chain: Multi-tier dependency tree visualization and 4th-party concentration risk analysis.
- Threat Intelligence: NIST NVD & CISA KEV vulnerability advisories correlation.
- Knowledge Graph: Neo4j Cytoscape network graph explorer for entity relationship analysis.
- Monitoring: Continuous domain change detection, certificate expiry alerts, and webhook notifications.
- Reports: ISO/IEC 27037 PDF, HTML, CSV, and JSON evidentiary report generation.
- Settings: Integration configurations, API key management, and webhook setup.
- Administration: Enterprise user administration, RBAC role management, and audit log inspection.
For in-depth technical documentation, refer to the following guides:
- System Architecture Specification
- REST API Reference
- Database & Graph Schema Design
- Deployment & Infrastructure Operations
- Security & Compliance Specification
- Developer & Engineering Setup Guide
- Testing Architecture Guide
- Subsystem Guides: CorpLens AI • Investigations • Compliance • TPRM • Knowledge Graph • Reporting
Copyright © 2026 CorpLens One. All rights reserved.
Distributed under the Enterprise Software License. See LICENSE.md for complete legal terms.