# srisatyalokesh/pariksha architecture

> Architecture diagram of the GitHub repository srisatyalokesh/pariksha, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/srisatyalokesh/pariksha
- Repository: https://github.com/srisatyalokesh/pariksha

## Overview

Pariksha is documented as a self-hosted exam platform, but the supplied tree is a pre-alpha slice: a marketing site with an interactive exam demo and a pure TypeScript question/scoring core. It does not contain the API, candidate/admin runtime, database, or storage packages described in the README. The implemented demo path runs from the landing page through the exam island and core grading; the remaining product stages are shown as documented, not inspected implementations.

Main entry points: [`apps/web/src/routes/landing.tsx`](https://github.com/srisatyalokesh/pariksha/blob/main/apps/web/src/routes/landing.tsx) (Landing page), [`packages/core/src/grade/result.ts`](https://github.com/srisatyalokesh/pariksha/blob/main/packages/core/src/grade/result.ts) (Scoring rules), [`packages/core/src/grade/index.ts`](https://github.com/srisatyalokesh/pariksha/blob/main/packages/core/src/grade/index.ts) (Grading dispatch), [`apps/web/src/island/exam-demo.ts`](https://github.com/srisatyalokesh/pariksha/blob/main/apps/web/src/island/exam-demo.ts) (Interactive exam demo)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_landing["Landing page<br/>[landing.tsx]"]
  node_hero["Hero and demo entry<br/>[Hero.tsx]"]
  node_demo["Interactive exam demo<br/>[exam-demo.ts]"]
  node_questions["Demo questions<br/>[questions.ts]"]
  node_how["How it works<br/>[HowItWorks.tsx]"]
  node_comparison["Platform comparison<br/>[S4Comparison.tsx]"]
  node_cost["Cost and deployment<br/>[CostSection.tsx]"]
  node_status["Status and FAQ<br/>[NotForSection.tsx]"]
  node_closing["Closing and footer<br/>[Closing.tsx]"]
  node_head["SEO metadata<br/>[head.ts]"]
end

subgraph group_core["Question core"]
  node_types["Question and test types<br/>[types.ts]"]
  node_validation["Import validation<br/>[validate.ts]"]
  node_selection["Question selection<br/>[select.ts]"]
  node_rng["Seeded randomness<br/>[rng.ts]"]
  node_grading["Grading dispatch<br/>[index.ts]"]
  node_choice["Choice grading<br/>[choice.ts]"]
  node_structured["Structured grading<br/>[structured.ts]"]
  node_text["Text grading<br/>[text.ts]"]
  node_manual["Rubric grading<br/>[manual.ts]"]
  node_scoring["Scoring rules<br/>[result.ts]"]
  node_aggregation["Attempt scoring<br/>[score.ts]"]
end

subgraph group_planned["Documented platform"]
  node_platform_api["Exam API"]
  node_candidate["Candidate exam flow"]
  node_organizer["Organizer tools"]
  node_proctoring["Browser proctoring"]
  node_results["Results and exports"]
  node_database[("Database adapters")]
  node_objects[("Object storage")]
  node_identity["Identity services"]
end

node_visitor(("Site visitor"))

node_visitor -->|"visits"| node_landing
node_landing -->|"renders"| node_hero
node_landing -->|"renders"| node_how
node_landing -->|"renders"| node_comparison
node_landing -->|"renders"| node_cost
node_landing -->|"renders"| node_status
node_landing -->|"renders"| node_closing
node_hero -->|"mounts demo"| node_demo
node_demo -->|"loads questions"| node_questions
node_demo -->|"grades answers"| node_choice
node_demo -->|"rounds scores"| node_scoring
node_validation -->|"checks regex"| node_text
node_validation -->|"resolves scoring"| node_scoring
node_validation -->|"matches filters"| node_selection
node_selection -->|"shuffles with"| node_rng
node_grading -->|"dispatches to"| node_choice
node_grading -->|"dispatches to"| node_structured
node_grading -->|"dispatches to"| node_text
node_grading -->|"dispatches to"| node_manual
node_choice -->|"applies mode"| node_scoring
node_structured -->|"applies mode"| node_scoring
node_text -->|"applies mode"| node_scoring
node_manual -->|"resolves points"| node_scoring
node_aggregation -->|"grades responses"| node_grading
node_aggregation -->|"grades rubric answers"| node_manual
node_platform_api -.->|"uses adapters"| node_database
node_platform_api -.->|"uses adapters"| node_objects
node_platform_api -.->|"uses adapters"| node_identity
node_candidate -.->|"submits answers"| node_platform_api
node_organizer -.->|"builds and monitors"| node_platform_api
node_proctoring -.->|"sends checks"| node_platform_api
node_platform_api -.->|"serves results"| node_results

click node_landing "https://github.com/srisatyalokesh/pariksha/blob/main/apps/web/src/routes/landing.tsx"
click node_hero "https://github.com/srisatyalokesh/pariksha/blob/main/apps/web/src/sections/s1-s3/Hero.tsx"
click node_demo "https://github.com/srisatyalokesh/pariksha/blob/main/apps/web/src/island/exam-demo.ts"
click node_questions "https://github.com/srisatyalokesh/pariksha/blob/main/apps/web/src/island/questions.ts"
click node_how "https://github.com/srisatyalokesh/pariksha/blob/main/apps/web/src/sections/s1-s3/HowItWorks.tsx"
click node_comparison "https://github.com/srisatyalokesh/pariksha/blob/main/apps/web/src/sections/s4-s6/S4Comparison.tsx"
click node_cost "https://github.com/srisatyalokesh/pariksha/blob/main/apps/web/src/sections/s7-s9/CostSection.tsx"
click node_status "https://github.com/srisatyalokesh/pariksha/blob/main/apps/web/src/sections/s7-s9/NotForSection.tsx"
click node_closing "https://github.com/srisatyalokesh/pariksha/blob/main/apps/web/src/sections/s10-s12/Closing.tsx"
click node_head "https://github.com/srisatyalokesh/pariksha/blob/main/apps/web/src/seo/head.ts"
click node_types "https://github.com/srisatyalokesh/pariksha/blob/main/packages/core/src/types.ts"
click node_validation "https://github.com/srisatyalokesh/pariksha/blob/main/packages/core/src/validate.ts"
click node_selection "https://github.com/srisatyalokesh/pariksha/blob/main/packages/core/src/select.ts"
click node_rng "https://github.com/srisatyalokesh/pariksha/blob/main/packages/core/src/rng.ts"
click node_grading "https://github.com/srisatyalokesh/pariksha/blob/main/packages/core/src/grade/index.ts"
click node_choice "https://github.com/srisatyalokesh/pariksha/blob/main/packages/core/src/grade/choice.ts"
click node_structured "https://github.com/srisatyalokesh/pariksha/blob/main/packages/core/src/grade/structured.ts"
click node_text "https://github.com/srisatyalokesh/pariksha/blob/main/packages/core/src/grade/text.ts"
click node_manual "https://github.com/srisatyalokesh/pariksha/blob/main/packages/core/src/grade/manual.ts"
click node_scoring "https://github.com/srisatyalokesh/pariksha/blob/main/packages/core/src/grade/result.ts"
click node_aggregation "https://github.com/srisatyalokesh/pariksha/blob/main/packages/core/src/score.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_landing,node_hero,node_demo,node_questions,node_how,node_comparison,node_cost,node_status,node_closing,node_head toneBlue
class node_types,node_validation,node_selection,node_rng,node_grading,node_choice,node_structured,node_text,node_manual,node_scoring,node_aggregation toneAmber
class node_platform_api,node_candidate,node_organizer,node_proctoring,node_results,node_database,node_objects,node_identity toneMint
class node_visitor toneIndigo
```

## Components

### Web experience

- [Landing page](https://github.com/srisatyalokesh/pariksha/blob/main/apps/web/src/routes/landing.tsx): `apps/web/src/routes/landing.tsx`
- [Hero and demo entry](https://github.com/srisatyalokesh/pariksha/blob/main/apps/web/src/sections/s1-s3/Hero.tsx): `apps/web/src/sections/s1-s3/Hero.tsx`
- [Interactive exam demo](https://github.com/srisatyalokesh/pariksha/blob/main/apps/web/src/island/exam-demo.ts): `apps/web/src/island/exam-demo.ts`
- [Demo questions](https://github.com/srisatyalokesh/pariksha/blob/main/apps/web/src/island/questions.ts): `apps/web/src/island/questions.ts`
- [How it works](https://github.com/srisatyalokesh/pariksha/blob/main/apps/web/src/sections/s1-s3/HowItWorks.tsx): `apps/web/src/sections/s1-s3/HowItWorks.tsx`
- [Platform comparison](https://github.com/srisatyalokesh/pariksha/blob/main/apps/web/src/sections/s4-s6/S4Comparison.tsx): `apps/web/src/sections/s4-s6/S4Comparison.tsx`
- [Cost and deployment](https://github.com/srisatyalokesh/pariksha/blob/main/apps/web/src/sections/s7-s9/CostSection.tsx): `apps/web/src/sections/s7-s9/CostSection.tsx`
- [Status and FAQ](https://github.com/srisatyalokesh/pariksha/blob/main/apps/web/src/sections/s7-s9/NotForSection.tsx): `apps/web/src/sections/s7-s9/NotForSection.tsx`
- [Closing and footer](https://github.com/srisatyalokesh/pariksha/blob/main/apps/web/src/sections/s10-s12/Closing.tsx): `apps/web/src/sections/s10-s12/Closing.tsx`
- [SEO metadata](https://github.com/srisatyalokesh/pariksha/blob/main/apps/web/src/seo/head.ts): `apps/web/src/seo/head.ts`

### Question core

- [Question and test types](https://github.com/srisatyalokesh/pariksha/blob/main/packages/core/src/types.ts): `packages/core/src/types.ts`
- [Import validation](https://github.com/srisatyalokesh/pariksha/blob/main/packages/core/src/validate.ts): `packages/core/src/validate.ts`
- [Question selection](https://github.com/srisatyalokesh/pariksha/blob/main/packages/core/src/select.ts): `packages/core/src/select.ts`
- [Seeded randomness](https://github.com/srisatyalokesh/pariksha/blob/main/packages/core/src/rng.ts): `packages/core/src/rng.ts`
- [Grading dispatch](https://github.com/srisatyalokesh/pariksha/blob/main/packages/core/src/grade/index.ts): `packages/core/src/grade/index.ts`
- [Choice grading](https://github.com/srisatyalokesh/pariksha/blob/main/packages/core/src/grade/choice.ts): `packages/core/src/grade/choice.ts`
- [Structured grading](https://github.com/srisatyalokesh/pariksha/blob/main/packages/core/src/grade/structured.ts): `packages/core/src/grade/structured.ts`
- [Text grading](https://github.com/srisatyalokesh/pariksha/blob/main/packages/core/src/grade/text.ts): `packages/core/src/grade/text.ts`
- [Rubric grading](https://github.com/srisatyalokesh/pariksha/blob/main/packages/core/src/grade/manual.ts): `packages/core/src/grade/manual.ts`
- [Scoring rules](https://github.com/srisatyalokesh/pariksha/blob/main/packages/core/src/grade/result.ts): `packages/core/src/grade/result.ts`
- [Attempt scoring](https://github.com/srisatyalokesh/pariksha/blob/main/packages/core/src/score.ts): `packages/core/src/score.ts`

### Documented platform

- **Exam API**
- **Candidate exam flow**
- **Organizer tools**
- **Browser proctoring**
- **Results and exports**
- **Database adapters**
- **Object storage**
- **Identity services**

### Other components

- **Site visitor**

## Connections

- Site visitor → Landing page: visits (evidence: `apps/web/src/routes/landing.tsx`)
- Landing page → Hero and demo entry: renders (evidence: `apps/web/src/routes/landing.tsx`)
- Landing page → How it works: renders (evidence: `apps/web/src/routes/landing.tsx`)
- Landing page → Platform comparison: renders (evidence: `apps/web/src/routes/landing.tsx`)
- Landing page → Cost and deployment: renders (evidence: `apps/web/src/routes/landing.tsx`)
- Landing page → Status and FAQ: renders (evidence: `apps/web/src/routes/landing.tsx`)
- Landing page → Closing and footer: renders (evidence: `apps/web/src/routes/landing.tsx`)
- Hero and demo entry → Interactive exam demo: mounts demo (evidence: `apps/web/src/sections/s1-s3/Hero.tsx`)
- Interactive exam demo → Demo questions: loads questions (evidence: `apps/web/src/island/exam-demo.ts`)
- Interactive exam demo → Choice grading: grades answers
- Interactive exam demo → Scoring rules: rounds scores
- Import validation → Text grading: checks regex (evidence: `packages/core/src/validate.ts`)
- Import validation → Scoring rules: resolves scoring (evidence: `packages/core/src/validate.ts`)
- Import validation → Question selection: matches filters (evidence: `packages/core/src/validate.ts`)
- Question selection → Seeded randomness: shuffles with (evidence: `packages/core/src/select.ts`)
- Grading dispatch → Choice grading: dispatches to (evidence: `packages/core/src/grade/index.ts`)
- Grading dispatch → Structured grading: dispatches to (evidence: `packages/core/src/grade/index.ts`)
- Grading dispatch → Text grading: dispatches to (evidence: `packages/core/src/grade/index.ts`)
- Grading dispatch → Rubric grading: dispatches to (evidence: `packages/core/src/grade/index.ts`)
- Choice grading → Scoring rules: applies mode (evidence: `packages/core/src/grade/choice.ts`)
- Structured grading → Scoring rules: applies mode (evidence: `packages/core/src/grade/structured.ts`)
- Text grading → Scoring rules: applies mode (evidence: `packages/core/src/grade/text.ts`)
- Rubric grading → Scoring rules: resolves points (evidence: `packages/core/src/grade/manual.ts`)
- Attempt scoring → Grading dispatch: grades responses (evidence: `packages/core/src/score.ts`)
- Attempt scoring → Rubric grading: grades rubric answers (evidence: `packages/core/src/score.ts`)
- Exam API → Database adapters: uses adapters (evidence: `README.md`)
- Exam API → Object storage: uses adapters (evidence: `README.md`)
- Exam API → Identity services: uses adapters (evidence: `README.md`)
- Candidate exam flow → Exam API: submits answers (evidence: `README.md`)
- Organizer tools → Exam API: builds and monitors (evidence: `README.md`)
- Browser proctoring → Exam API: sends checks (evidence: `README.md`)
- Exam API → Results and exports: serves results (evidence: `README.md`)
