How adarshpatil-07/dependency-risk-analyzer works
Dependency Risk Analyzer is an early-stage npm dependency-risk analysis product: developers submit project manifests and lockfiles, then are meant to receive dependency structure, vulnerability information, and explainable findings. The implemented backend has parsing, graph, OSV, and finding-analysis modules, but the sampled analysis endpoint and module references do not establish that these are wired into a runtime pipeline. The README describes visualization and downstream-impact exploration as planned capabilities; the frontend is currently a scaffold. Dashed, uncited links mark those unverified product connections.
Main entry points: builder.py Dependency graph builder · analyses.py Analysis endpoint · scanner.py OSV scanner · router.py API v1 router
Components 25
Frontend
- Web app scaffold
frontend/src/App.tsx - App routes
frontend/src/routes/AppRoutes.tsx - Typed API client
frontend/src/api/client.ts
API
- FastAPI service
backend/app/main.py - API v1 router
backend/app/api/v1/router.py - Analysis endpoint
backend/app/api/v1/endpoints/analyses.py - Health endpoint
backend/app/api/v1/endpoints/health.py - Analysis contract
backend/app/schemas/analysis.py
Input parsing
- Manifest parser
backend/app/parsing/package_json.py - Lockfile parser
backend/app/parsing/lockfile.py - Spec and limits
backend/app/parsing/specs.py - Input consistency
backend/app/parsing/consistency.py
Graph analysis
- Dependency graph builder
backend/app/graph/builder.py - Dependency resolution
backend/app/graph/resolution.py - Graph validation
backend/app/graph/validation.py - Structural metrics
backend/app/graph/metrics.py - Dependency paths
backend/app/graph/paths.py - Explainable findings
backend/app/graph/findings.py
Vulnerability analysis
- OSV scanner
backend/app/osv/scanner.py - OSV client
backend/app/osv/client.py - Advisory normalization
backend/app/osv/normalization.py - Severity analysis
backend/app/osv/severity.py - Version handling
backend/app/osv/versions.py
Other components
- Developer
- OSV API
Connections 28
- Developer → Web app scaffold: uses
- Web app scaffold → App routes: renders
frontend/src/App.tsx - Developer → Typed API client: submits analysis
- Typed API client → FastAPI service: REST JSON
- FastAPI service → API v1 router: mounts
backend/app/main.py - API v1 router → Analysis endpoint: routes
backend/app/api/v1/router.py - API v1 router → Health endpoint: routes
backend/app/api/v1/router.py - Analysis endpoint → Analysis contract: uses schema
backend/app/api/v1/endpoints/analyses.py - Manifest parser → Spec and limits: uses
backend/app/parsing/package_json.py - Lockfile parser → Spec and limits: uses
backend/app/parsing/lockfile.py - Input consistency → Lockfile parser: checks against
backend/app/parsing/consistency.py - Input consistency → Manifest parser: checks against
backend/app/parsing/consistency.py - Dependency graph builder → Lockfile parser: consumes
backend/app/graph/builder.py - Dependency graph builder → Spec and limits: uses
backend/app/graph/builder.py - Dependency graph builder → Dependency resolution: uses
backend/app/graph/builder.py - Dependency graph builder → Graph validation: uses
backend/app/graph/builder.py - Explainable findings → Structural metrics: uses
backend/app/graph/findings.py - OSV scanner → OSV client: queries
backend/app/osv/scanner.py - OSV client → OSV API: queries
backend/app/osv/client.py - OSV scanner → Advisory normalization: normalizes
backend/app/osv/scanner.py - OSV scanner → Severity analysis: evaluates severity
backend/app/osv/scanner.py - OSV scanner → Version handling: checks versions
backend/app/osv/scanner.py - Analysis endpoint → Manifest parser: planned input flow
- Analysis endpoint → Dependency graph builder: planned analysis
- Analysis endpoint → OSV scanner: planned advisory scan
- Analysis endpoint → Explainable findings: planned findings
- Dependency graph builder → Structural metrics: planned metrics
- Dependency graph builder → Dependency paths: planned path exploration