How rahul-jha-2001/annotate_it works
TaskGlass is a web platform for configuring data-annotation experiments, collecting annotations from workers, reviewing agreement, and exporting datasets. The main workflow runs from experiment setup and media upload through annotation and review to asynchronous export. The graph also includes authentication, annotation-type plugins, scoring/allocation services, and bundle ingestion. Relationships are limited to calls or references visible in excerpts and the SOURCE INDEX; unsampled UI-to-backend interactions are not asserted.
Main entry points: main.py API routes · App.tsx App and routes · __init__.py Annotation registry · bundle_worker.py Bundle ingestion
Components 24
Web client
- App and routes
frontend/src/App.tsx - Experiment setup
frontend/src/components/CreateExperiment.tsx - Experiment dashboard
frontend/src/components/ExperimentDashboard.tsx - Annotation interface
frontend/src/components/Annotator.tsx - Annotation review
frontend/src/components/ReviewAnnotations.tsx - API client
frontend/src/api.ts
Experiment backend
- API routes
backend/main.py - Authentication
backend/auth.py - Experiment validation
backend/services/experiment_validation.py - Task allocation
backend/services/allocation.py - Annotator qualification
backend/services/qualifications.py - Agreement scoring
backend/services/scoring.py
Data and exports
- Database sessions
backend/database.py - Experiment records
backend/models.py - Multipart uploads
frontend/src/services/multipartUpload.ts - Bundle ingestion
backend/services/bundle_worker.py - Bundle extraction
lambda/bundle_extractor/guards.py - Dataset export
backend/services/export_service.py - Export worker
backend/export_worker.py
Annotation types
- Annotation registry
backend/annotation_types/__init__.py - Annotation type base
backend/annotation_types/base_type.py - Spatial task types
backend/annotation_types/spatial_tasks.py - Geometry scoring
backend/annotation_types/scoring/geometry.py
Other components
- Experiment users
Connections 26
- Experiment users → App and routes: uses
frontend/src/App.tsx - App and routes → Experiment setup: routes to
frontend/src/App.tsx - App and routes → Experiment dashboard: routes to
frontend/src/App.tsx - App and routes → Annotation interface: routes to
frontend/src/App.tsx - App and routes → Annotation review: routes to
frontend/src/App.tsx - Annotation review → API client: fetches review
frontend/src/components/ReviewAnnotations.tsx - Annotation review → Annotation registry: resolves plugins
frontend/src/components/ReviewAnnotations.tsx - API client → API routes: HTTP requests
- API routes → Authentication: uses authentication
backend/main.py - API routes → Experiment validation: validates experiments
backend/main.py - API routes → Task allocation: allocates tasks
backend/main.py - API routes → Annotator qualification: checks qualification
backend/main.py - API routes → Agreement scoring: computes scores
backend/main.py - API routes → Annotation registry: lists annotation types
backend/main.py - API routes → Database sessions: opens sessions
backend/main.py - API routes → Experiment records: queries records
backend/main.py - Annotation registry → Annotation type base: registers types
backend/annotation_types/__init__.py - Annotation registry → Spatial task types: registers spatial tasks
backend/annotation_types/__init__.py - Spatial task types → Geometry scoring: scores shapes
backend/annotation_types/spatial_tasks.py - Multipart uploads → API client: uses API
frontend/src/services/multipartUpload.ts - Bundle ingestion → Database sessions: uses sessions
backend/services/bundle_worker.py - Bundle ingestion → Experiment records: queries records
backend/services/bundle_worker.py - Bundle ingestion → Bundle extraction: uses guards
backend/services/bundle_worker.py - Export worker → Dataset export: builds exports
backend/export_worker.py - Export worker → Database sessions: uses sessions
backend/export_worker.py - Dataset export → Experiment records: reads records
backend/services/export_service.py