# pinakimondal07/lwc-fundaments architecture

> Architecture diagram of the GitHub repository pinakimondal07/lwc-fundaments, 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/pinakimondal07/lwc-fundaments
- Repository: https://github.com/pinakimondal07/lwc-fundaments

## Overview

This repository is a collection of Salesforce Lightning Web Component (LWC) and Aura learning examples, rather than one integrated application. The principal user-facing pattern is interacting with an example component—such as a quiz or memory game—which updates component state and renders a result. Other distinct branches demonstrate Salesforce data access and record changes, navigation, component composition and styling, and cross-component messaging. Groups reflect those capabilities; the excerpts show selected calls into Salesforce APIs, but do not establish wiring between most separate examples.

Main entry points: [`force-app/main/default/lwc/memoryGameLwc/memoryGameLwc.js`](https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/lwc/memoryGameLwc/memoryGameLwc.js) (Memory game), [`force-app/main/default/lwc/updateRecordFunction/updateRecordFunction.js`](https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/lwc/updateRecordFunction/updateRecordFunction.js) (Record create, update, delete), [`force-app/main/default/lwc/quizApp/quizApp.js`](https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/lwc/quizApp/quizApp.js) (Quiz app), [`force-app/main/default/lwc/getRecordAdapter/getRecordAdapter.js`](https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/lwc/getRecordAdapter/getRecordAdapter.js) (Record wire adapter)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Component UI"]
  node_ui_examples["UI and interaction demos"]
  node_quiz["Quiz app<br/>[quizApp.js]"]
  node_memory["Memory game<br/>[memoryGameLwc.js]"]
  node_composition["Component composition"]
  node_styling["Styling and rendering"]
end

subgraph group_data["Salesforce Data"]
  node_apex["Apex invocation examples"]
  node_wire_record["Record wire adapter"]
  node_wire_user["Current-user wire data"]
  node_list_data["List and record adapters"]
  node_record_forms["Record forms"]
  node_record_changes["Record create, update, delete"]
  node_lightning_api{{"Lightning platform APIs"}}
end

subgraph group_navigation["Navigation"]
  node_navigation_demos["Navigation examples"]
  node_aura_navigation["LWC-to-Aura navigation"]
end

subgraph group_messaging["Messaging and Integration"]
  node_aura_lwc["Aura–LWC communication"]
  node_lms_aura["Aura LMS example"]
  node_lms_lwc["LWC LMS examples<br/>[lmsComponentX.js]"]
  node_pubsub["Pub-sub examples<br/>[pubsub.js]"]
end

subgraph group_resources["Resources"]
  node_chart["Chart.js library<br/>[chartJs.js]"]
  node_third_party["Third-party resource example<br/>[thirdPartyFiles.js]"]
  node_resource_loader{{"Static resource loader"}}
end

node_user(("Salesforce user"))

node_user -->|"answers questions"| node_quiz
node_quiz -->|"shows score"| node_user
node_user -->|"plays game"| node_memory
node_memory -->|"shows completion"| node_user
node_wire_record -->|"wires getRecord"| node_lightning_api
node_wire_user -->|"wires getRecord"| node_lightning_api
node_record_changes -->|"updates records"| node_lightning_api
node_record_changes -->|"reads list view"| node_lightning_api
node_memory -->|"loads stylesheet"| node_resource_loader

click node_ui_examples "https://github.com/pinakimondal07/lwc-fundaments/tree/main/force-app/main/default/lwc"
click node_quiz "https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/lwc/quizApp/quizApp.js"
click node_memory "https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/lwc/memoryGameLwc/memoryGameLwc.js"
click node_composition "https://github.com/pinakimondal07/lwc-fundaments/tree/main/force-app/main/default/lwc"
click node_styling "https://github.com/pinakimondal07/lwc-fundaments/tree/main/force-app/main/default/lwc"
click node_aura_lwc "https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/aura/AuraLwcCommunication/AuraLwcCommunicationController.js"
click node_lms_aura "https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/aura/lmsAuraComponent/lmsAuraComponentController.js"
click node_lms_lwc "https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/lwc/lmsComponentX/lmsComponentX.js"
click node_pubsub "https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/lwc/pubsub/pubsub.js"
click node_apex "https://github.com/pinakimondal07/lwc-fundaments/tree/main/force-app/main/default/lwc"
click node_wire_record "https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/lwc/getRecordAdapter/getRecordAdapter.js"
click node_wire_user "https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/lwc/wireServiceandFetchUserDetails/wireServiceandFetchUserDetails.js"
click node_list_data "https://github.com/pinakimondal07/lwc-fundaments/tree/main/force-app/main/default/lwc"
click node_record_forms "https://github.com/pinakimondal07/lwc-fundaments/tree/main/force-app/main/default/lwc"
click node_record_changes "https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/lwc/updateRecordFunction/updateRecordFunction.js"
click node_navigation_demos "https://github.com/pinakimondal07/lwc-fundaments/tree/main/force-app/main/default/lwc"
click node_aura_navigation "https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/aura/lwcToAuraNavigation/lwcToAuraNavigationController.js"
click node_chart "https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/staticresources/chartJs.js"
click node_third_party "https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/lwc/thirdPartyFiles/thirdPartyFiles.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_ui_examples,node_quiz,node_memory,node_composition,node_styling,node_user toneBlue
class node_apex,node_wire_record,node_wire_user,node_list_data,node_record_forms,node_record_changes,node_lightning_api toneAmber
class node_navigation_demos,node_aura_navigation toneMint
class node_aura_lwc,node_lms_aura,node_lms_lwc,node_pubsub toneRose
class node_chart,node_third_party,node_resource_loader toneIndigo
```

## Components

### Component UI

- [UI and interaction demos](https://github.com/pinakimondal07/lwc-fundaments/tree/main/force-app/main/default/lwc): `force-app/main/default/lwc`
- [Quiz app](https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/lwc/quizApp/quizApp.js): `force-app/main/default/lwc/quizApp/quizApp.js`
- [Memory game](https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/lwc/memoryGameLwc/memoryGameLwc.js): `force-app/main/default/lwc/memoryGameLwc/memoryGameLwc.js`
- [Component composition](https://github.com/pinakimondal07/lwc-fundaments/tree/main/force-app/main/default/lwc): `force-app/main/default/lwc`
- [Styling and rendering](https://github.com/pinakimondal07/lwc-fundaments/tree/main/force-app/main/default/lwc): `force-app/main/default/lwc`

### Salesforce Data

- [Apex invocation examples](https://github.com/pinakimondal07/lwc-fundaments/tree/main/force-app/main/default/lwc): `force-app/main/default/lwc`
- [Record wire adapter](https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/lwc/getRecordAdapter/getRecordAdapter.js): `force-app/main/default/lwc/getRecordAdapter/getRecordAdapter.js`
- [Current-user wire data](https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/lwc/wireServiceandFetchUserDetails/wireServiceandFetchUserDetails.js): `force-app/main/default/lwc/wireServiceandFetchUserDetails/wireServiceandFetchUserDetails.js`
- [List and record adapters](https://github.com/pinakimondal07/lwc-fundaments/tree/main/force-app/main/default/lwc): `force-app/main/default/lwc`
- [Record forms](https://github.com/pinakimondal07/lwc-fundaments/tree/main/force-app/main/default/lwc): `force-app/main/default/lwc`
- [Record create, update, delete](https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/lwc/updateRecordFunction/updateRecordFunction.js): `force-app/main/default/lwc/updateRecordFunction/updateRecordFunction.js`
- **Lightning platform APIs**

### Navigation

- [Navigation examples](https://github.com/pinakimondal07/lwc-fundaments/tree/main/force-app/main/default/lwc): `force-app/main/default/lwc`
- [LWC-to-Aura navigation](https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/aura/lwcToAuraNavigation/lwcToAuraNavigationController.js): `force-app/main/default/aura/lwcToAuraNavigation/lwcToAuraNavigationController.js`

### Messaging and Integration

- [Aura–LWC communication](https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/aura/AuraLwcCommunication/AuraLwcCommunicationController.js): `force-app/main/default/aura/AuraLwcCommunication/AuraLwcCommunicationController.js`
- [Aura LMS example](https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/aura/lmsAuraComponent/lmsAuraComponentController.js): `force-app/main/default/aura/lmsAuraComponent/lmsAuraComponentController.js`
- [LWC LMS examples](https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/lwc/lmsComponentX/lmsComponentX.js): `force-app/main/default/lwc/lmsComponentX/lmsComponentX.js`
- [Pub-sub examples](https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/lwc/pubsub/pubsub.js): `force-app/main/default/lwc/pubsub/pubsub.js`

### Resources

- [Chart.js library](https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/staticresources/chartJs.js): `force-app/main/default/staticresources/chartJs.js`
- [Third-party resource example](https://github.com/pinakimondal07/lwc-fundaments/blob/main/force-app/main/default/lwc/thirdPartyFiles/thirdPartyFiles.js): `force-app/main/default/lwc/thirdPartyFiles/thirdPartyFiles.js`
- **Static resource loader**

### Other components

- **Salesforce user**

## Connections

- Salesforce user → Quiz app: answers questions (evidence: `force-app/main/default/lwc/quizApp/quizApp.js`)
- Quiz app → Salesforce user: shows score (evidence: `force-app/main/default/lwc/quizApp/quizApp.js`)
- Salesforce user → Memory game: plays game (evidence: `force-app/main/default/lwc/memoryGameLwc/memoryGameLwc.js`)
- Memory game → Salesforce user: shows completion (evidence: `force-app/main/default/lwc/memoryGameLwc/memoryGameLwc.js`)
- Record wire adapter → Lightning platform APIs: wires getRecord (evidence: `force-app/main/default/lwc/getRecordAdapter/getRecordAdapter.js`)
- Current-user wire data → Lightning platform APIs: wires getRecord (evidence: `force-app/main/default/lwc/wireServiceandFetchUserDetails/wireServiceandFetchUserDetails.js`)
- Record create, update, delete → Lightning platform APIs: updates records (evidence: `force-app/main/default/lwc/updateRecordFunction/updateRecordFunction.js`)
- Record create, update, delete → Lightning platform APIs: reads list view (evidence: `force-app/main/default/lwc/updateRecordFunction/updateRecordFunction.js`)
- Memory game → Static resource loader: loads stylesheet (evidence: `force-app/main/default/lwc/memoryGameLwc/memoryGameLwc.js`)
