How sullichrosu/njobvu-ai works
Njobvu-AI is a collaborative computer-vision labeling and model workflow application. Users create or import image projects, annotate and review labels, train models, run inference on new images, and download datasets or run artifacts. The graph shows the Express entry points, project and label data access, and the documented training, inference, validation, and export capabilities. Some feature links are documented only at the route level; unsampled implementation details and their internal call paths are not inferred.
Main entry points: api.js API routing · queries.js Query facade · yoloInference.js Inference routes · yoloRun.js Model training
Components 24
Web application
- HTTP server
server.js - Express app
app.js - API routing
routes/api.js - Page routing
routes/pages.js
Projects and labeling
- Project operations
routes/projects - Label operations
routes/labelling - Validation workflow
routes/validation - Dataset and run downloads
routes/downloads
Model workflows
- Model training
routes/training/yoloRun.js - Training image prep
utils/jitTrainingImages.js - Inference routes
routes/inference/yoloInference.js - Inception inference
routes/inference/inceptionInference.js - Megadetector inference
routes/inference/megadetectorInference.js - Inference dataset prep
utils/inferenceDatasetPipeline.js
Data and storage
- Project data
queries/projects/projects.js - Annotations and images
queries/labelling/labelling.js - Query facade
queries/queries.js - SQLite client
queries/client.js - S3 access
utils/s3Client.js
Runs and integrations
- Ollama chat
routes/chat/ollamaChat.js - Run summaries
utils/runSummaryGenerator.js - Python sandbox
utils/sandboxedPythonRunner.js - File removal utility
public/libraries/rimraf.js
Other components
- Collaborative user
Connections 34
- Collaborative user → HTTP server: uses
- HTTP server → Express app: serves
server.js - Express app → API routing: mounts
app.js - Express app → Page routing: routes pages
app.js - API routing → Project operations: routes project actions
routes/api.js - API routing → Label operations: routes label actions
routes/api.js - API routing → Validation workflow: routes validation
routes/api.js - API routing → Model training: routes training
routes/api.js - API routing → Inference routes: routes inference
routes/api.js - API routing → Ollama chat: routes chat
routes/api.js - Page routing → Model training: renders training view
- Page routing → Inference routes: renders inference view
routes/pages.js - Project operations → Query facade: uses project queries
routes/projects/toggleAllReview.js - Label operations → Query facade: uses label queries
- Validation workflow → Query facade: uses validation queries
- Query facade → Project data: combines queries
queries/queries.js - Query facade → Annotations and images: combines queries
queries/queries.js - Query facade → SQLite client: gets project client
queries/queries.js - Model training → Query facade: uses project queries
routes/training/yoloRun.js - Model training → Training image prep: prepares images
routes/training/yoloRun.js - Inference routes → Query facade: uses project queries
routes/inference/yoloInference.js - Inference routes → Inference dataset prep: prepares dataset
routes/inference/yoloInference.js - Inception inference → Inference dataset prep: prepares dataset
routes/inference/inceptionInference.js - Inference dataset prep → Query facade: looks up bucket
utils/inferenceDatasetPipeline.js - Inference dataset prep → S3 access: lists and downloads
utils/inferenceDatasetPipeline.js - Inference routes → Inception inference: optional model route
- API routing → Megadetector inference: routes inference
- Dataset and run downloads → Query facade: uses project queries
routes/downloads/downloadDataset.js - Dataset and run downloads → S3 access: uses S3 access
routes/downloads/downloadDataset.js - Ollama chat → Query facade: uses project queries
routes/chat/ollamaChat.js - Ollama chat → Run summaries: uses run summaries
routes/chat/ollamaChat.js - Python sandbox → Run summaries: summarizes runs
controllers/sandboxController.js - API routing → Python sandbox: routes sandbox
routes/api.js - API routing → File removal utility: imports utility
routes/api.js