How albertoreyescastro/modelhawk works
ModelHawk is a web application for static technical audits of uploaded Jupyter notebooks. The main workflow accepts a notebook in the upload UI, returns deterministic findings and scores, optionally adds examiner narrative, and can render the result as a PDF. The README also describes report contents and a sample audit. Source excerpts show the audit-to-heuristics call and PDF UI request; the UI-to-audit and UI-to-AI request wiring is not visible in the supplied excerpts, so those edges are omitted. The PDF route’s internal rendering and external provider details are summarized from README documentation where applicable.
Main entry points: pdf/route.ts PDF report generator · audit/route.ts Notebook audit API · ai/route.ts Examiner narrative API · page.tsx PDF request UI
Components 16
Web experience
- Product overview
app/page.tsx - Upload and results UI
app/upload/page.tsx - PDF request UI
app/upload/page.tsx - Sample audit page
app/demo/page.tsx - Application shell
app/layout.tsx
Deterministic audit
- Notebook audit API
app/api/audit/route.ts - ML rule detectors
lib/audit-heuristics.mjs - Structured audit
app/api/audit/route.ts
Examiner and reports
- Examiner narrative API
app/api/audit/ai/route.ts - Examiner guidance
app/api/audit/ai/route.ts - PDF report generator
app/api/report/pdf/route.ts - Generated PDF
app/api/report/pdf/route.ts
Service operations
- Health endpoint
app/api/health/route.ts
Other components
- Notebook reviewer
- Optional AI provider
- LaTeX engine
Connections 11
- Notebook reviewer → Product overview: views
README.md - Notebook reviewer → Upload and results UI: submits notebook
README.md - Notebook audit API → ML rule detectors: calls detectors
app/api/audit/route.ts - Notebook audit API → Structured audit: returns audit
README.md - Examiner narrative API → Optional AI provider: requests narrative
app/api/audit/ai/route.ts - Examiner narrative API → Examiner guidance: builds guidance
app/api/audit/ai/route.ts - Notebook reviewer → Sample audit page: views sample
README.md - PDF request UI → PDF report generator: posts result
app/upload/page.tsx - PDF report generator → LaTeX engine: spawns
app/api/report/pdf/route.ts - PDF report generator → Generated PDF: generates
README.md - Notebook reviewer → Health endpoint: checks service
README.md