How xhamzar/koreksi-lembar-jawab works
Koreksi Lembar Jawab is an offline-first PWA for teachers: configure an exam and answer key, print its sheet, scan and correct one or more responses, then review and export results. AppRoot selects the user-facing stages; shared context coordinates state and local persistence. The README documents major capabilities not fully visible in the sampled code, including multi-sheet OMR, offline operation, and backup/restore. Edges use excerpts, the source index, or README statements; unsampled implementation details are not assumed.
Main entry points: AppRoot.tsx App entry and router · SettingsView.tsx Exam and answer key · ScannerView.tsx Camera and scan review · ResultsView.tsx Rankings and analysis
Components 24
Exam setup
- Exam and answer key
components/settings/SettingsView.tsx - Question settings
components/settings/QuestionCountSelector.tsx - Answer key editor
components/settings/AnswerKeyTab.tsx - Printable sheet setup
components/settings/SheetTemplateTab.tsx - Sheet renderer
lib/omr/template-renderer.ts
Scanning and OMR
- Sheet geometry
lib/omr/layout-spec.ts - Camera and scan review
components/scanner/ScannerView.tsx - Corner calibration
components/scanner/CornerCalibrator.tsx - OMR worker client
lib/omr/worker-client.ts - Image processing worker
public/workers/omr-worker.js
Results and history
- Scoring and analytics
lib/grading/engine.ts - Rankings and analysis
components/results/ResultsView.tsx - Student detail
components/results/StudentDetailView.tsx - Scan history and backup
components/history/HistoryView.tsx - Import and report export
lib/export/exporters.ts
Shared app services
- App entry and router
components/AppRoot.tsx - Landing screen
components/landing/LandingScreen.tsx - App navigation
components/navigation/AppShell.tsx - App state and actions
components/providers/AppContext.tsx - Local IndexedDB
lib/storage/db.ts - Notifications and dialogs
components/ui/AppOverlays.tsx
Offline PWA
- Offline asset cache
public/sw.js - PWA manifest
app/manifest.ts
Other components
- Teacher
Connections 27
- Teacher → App entry and router: opens
README.md - App entry and router → App state and actions: provides state
components/AppRoot.tsx - App entry and router → Landing screen: shows entry
components/AppRoot.tsx - App entry and router → App navigation: shows workspace
components/AppRoot.tsx - App entry and router → Exam and answer key: routes to
components/AppRoot.tsx - App entry and router → Camera and scan review: routes to
components/AppRoot.tsx - App entry and router → Rankings and analysis: routes to
components/AppRoot.tsx - App entry and router → Scan history and backup: routes to
components/AppRoot.tsx - App entry and router → Notifications and dialogs: renders
components/AppRoot.tsx - Exam and answer key → Answer key editor: shows editor
components/settings/SettingsView.tsx - Exam and answer key → Printable sheet setup: shows setup
components/settings/SettingsView.tsx - Exam and answer key → Question settings: configures
components/settings/SettingsView.tsx - Printable sheet setup → Sheet renderer: renders sheet
lib/omr/template-renderer.ts - Sheet renderer → Sheet geometry: uses geometry
lib/omr/template-renderer.ts - Camera and scan review → Corner calibration: offers calibration
components/scanner/ScannerView.tsx - Camera and scan review → OMR worker client: requests processing
components/scanner/ScannerView.tsx - OMR worker client → Image processing worker: dispatches scan
- Camera and scan review → Scoring and analytics: evaluates answers
components/scanner/ScannerView.tsx - Rankings and analysis → Scoring and analytics: computes analytics
components/results/ResultsView.tsx - Rankings and analysis → Student detail: opens detail
components/results/ResultsView.tsx - Rankings and analysis → Import and report export: exports reports
components/results/ResultsView.tsx - Scan history and backup → Import and report export: imports roster
components/history/HistoryView.tsx - App state and actions → Local IndexedDB: loads and saves
components/providers/AppContext.tsx - App state and actions → Scoring and analytics: recalculates results
components/providers/AppContext.tsx - Scan history and backup → App state and actions: manages records
components/history/HistoryView.tsx - Offline asset cache → Teacher: serves cached app
- PWA manifest → Teacher: enables installation
README.md