# hcl-tech-software/leap-custom-widgets architecture

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

- Interactive diagram: https://gitdiagram.com/hcl-tech-software/leap-custom-widgets
- Repository: https://github.com/hcl-tech-software/leap-custom-widgets

## Overview

This repository is a collection of custom-widget examples for HCL Leap and Domino Leap, not the host product itself. The documented workflow is to add custom widgets to Leap; the samples illustrate that extension point, including charts, gauges, notifications, color picking, ratings, switches, and signatures. Source excerpts were not provided, so internal rendering, API calls, and third-party integrations cannot be verified; relationships below rely only on the README’s description of custom widgets and samples.

Main entry points: [`samples/chartjs-widget/src/chartJS.js`](https://github.com/hcl-tech-software/leap-custom-widgets/blob/main/samples/chartjs-widget/src/chartJS.js) (Chart widget), [`samples/colorPicker-widget/colorPicker.js`](https://github.com/hcl-tech-software/leap-custom-widgets/blob/main/samples/colorPicker-widget/colorPicker.js) (Color picker), [`samples/gauge-widget/gauge.js`](https://github.com/hcl-tech-software/leap-custom-widgets/blob/main/samples/gauge-widget/gauge.js) (Gauge widget), [`samples/mui-widgets/src/MUIRatingComponent.jsx`](https://github.com/hcl-tech-software/leap-custom-widgets/blob/main/samples/mui-widgets/src/MUIRatingComponent.jsx) (Rating widget)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_widgets["Widget samples"]
  node_chart["Chart widget<br/>[chartJS.js]"]
  node_color["Color picker<br/>[colorPicker.js]"]
  node_gauge["Gauge widget<br/>[gauge.js]"]
  node_rating["Rating widget"]
  node_switch["Switch widget"]
  node_notification["Notification widget<br/>[notification.js]"]
  node_signature["Signature widget<br/>[signature.js]"]
end

subgraph group_host["Leap integration"]
  node_leap(("Leap host"))
end

node_chart -->|"augments"| node_leap
node_color -->|"augments"| node_leap
node_gauge -->|"augments"| node_leap
node_rating -->|"augments"| node_leap
node_switch -->|"augments"| node_leap
node_notification -->|"augments"| node_leap
node_signature -->|"augments"| node_leap

click node_chart "https://github.com/hcl-tech-software/leap-custom-widgets/blob/main/samples/chartjs-widget/src/chartJS.js"
click node_color "https://github.com/hcl-tech-software/leap-custom-widgets/blob/main/samples/colorPicker-widget/colorPicker.js"
click node_gauge "https://github.com/hcl-tech-software/leap-custom-widgets/blob/main/samples/gauge-widget/gauge.js"
click node_rating "https://github.com/hcl-tech-software/leap-custom-widgets/blob/main/samples/mui-widgets/src/MUIRatingComponent.jsx"
click node_switch "https://github.com/hcl-tech-software/leap-custom-widgets/blob/main/samples/mui-widgets/src/MUISwitchComponent.jsx"
click node_notification "https://github.com/hcl-tech-software/leap-custom-widgets/blob/main/samples/notification-widget/notification.js"
click node_signature "https://github.com/hcl-tech-software/leap-custom-widgets/blob/main/samples/signature-widget/src/signature.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_chart,node_color,node_gauge,node_rating,node_switch,node_notification,node_signature toneBlue
class node_leap toneAmber
```

## Components

### Widget samples

- [Chart widget](https://github.com/hcl-tech-software/leap-custom-widgets/blob/main/samples/chartjs-widget/src/chartJS.js): `samples/chartjs-widget/src/chartJS.js`
- [Color picker](https://github.com/hcl-tech-software/leap-custom-widgets/blob/main/samples/colorPicker-widget/colorPicker.js): `samples/colorPicker-widget/colorPicker.js`
- [Gauge widget](https://github.com/hcl-tech-software/leap-custom-widgets/blob/main/samples/gauge-widget/gauge.js): `samples/gauge-widget/gauge.js`
- [Rating widget](https://github.com/hcl-tech-software/leap-custom-widgets/blob/main/samples/mui-widgets/src/MUIRatingComponent.jsx): `samples/mui-widgets/src/MUIRatingComponent.jsx`
- [Switch widget](https://github.com/hcl-tech-software/leap-custom-widgets/blob/main/samples/mui-widgets/src/MUISwitchComponent.jsx): `samples/mui-widgets/src/MUISwitchComponent.jsx`
- [Notification widget](https://github.com/hcl-tech-software/leap-custom-widgets/blob/main/samples/notification-widget/notification.js): `samples/notification-widget/notification.js`
- [Signature widget](https://github.com/hcl-tech-software/leap-custom-widgets/blob/main/samples/signature-widget/src/signature.js): `samples/signature-widget/src/signature.js`

### Leap integration

- **Leap host**

## Connections

- Chart widget → Leap host: augments (evidence: `README.md`)
- Color picker → Leap host: augments (evidence: `README.md`)
- Gauge widget → Leap host: augments (evidence: `README.md`)
- Rating widget → Leap host: augments (evidence: `README.md`)
- Switch widget → Leap host: augments (evidence: `README.md`)
- Notification widget → Leap host: augments (evidence: `README.md`)
- Signature widget → Leap host: augments (evidence: `README.md`)
