How tirumala2824/credx works
CredX is an early-warning credit-portfolio intelligence application. Analysts authenticate, upload portfolio data, run customer assessments, then review watchlists, histories, explanations and intervention records through the web interface or API. Scoring combines repayment, exposure, completeness and cash-flow signals with model outputs and a rule-based fallback. The graph preserves the documented monitoring and analyst-workflow capabilities; unsampled service internals are represented at subsystem level. Some edges reflect README-described workflows, since the frontend and several backend services were not excerpted.
Main entry points: monitoring.py Monitoring routes · main.py FastAPI app · ews.py EWS routes · scoring.py Scoring pipeline
Components 23
Web client
- Web workflows
Frontend/src/lib/ews.ts - API client
Frontend/src/lib/api.ts
API and access
- FastAPI app
backend/app/main.py - Authentication routes
backend/app/api/v1/auth.py - Profile routes
backend/app/api/v1/users.py - Auth sessions
backend/app/services/auth.py - User and sessions
backend/app/models/auth_session.py
Assessment pipeline
- EWS routes
backend/app/api/v1/ews.py - Scoring pipeline
backend/app/services/scoring.py - Portfolio data
backend/app/models/ews.py - Assessment explanations
backend/app/services/explainability.py
Risk analytics
- Assessment rules
core/rules - Cash-flow model
core/models/cashflow_model.py - Warning-score model
core/models/warning_score_model.py - Core EWS engine
core/ews_engine.py
Portfolio monitoring
- Monitoring routes
backend/app/api/v1/monitoring.py - Monitoring records
backend/app/models/monitoring.py - Portfolio views
backend/app/services/portfolio_view.py - Prioritisation
backend/app/services/prioritisation.py - Recommendations
backend/app/services/recommendations.py - Risk history
backend/app/services/risk_history.py - Intervention workflow
backend/app/models/monitoring.py
Other components
- Analyst
Connections 29
- Analyst → Web workflows: uses
README.md - Web workflows → API client: calls
Frontend/src/lib/ews.ts - API client → FastAPI app: requests
README.md - FastAPI app → Authentication routes: mounts
backend/app/main.py - FastAPI app → EWS routes: mounts
backend/app/main.py - FastAPI app → Monitoring routes: mounts
backend/app/main.py - FastAPI app → Profile routes: mounts
backend/app/main.py - Authentication routes → Auth sessions: delegates to
backend/app/api/v1/auth.py - Profile routes → Auth sessions: authenticates via
- Auth sessions → User and sessions: reads/writes
backend/app/services/auth.py - EWS routes → Scoring pipeline: scores via
backend/app/api/v1/ews.py - EWS routes → Portfolio data: reads/writes
backend/app/api/v1/ews.py - Scoring pipeline → Portfolio data: loads records
backend/app/services/scoring.py - Scoring pipeline → Assessment rules: runs rules
backend/app/services/scoring.py - Scoring pipeline → Cash-flow model: uses
backend/app/services/scoring.py - Scoring pipeline → Warning-score model: scores with
backend/app/services/scoring.py - Core EWS engine → Assessment rules: combines rules
core/ews_engine.py - Core EWS engine → Cash-flow model: uses
core/ews_engine.py - Core EWS engine → Warning-score model: scores with
core/ews_engine.py - EWS routes → Assessment explanations: requests explanations
backend/app/api/v1/ews.py - EWS routes → Risk history: records history
backend/app/api/v1/ews.py - Monitoring routes → Portfolio views: builds views
backend/app/api/v1/monitoring.py - Monitoring routes → Prioritisation: prioritises
backend/app/api/v1/monitoring.py - Monitoring routes → Recommendations: requests
backend/app/api/v1/monitoring.py - Monitoring routes → Risk history: reads history
backend/app/api/v1/monitoring.py - Monitoring routes → Portfolio data: reads records
backend/app/api/v1/monitoring.py - Monitoring routes → Monitoring records: records workflow
backend/app/api/v1/monitoring.py - Monitoring routes → Intervention workflow: manages
README.md - Monitoring routes → Analyst: returns views
README.md