An on-screen evaluation system for academic institutions. Digitizes the physical exam marking workflow — from scanning answer scripts to assigning evaluators to releasing results — into a single web application.
University exam evaluation still runs on physical paper bundles, manual assignment registers, and spreadsheet-based tabulation. EvalMeridian replaces that with a browser-based workflow where administrators upload scanned scripts, evaluators mark them on-screen with annotation tools, and students can view released results.
- Exam session management — create sessions scoped by academic year, semester, and exam type
- Roster import — bulk import student records from CSV
- Batch script upload — upload scanned answer scripts (PDFs) in batches, organized by paper code
- Automated reconciliation — match uploaded scripts to student records using roll number extraction
- Manual exception handling — resolve unmapped or ambiguous scripts
- Evaluator assignment — distribute scripts to evaluators and track progress
- Real-time monitoring — live dashboard showing evaluation throughput across the session
- PDF viewer with annotations — view scanned scripts with zoom, pan, and page navigation
- Marking tools — tick, cross, circle, underline, freehand pen, and text comment annotations
- Keyboard shortcuts —
C(correct),X(incorrect),V(cursor),T(text),P(pen),M(focus mode) - Split view — side-by-side display of student script alongside question paper or marking scheme
- Auto-save — debounced draft saves every 2 seconds with sync status indicator
- Question-wise scoring — input marks per question with running total
- UFM flagging — flag scripts for Unfair Means with a separate review queue
- Auto-advance — automatically loads the next pending script after submission
- Course overview with KPI cards
- Resource management (question papers, marking schemes)
- Assessment result visibility
- View released evaluation results
- Track evaluation status (pending vs. released)
- Institutional information and verification status
| Layer | Technology |
|---|---|
| Framework | Next.js 16 (App Router, React Compiler) |
| Language | TypeScript |
| Styling | Tailwind CSS 4 + shadcn/ui |
| Backend | Supabase (PostgreSQL, Auth, Storage, Realtime) |
| PDF Rendering | react-pdf + pdfjs-dist |
| CSV Parsing | PapaParse |
| Icons | Lucide React |
| Notifications | Sonner |
src/
├── app/
│ ├── (dashboard)/ # Authenticated routes (layout with sidebar)
│ │ ├── admin/ # Admin pages: overview, operations, scripts, students, results
│ │ ├── evaluator/ # Evaluator dashboard + canvas/[id] marking workspace
│ │ ├── teacher/ # Teacher dashboard, resources, results
│ │ └── student/ # Student dashboard + results
│ ├── login/ # Authentication page
│ └── layout.tsx # Root layout (AuthProvider, theme, fonts)
├── components/
│ ├── admin/ # Admin-specific: BatchUploadPanel, MappingRunner, etc.
│ ├── dashboard/ # Shared dashboard components: AnnotatablePDFViewer, ResultsTable
│ ├── layout/ # Sidebar, Header, MobileDrawer
│ ├── shared/ # Reusable: DataTable, Breadcrumbs, SessionCard
│ └── ui/ # shadcn/ui primitives
├── context/ # AuthContext (session + role), NavContext (sidebar state)
├── types/ # TypeScript interfaces: operations, roster, student
├── utils/
│ ├── supabase/client.ts # Supabase client initialization
│ ├── rosterCsv.ts # CSV parsing and validation for roster import
│ └── studentMapping.ts # Roll number matching logic
└── lib/
└── utils.ts # cn() utility for className merging
-
Clone the repository
git clone https://github.com/AkashNaickar/EvalMeridian.git cd EvalMeridian -
Install dependencies
npm install
-
Configure environment variables
cp .env.example .env.local
Edit
.env.localwith your Supabase project credentials:NEXT_PUBLIC_SUPABASE_URL=https://your-project-id.supabase.co NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key-here -
Set up the database
Run the migration files in
supabase/migrations/against your Supabase project in filename order.20260311_base_schema.sqlcreates the core tables (profiles,exams,scripts,resources); the later migrations add student mapping, operations sessions, RLS hardening, and the storage bucket.20260314_storage_eval_documents.sqlcreates the privateeval_documentsbucket and its access policies, so you do not need to create it by hand. -
Create user accounts
Add users through Supabase Auth, then insert a matching row in
profileswith their role. The migrations alone do not create accounts. -
Start the dev server
npm run dev
For detailed setup instructions, see docs/setup.md.
| Command | Description |
|---|---|
npm run dev |
Start the development server |
npm run build |
Create a production build |
npm run start |
Serve the production build |
npm run lint |
Run ESLint |
npm run typecheck |
Run TypeScript type checking (tsc --noEmit) |
npm run test |
Run Vitest unit tests |
npm run test:e2e |
Run Playwright smoke tests (builds and serves the app) |
- Unit tests (Vitest) cover the pure logic in
src/utils/— roster CSV parsing/validation and roll-number normalization/matching. Run withnpm run test -- --run. - Smoke tests (Playwright) verify the main route flow: unauthenticated visitors are redirected to
/loginand the login page renders. Run withnpm run test:e2e(starts a production build on port 3000 automatically).
CI runs lint, typecheck, unit tests, build, and the Playwright smoke suite on every push and pull request.
Authentication is handled by Supabase Auth (email/password). On sign-in, the app queries the profiles table for the user's role field and routes them to the corresponding dashboard:
| Role | Route | Access |
|---|---|---|
admin |
/admin |
Full system — sessions, scripts, assignments, monitoring |
evaluator |
/evaluator |
Assigned scripts, evaluation canvas |
teacher |
/teacher |
Course overview, resource management, results |
student |
/student |
Personal results, evaluation status |
Unauthenticated users are redirected to /login. Route protection is enforced in two layers:
- Server-side middleware (
src/middleware.ts) — validates the Supabase session on every request via@supabase/ssrand redirects unauthenticated traffic to/loginbefore any page renders. - Client-side layout guard (
AuthContext+ dashboard layout) — resolves the user's role and routes them to the correct dashboard.
Role-based data access is enforced by Row Level Security policies in Supabase.
The application uses Supabase PostgreSQL with the following core tables:
profiles— user accounts with role assignmentexam_sessions— exam session metadata (year, semester, type, status)scripts— individual answer scripts with evaluation state, marks, annotationsstudents— student master rosterresources— question papers and marking schemes linked to sessionsexams— exam definitions with subject information
Schema migrations are in supabase/migrations/. Ad-hoc repair scripts (for development use) are in docs/sql/.
See docs/architecture.md for detailed diagrams covering auth flow, role-based routing, and the evaluation workflow.
This is an active development project. Known limitations:
- Teacher and Student dashboards have limited dynamic data (some KPI values are static placeholders)
- Admin dashboard KPIs use static demo data
- No pagination on large data tables
@typescript-eslint/no-explicit-anyandreact-hooks/set-state-in-effectare tracked as lint warnings (pre-existing patterns, being fixed progressively)
See CONTRIBUTING.md for guidelines on branch naming, commit conventions, and the pull request process.
See SECURITY.md for how to report vulnerabilities privately.
Released under the MIT License.