How balaji-1206/judgeai works
Judgement Insight is a legal-document workflow application: users upload court PDFs, the backend extracts and analyzes document text, and the resulting actions can be reviewed, edited, tracked, and surfaced with deadline reminders. The graph separates the React interface, API and review layer, document-processing stages, and persistence/notifications. The README is empty; frontend-to-backend API wiring and several unsampled UI relationships are therefore shown only as unverified or omitted. Backend processing links follow the pipeline and imports documented in the excerpts and SOURCE INDEX.
Main entry points: pipeline.py Processing orchestrator · main.py FastAPI routes · db.py Application database · Index.tsx Court dashboard
Components 24
Frontend
- React app
frontend/judgement-insight-main/src/App.tsx - Court dashboard
frontend/judgement-insight-main/src/pages/Index.tsx - Document upload
frontend/judgement-insight-main/src/components/court/UploadSection.tsx - Action review UI
frontend/judgement-insight-main/src/components/court/ActionsTable.tsx - Action editor
frontend/judgement-insight-main/src/components/court/ActionEditDialog.tsx - Audit timeline
frontend/judgement-insight-main/src/components/court/AuditTimeline.tsx - Status display
frontend/judgement-insight-main/src/components/court/StatusBadge.tsx - Alerts and metrics
frontend/judgement-insight-main/src/components/court/AlertsPanel.tsx - API client
frontend/judgement-insight-main/src/lib/api.ts - Service wrappers
frontend/judgement-insight-main/src/services/services.js
API and Review
- FastAPI routes
jas-backend/app/main.py - Review editor
jas-backend/app/services/review_editor.py
Document Processing
- Processing orchestrator
jas-backend/app/services/pipeline.py - PDF ingestion
jas-backend/app/services/ingestion.py - PDF text extraction
jas-backend/app/services/ocr_service.py - Text preprocessing
jas-backend/app/services/preprocessing.py - Legal NLP analysis
jas-backend/app/services/nlp_service.py - Action extraction
jas-backend/app/services/action_engine.py - Deadline engine
jas-backend/app/services/deadline_engine.py
Persistence and Alerts
- Application database
jas-backend/app/db.py - Notifications
jas-backend/app/services/notification_service.py - Alert service
jas-backend/app/services/alert_service.py - Runtime settings
jas-backend/app/config.py
Other components
- Court staff
Connections 29
- Court staff → React app: uses
- React app → Court dashboard: routes to
frontend/judgement-insight-main/src/App.tsx - Court dashboard → Document upload: renders
- Court dashboard → Action review UI: renders
- Action review UI → Action editor: opens
frontend/judgement-insight-main/src/components/court/ActionsTable.tsx - Action review UI → Audit timeline: shows history
frontend/judgement-insight-main/src/components/court/ActionsTable.tsx - Action review UI → Status display: renders
frontend/judgement-insight-main/src/components/court/ActionsTable.tsx - Court dashboard → Alerts and metrics: renders
- Court dashboard → API client: uses
- Service wrappers → API client: calls
frontend/judgement-insight-main/src/services/services.js - API client → FastAPI routes: HTTP requests
- FastAPI routes → PDF ingestion: stores uploads
jas-backend/app/main.py - FastAPI routes → Processing orchestrator: starts processing
jas-backend/app/main.py - FastAPI routes → Application database: queries records
jas-backend/app/main.py - FastAPI routes → Review editor: delegates edits
jas-backend/app/main.py - FastAPI routes → Notifications: uses service
jas-backend/app/main.py - Processing orchestrator → PDF ingestion: gets document
jas-backend/app/services/pipeline.py - Processing orchestrator → PDF text extraction: extracts text
jas-backend/app/services/pipeline.py - Processing orchestrator → Text preprocessing: preprocesses text
jas-backend/app/services/pipeline.py - Processing orchestrator → Legal NLP analysis: analyzes text
jas-backend/app/services/pipeline.py - Processing orchestrator → Action extraction: extracts actions
jas-backend/app/services/pipeline.py - Processing orchestrator → Application database: saves actions
jas-backend/app/services/pipeline.py - PDF ingestion → Application database: records metadata
jas-backend/app/services/ingestion.py - Review editor → Application database: updates review
jas-backend/app/services/review_editor.py - Notifications → Application database: reads and writes
jas-backend/app/services/notification_service.py - Notifications → Deadline engine: checks deadlines
jas-backend/app/services/notification_service.py - Alert service → Application database: uses records
jas-backend/app/services/alert_service.py - PDF ingestion → Runtime settings: uses settings
jas-backend/app/services/ingestion.py - PDF text extraction → Runtime settings: uses settings
jas-backend/app/services/ocr_service.py