How hungrybro/viper works
VIPER is a visual image-processing workflow platform: operators assemble node graphs, configure inputs and algorithm stages, then run workflows and inspect results and logs. The React client coordinates execution through stage runners and calls a FastAPI backend, whose routes dispatch processing and persist platform data. Major documented branches include YOLO training/detection and Grad-CAM, evaluation, reusable templates, authentication, and administration. Some router and runner internals were not sampled, so those components are represented at supported directory paths; uncertain runtime links are omitted.
Main entry points: main.py API Router · App.tsx Workflow Shell · FlowCanvas.tsx Workflow Canvas · templates.py Template Routes
Components 20
Workflow Client
- Workflow Shell
my-react-flow-app/src/App.tsx - Workflow Canvas
my-react-flow-app/src/FlowCanvas.tsx - Node Library
my-react-flow-app/src/components/nodes - Stage Runners
my-react-flow-app/src/lib/runners - Template Library
my-react-flow-app/src/components/TemplatePlatformLibrary.tsx - Template Client
my-react-flow-app/src/lib/templateApi.ts
Image Processing
- Feature & Matching
server/algos/feature - Alignment
server/algos/ObjectAlignment - Classify & Segment
server/algos/Classification - Enhance & Restore
server/algos/enchancement - Quality & Evaluation
server/algos/evaluation - YOLO & Grad-CAM
server/algos/detection/yolo_adapter.py
Platform Services
- API Router
server/main.py - Detection Routes
server/routers/detection.py - Template Routes
server/routers/templates.py - Authentication
server/routers/auth.py - Administration
server/routers/admin.py
Persistence
- Relational Store
server/database.py - Data Models
server/models.py
Other components
- Operator
Connections 23
- Operator → Workflow Shell: builds workflows
README.md - Workflow Shell → Workflow Canvas: renders
my-react-flow-app/src/App.tsx - Workflow Shell → Node Library: offers nodes
my-react-flow-app/src/App.tsx - Workflow Canvas → Node Library: renders nodes
README.md - Workflow Canvas → Stage Runners: dispatches stages
my-react-flow-app/src/FlowCanvas.tsx - Stage Runners → API Router: requests processing
- Operator → Template Library: browses templates
README.md - Template Library → Template Client: loads templates
- Template Client → Template Routes: calls API
- API Router → Detection Routes: registers routes
server/main.py - Detection Routes → YOLO & Grad-CAM: dispatches detection
server/routers/detection.py - API Router → Feature & Matching: registers processing routes
server/main.py - API Router → Alignment: registers processing routes
- API Router → Classify & Segment: registers processing routes
- API Router → Enhance & Restore: registers processing routes
- API Router → Quality & Evaluation: registers processing routes
- API Router → Template Routes: registers routes
server/main.py - API Router → Authentication: registers routes
server/main.py - API Router → Administration: registers routes
server/main.py - Template Routes → Data Models: reads and writes
server/routers/templates.py - Authentication → Data Models: authenticates users
server/routers/auth.py - Data Models → Relational Store: uses ORM base
server/models.py - API Router → Relational Store: initializes storage
server/main.py