# labour-codes-by-vivek/labour-codes-by-vivek.github.io architecture

> Architecture diagram of the GitHub repository labour-codes-by-vivek/labour-codes-by-vivek.github.io, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io
- Repository: https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io

## Overview

This is a static labour-law information and self-service site: users can search legal material, look up answers or legal provisions, explore compliance guidance, and calculate employment entitlements. Its principal interactive workflow is asking a question, matching it against checked answers, and presenting a relevant answer; calculators provide a separate input-to-calculation-to-explanation workflow. The tree also documents law texts, case law, notifications, guides, and learning material. The README is empty, so relationships below are limited to those visible in sampled scripts or the SOURCE INDEX; unsampled content branches are shown without guessed connections.

Main entry points: [`_astro/index.astro_astro_type_script_index_0_lang.l0Hzxk6t.js`](https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/blob/main/_astro/index.astro_astro_type_script_index_0_lang.l0Hzxk6t.js) (Question matching), [`_astro/search.astro_astro_type_script_index_0_lang.BzgRpzSZ.js`](https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/blob/main/_astro/search.astro_astro_type_script_index_0_lang.BzgRpzSZ.js) (Law search), [`_astro/old-to-new.CLen7yKc.js`](https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/blob/main/_astro/old-to-new.CLen7yKc.js) (Old-law matcher), [`_astro/_slug_.astro_astro_type_script_index_0_lang.BRPag3HB.js`](https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/blob/main/_astro/_slug_.astro_astro_type_script_index_0_lang.BRPag3HB.js) (Quiz page client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Search and discovery"]
  node_search["Law search"]
  node_pagefind["Search index engine<br/>[pagefind.js]"]
  node_question_match["Question matching"]
  node_match_helpers["Matching helpers"]
  node_old_new_match["Old-law matcher"]
  node_quiz["Knowledge quizzes"]
  node_quiz_loader["Quiz page client"]
end

subgraph group_tools["Interactive tools"]
  node_calculators["Entitlement calculators<br/>[ui.Dm1A_dmI.js]"]
  node_calc_pages["Calculator interfaces"]
  node_old_new_page["Old-to-new lookup"]
end

subgraph group_law["Law library"]
  node_wage_code["Wages code"]
  node_ir_code["Industrial relations code"]
  node_osh_code["Safety and health code"]
  node_social_security["Social security code"]
end

subgraph group_guidance["Practical guidance"]
  node_answers["Checked answers"]
  node_compliance["Compliance tasks"]
  node_guides["Practical guides"]
  node_learning["Learning topics"]
end

subgraph group_authority["Legal authorities"]
  node_case_law["Case law"]
  node_notifications["Government notifications"]
  node_definitions["Legal definitions"]
end

node_visitor(("Site visitor"))

node_visitor -->|"searches"| node_search
node_search -->|"queries index"| node_pagefind
node_visitor -->|"asks question"| node_question_match
node_question_match -->|"fetches answers"| node_answers
node_question_match -->|"uses matching"| node_match_helpers
node_question_match -->|"matches old law"| node_old_new_match
node_visitor -->|"takes quiz"| node_quiz_loader
node_quiz_loader -->|"loads client"| node_quiz
node_visitor -->|"uses calculator"| node_calc_pages
node_calc_pages -->|"calls calculations"| node_calculators
node_visitor -->|"looks up provisions"| node_old_new_page
node_old_new_page -->|"matches sections"| node_old_new_match
node_search -->|"matches sections"| node_old_new_match

click node_search "https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/blob/main/_astro/search.astro_astro_type_script_index_0_lang.BzgRpzSZ.js"
click node_pagefind "https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/blob/main/pagefind/pagefind.js"
click node_question_match "https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/blob/main/_astro/index.astro_astro_type_script_index_0_lang.l0Hzxk6t.js"
click node_match_helpers "https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/blob/main/_astro/preload-helper.BvaPIkId.js"
click node_old_new_match "https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/blob/main/_astro/old-to-new.CLen7yKc.js"
click node_quiz "https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/blob/main/_astro/quiz-client.CwD3Jlfz.js"
click node_quiz_loader "https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/blob/main/_astro/_slug_.astro_astro_type_script_index_0_lang.BRPag3HB.js"
click node_calculators "https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/blob/main/_astro/ui.Dm1A_dmI.js"
click node_calc_pages "https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/tree/main/calculators"
click node_old_new_page "https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/blob/main/_astro/index.astro_astro_type_script_index_0_lang.C32zNk38.js"
click node_answers "https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/tree/main/ask"
click node_compliance "https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/tree/main/compliance"
click node_guides "https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/tree/main/guides"
click node_learning "https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/tree/main/learn"
click node_wage_code "https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/tree/main/code-on-wages"
click node_ir_code "https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/tree/main/industrial-relations-code"
click node_osh_code "https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/tree/main/osh-code"
click node_social_security "https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/tree/main/rules"
click node_case_law "https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/tree/main/case-law"
click node_notifications "https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/tree/main/notifications"
click node_definitions "https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/tree/main/definitions"

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_search,node_pagefind,node_question_match,node_match_helpers,node_old_new_match,node_quiz,node_quiz_loader toneBlue
class node_calculators,node_calc_pages,node_old_new_page toneAmber
class node_wage_code,node_ir_code,node_osh_code,node_social_security toneMint
class node_answers,node_compliance,node_guides,node_learning toneRose
class node_case_law,node_notifications,node_definitions,node_visitor toneIndigo
```

## Components

### Search and discovery

- [Law search](https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/blob/main/_astro/search.astro_astro_type_script_index_0_lang.BzgRpzSZ.js): `_astro/search.astro_astro_type_script_index_0_lang.BzgRpzSZ.js`
- [Search index engine](https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/blob/main/pagefind/pagefind.js): `pagefind/pagefind.js`
- [Question matching](https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/blob/main/_astro/index.astro_astro_type_script_index_0_lang.l0Hzxk6t.js): `_astro/index.astro_astro_type_script_index_0_lang.l0Hzxk6t.js`
- [Matching helpers](https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/blob/main/_astro/preload-helper.BvaPIkId.js): `_astro/preload-helper.BvaPIkId.js`
- [Old-law matcher](https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/blob/main/_astro/old-to-new.CLen7yKc.js): `_astro/old-to-new.CLen7yKc.js`
- [Knowledge quizzes](https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/blob/main/_astro/quiz-client.CwD3Jlfz.js): `_astro/quiz-client.CwD3Jlfz.js`
- [Quiz page client](https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/blob/main/_astro/_slug_.astro_astro_type_script_index_0_lang.BRPag3HB.js): `_astro/_slug_.astro_astro_type_script_index_0_lang.BRPag3HB.js`

### Interactive tools

- [Entitlement calculators](https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/blob/main/_astro/ui.Dm1A_dmI.js): `_astro/ui.Dm1A_dmI.js`
- [Calculator interfaces](https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/tree/main/calculators): `calculators`
- [Old-to-new lookup](https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/blob/main/_astro/index.astro_astro_type_script_index_0_lang.C32zNk38.js): `_astro/index.astro_astro_type_script_index_0_lang.C32zNk38.js`

### Law library

- [Wages code](https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/tree/main/code-on-wages): `code-on-wages`
- [Industrial relations code](https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/tree/main/industrial-relations-code): `industrial-relations-code`
- [Safety and health code](https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/tree/main/osh-code): `osh-code`
- [Social security code](https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/tree/main/rules): `rules`

### Practical guidance

- [Checked answers](https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/tree/main/ask): `ask`
- [Compliance tasks](https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/tree/main/compliance): `compliance`
- [Practical guides](https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/tree/main/guides): `guides`
- [Learning topics](https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/tree/main/learn): `learn`

### Legal authorities

- [Case law](https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/tree/main/case-law): `case-law`
- [Government notifications](https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/tree/main/notifications): `notifications`
- [Legal definitions](https://github.com/labour-codes-by-vivek/labour-codes-by-vivek.github.io/tree/main/definitions): `definitions`

### Other components

- **Site visitor**

## Connections

- Site visitor → Law search: searches (evidence: `_astro/search.astro_astro_type_script_index_0_lang.BzgRpzSZ.js`)
- Law search → Search index engine: queries index (evidence: `_astro/search.astro_astro_type_script_index_0_lang.BzgRpzSZ.js`)
- Site visitor → Question matching: asks question (evidence: `_astro/index.astro_astro_type_script_index_0_lang.l0Hzxk6t.js`)
- Question matching → Checked answers: fetches answers (evidence: `_astro/index.astro_astro_type_script_index_0_lang.l0Hzxk6t.js`)
- Question matching → Matching helpers: uses matching (evidence: `_astro/index.astro_astro_type_script_index_0_lang.l0Hzxk6t.js`)
- Question matching → Old-law matcher: matches old law (evidence: `_astro/index.astro_astro_type_script_index_0_lang.l0Hzxk6t.js`)
- Site visitor → Quiz page client: takes quiz
- Quiz page client → Knowledge quizzes: loads client (evidence: `_astro/_slug_.astro_astro_type_script_index_0_lang.BRPag3HB.js`)
- Site visitor → Calculator interfaces: uses calculator
- Calculator interfaces → Entitlement calculators: calls calculations
- Site visitor → Old-to-new lookup: looks up provisions (evidence: `_astro/index.astro_astro_type_script_index_0_lang.C32zNk38.js`)
- Old-to-new lookup → Old-law matcher: matches sections (evidence: `_astro/index.astro_astro_type_script_index_0_lang.C32zNk38.js`)
- Law search → Old-law matcher: matches sections (evidence: `_astro/search.astro_astro_type_script_index_0_lang.BzgRpzSZ.js`)
