# pnp/sp-dev-fx-webparts architecture

> Architecture diagram of the GitHub repository pnp/sp-dev-fx-webparts, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pnp/sp-dev-fx-webparts
- Repository: https://github.com/pnp/sp-dev-fx-webparts

## Overview

This repository is a catalog of independent SharePoint Framework client-side web-part samples, not one application with a shared runtime. The documented user journey is to choose a sample, develop and preview its web part in SharePoint Workbench, then deploy it to a SharePoint page. Samples may use plain JavaScript or frameworks such as AngularJS and React. The tree confirms many separate sample solutions; no source excerpts were provided, so internal calls and sample-specific integrations are not represented.

Main entry points: [`samples`](https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples) (Client-side web part)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Sample catalog"]
  node_samples["Independent samples"]
end

subgraph group_spfx["SPFx experience"]
  node_webpart["Client-side web part"]
end

node_developer(("Sample user"))
node_workbench["SharePoint Workbench"]
node_sharepoint["SharePoint page"]
node_frameworks["Optional frameworks"]

node_developer -->|"chooses sample"| node_samples
node_samples -->|"contains examples"| node_webpart
node_developer -->|"previews in"| node_workbench
node_webpart -->|"runs in"| node_workbench
node_webpart -->|"deploys to"| node_sharepoint
node_frameworks -.->|"may build with"| node_webpart

click node_samples "https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples"
click node_webpart "https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples"

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_samples,node_developer toneBlue
class node_webpart toneAmber
class node_workbench,node_sharepoint,node_frameworks toneIndigo
```

## Components

### Sample catalog

- [Independent samples](https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples): `samples`

### SPFx experience

- [Client-side web part](https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples): `samples`

### Other components

- **Sample user**
- **SharePoint Workbench**
- **SharePoint page**
- **Optional frameworks**

## Connections

- Sample user → Independent samples: chooses sample (evidence: `README.md`)
- Independent samples → Client-side web part: contains examples (evidence: `README.md`)
- Sample user → SharePoint Workbench: previews in (evidence: `README.md`)
- Client-side web part → SharePoint Workbench: runs in (evidence: `README.md`)
- Client-side web part → SharePoint page: deploys to (evidence: `README.md`)
- Optional frameworks → Client-side web part: may build with (evidence: `README.md`)
