How ashfaqhyder/codnex works
codnex is a localhost, multi-language code-quality review service. The main workflow is: a user submits source or a project, the API analyzes supported files and functions, saves a JSON report, and the dashboard presents findings, complexity, and classifier results. Users can also reopen reports, compare static findings, inspect model evaluation, and export JSON or HTML. The graph follows documented wiring and source-index references; unsampled implementation details are omitted, and README-only relationships are cited there.
Main entry points: dashboard.py Web dashboard · service.py FastAPI service · engine.py Static diagnostics · local_model.py Function inference
Components 21
Project submission
- FastAPI service
service.py - Project intake
service.py
Code analysis
- File dispatch
service.py - Static diagnostics
engine.py - Python checks
analyzer.py - Complexity estimates
complexity.py - Native parsers
native_analysis.py - Function extraction
function_extraction.py
Local classifier
- Function inference
local_model.py - Model artifacts
models/defect_classifier
Review workspace
- Web dashboard
dashboard.py - Python review UI
app.py - Overview and charts
workspace_charts.py - Source inspector
dashboard.py - Model evaluation view
dashboard.py
Reports and storage
- Report database
service.py - Report history
service.py - Finding comparison
report_tools.py - HTML export
report_tools.py
Other components
- Reviewer
- GitHub repository
Connections 23
- Reviewer → Web dashboard: submits source
README.md - Web dashboard → FastAPI service: requests reports
README.md - Reviewer → Python review UI: reviews Python
README.md - Python review UI → Static diagnostics: analyzes source
app.py - FastAPI service → Project intake: accepts uploads
service.py - Project intake → GitHub repository: downloads snapshot
README.md - Project intake → File dispatch: dispatches files
service.py - File dispatch → Static diagnostics: runs checks
service.py - Static diagnostics → Python checks: checks Python
engine.py - Static diagnostics → Complexity estimates: estimates growth
engine.py - File dispatch → Native parsers: parses native code
service.py - File dispatch → Function extraction: extracts functions
service.py - File dispatch → Function inference: predicts functions
service.py - Function inference → Model artifacts: loads weights
local_model.py - FastAPI service → Report database: stores reports
README.md - FastAPI service → Report history: lists reports
service.py - Web dashboard → Report history: loads saved reports
README.md - Web dashboard → Overview and charts: renders charts
dashboard.py - Web dashboard → Source inspector: shows source findings
dashboard.py - Web dashboard → Model evaluation view: shows evaluation
README.md - Web dashboard → Finding comparison: compares findings
README.md - FastAPI service → Finding comparison: computes changes
service.py - FastAPI service → HTML export: renders HTML
service.py