# madn143/qr-scanner-elvarix26 architecture

> Architecture diagram of the GitHub repository madn143/qr-scanner-elvarix26, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/madn143/qr-scanner-elvarix26
- Repository: https://github.com/madn143/qr-scanner-elvarix26

## Overview

ELVARIX’26 is a React Native event-attendance app with two staff workflows: registering participants and issuing shareable QR passes, and scanning those passes at reception, snack, and food checkpoints with duplicate detection. The graph follows the documented app navigation and the sampled screen/component calls. Scanner-to-attendee lookup is not visible in the excerpts, so that relationship is marked unverified; Firestore setup and screen-level reads and writes are shown where supported.

Main entry points: [`screens/PassGeneratorScreen.js`](https://github.com/madn143/qr-scanner-elvarix26/blob/main/screens/PassGeneratorScreen.js) (Pass Generator), [`screens/ScannerScreen.js`](https://github.com/madn143/qr-scanner-elvarix26/blob/main/screens/ScannerScreen.js) (Checkpoint Scanner), [`App.js`](https://github.com/madn143/qr-scanner-elvarix26/blob/main/App.js) (Tab Navigation), [`firebaseConfig.js`](https://github.com/madn143/qr-scanner-elvarix26/blob/main/firebaseConfig.js) (Firestore Setup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["App Navigation"]
  node_app["Tab Navigation<br/>[App.js]"]
end

subgraph group_registration["Registration &amp; Passes"]
  node_pass_screen["Pass Generator"]
  node_event_picker["Event Selection"]
  node_digital_pass["Digital Pass<br/>[DigitalPass.js]"]
  node_pass_image["Pass Capture &amp; Share"]
end

subgraph group_checkin["Checkpoint Scanning"]
  node_scanner["Checkpoint Scanner<br/>[ScannerScreen.js]"]
  node_scan_status["Scan Status Overlay<br/>[StatusOverlay.js]"]
end

subgraph group_backend["Firebase Data"]
  node_firebase_config["Firestore Setup<br/>[firebaseConfig.js]"]
  node_attendees[("Attendee Records")]
  node_checkpoint_logs[("Checkpoint Logs")]
end

node_staff(("Event Staff"))
node_sharing["Device Sharing"]
node_camera["Device Camera"]
node_firestore[("Firebase Firestore")]

node_staff -->|"uses"| node_app
node_app -->|"routes to"| node_scanner
node_app -->|"routes to"| node_pass_screen
node_pass_screen -->|"renders"| node_event_picker
node_pass_screen -->|"writes registration"| node_attendees
node_pass_screen -->|"renders"| node_digital_pass
node_pass_screen -->|"captures pass"| node_pass_image
node_pass_image -->|"shares image"| node_sharing
node_digital_pass -->|"displays QR pass"| node_staff
node_scanner -->|"scans codes"| node_camera
node_scanner -.->|"looks up attendee"| node_attendees
node_scanner -->|"checks and writes"| node_checkpoint_logs
node_scanner -->|"shows result"| node_scan_status
node_firebase_config -->|"initializes"| node_firestore
node_pass_screen -->|"uses database config"| node_firebase_config
node_scanner -->|"uses database config"| node_firebase_config
node_attendees -->|"stored in"| node_firestore
node_checkpoint_logs -->|"stored in"| node_firestore

click node_app "https://github.com/madn143/qr-scanner-elvarix26/blob/main/App.js"
click node_pass_screen "https://github.com/madn143/qr-scanner-elvarix26/blob/main/screens/PassGeneratorScreen.js"
click node_event_picker "https://github.com/madn143/qr-scanner-elvarix26/blob/main/components/EventCheckboxGroup.js"
click node_digital_pass "https://github.com/madn143/qr-scanner-elvarix26/blob/main/components/DigitalPass.js"
click node_pass_image "https://github.com/madn143/qr-scanner-elvarix26/blob/main/screens/PassGeneratorScreen.js"
click node_scanner "https://github.com/madn143/qr-scanner-elvarix26/blob/main/screens/ScannerScreen.js"
click node_scan_status "https://github.com/madn143/qr-scanner-elvarix26/blob/main/components/StatusOverlay.js"
click node_firebase_config "https://github.com/madn143/qr-scanner-elvarix26/blob/main/firebaseConfig.js"

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_app toneBlue
class node_pass_screen,node_event_picker,node_digital_pass,node_pass_image,node_firestore toneAmber
class node_scanner,node_scan_status toneMint
class node_firebase_config,node_attendees,node_checkpoint_logs toneRose
class node_staff,node_sharing,node_camera toneIndigo
```

## Components

### App Navigation

- [Tab Navigation](https://github.com/madn143/qr-scanner-elvarix26/blob/main/App.js): `App.js`

### Registration & Passes

- [Pass Generator](https://github.com/madn143/qr-scanner-elvarix26/blob/main/screens/PassGeneratorScreen.js): `screens/PassGeneratorScreen.js`
- [Event Selection](https://github.com/madn143/qr-scanner-elvarix26/blob/main/components/EventCheckboxGroup.js): `components/EventCheckboxGroup.js`
- [Digital Pass](https://github.com/madn143/qr-scanner-elvarix26/blob/main/components/DigitalPass.js): `components/DigitalPass.js`
- [Pass Capture & Share](https://github.com/madn143/qr-scanner-elvarix26/blob/main/screens/PassGeneratorScreen.js): `screens/PassGeneratorScreen.js`

### Checkpoint Scanning

- [Checkpoint Scanner](https://github.com/madn143/qr-scanner-elvarix26/blob/main/screens/ScannerScreen.js): `screens/ScannerScreen.js`
- [Scan Status Overlay](https://github.com/madn143/qr-scanner-elvarix26/blob/main/components/StatusOverlay.js): `components/StatusOverlay.js`

### Firebase Data

- [Firestore Setup](https://github.com/madn143/qr-scanner-elvarix26/blob/main/firebaseConfig.js): `firebaseConfig.js`
- **Attendee Records**
- **Checkpoint Logs**

### Other components

- **Event Staff**
- **Device Sharing**
- **Device Camera**
- **Firebase Firestore**

## Connections

- Event Staff → Tab Navigation: uses (evidence: `README.md`)
- Tab Navigation → Checkpoint Scanner: routes to (evidence: `App.js`)
- Tab Navigation → Pass Generator: routes to (evidence: `App.js`)
- Pass Generator → Event Selection: renders (evidence: `screens/PassGeneratorScreen.js`)
- Pass Generator → Attendee Records: writes registration (evidence: `screens/PassGeneratorScreen.js`)
- Pass Generator → Digital Pass: renders (evidence: `screens/PassGeneratorScreen.js`)
- Pass Generator → Pass Capture & Share: captures pass (evidence: `screens/PassGeneratorScreen.js`)
- Pass Capture & Share → Device Sharing: shares image (evidence: `screens/PassGeneratorScreen.js`)
- Digital Pass → Event Staff: displays QR pass (evidence: `README.md`)
- Checkpoint Scanner → Device Camera: scans codes (evidence: `README.md`)
- Checkpoint Scanner → Attendee Records: looks up attendee
- Checkpoint Scanner → Checkpoint Logs: checks and writes (evidence: `screens/ScannerScreen.js`)
- Checkpoint Scanner → Scan Status Overlay: shows result (evidence: `README.md`)
- Firestore Setup → Firebase Firestore: initializes (evidence: `firebaseConfig.js`)
- Pass Generator → Firestore Setup: uses database config (evidence: `screens/PassGeneratorScreen.js`)
- Checkpoint Scanner → Firestore Setup: uses database config (evidence: `screens/ScannerScreen.js`)
- Attendee Records → Firebase Firestore: stored in (evidence: `README.md`)
- Checkpoint Logs → Firebase Firestore: stored in (evidence: `README.md`)
