# servicenow/sdk-examples architecture

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

- Interactive diagram: https://gitdiagram.com/servicenow/sdk-examples
- Repository: https://github.com/servicenow/sdk-examples

## Overview

This repository is a collection of independent ServiceNow SDK and Fluent-language examples, rather than one deployed application. The main user workflow is a developer exploring a sample and adapting it to build a ServiceNow capability. The README identifies the samples and their purposes; sampled UI code also shows incident-management pages coordinating UI components with an incident service. Other sample internals were not inspected, so their documented capabilities are represented without guessed runtime connections.

Main entry points: [`react-ui-page-ts-sample/src/client/app.tsx`](https://github.com/servicenow/sdk-examples/blob/main/react-ui-page-ts-sample/src/client/app.tsx) (React App), [`react-ui-page-vite-sample/src/client/app.tsx`](https://github.com/servicenow/sdk-examples/blob/main/react-ui-page-vite-sample/src/client/app.tsx) (React Vite App), [`vue-ui-page-sample/src/client/App.vue`](https://github.com/servicenow/sdk-examples/blob/main/vue-ui-page-sample/src/client/App.vue) (Vue App), [`react-ui-page-ts-sample/src/client/components`](https://github.com/servicenow/sdk-examples/tree/main/react-ui-page-ts-sample/src/client/components) (React UI Components)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Incident UI Samples"]
  node_react_ts_app["React App<br/>[app.tsx]"]
  node_react_components["React UI Components"]
  node_react_service["React Incident Service<br/>[IncidentService.ts]"]
  node_react_page["React UI Page"]
  node_vite_app["React Vite App<br/>[app.tsx]"]
  node_vite_components["React Vite Components"]
  node_vite_service["React Vite Incident Service<br/>[IncidentService.ts]"]
  node_vite_page["React Vite UI Page"]
  node_vue_app["Vue App<br/>[App.vue]"]
  node_vue_components["Vue UI Components"]
  node_vue_service["Vue Incident Service<br/>[IncidentService.ts]"]
  node_solid_app["SolidJS UI"]
  node_svelte_app["Svelte UI"]
  node_components_vite["React Components Sample"]
end

subgraph group_platform["Platform Configuration"]
  node_acl["Access Control"]
  node_menu["Application Menu"]
  node_business_rule["Business Rules"]
  node_client_script["Client Scripts"]
  node_table["Tables"]
  node_record["Records"]
  node_list["Lists<br/>[list.now.ts]"]
  node_hello["Basic Application"]
end

subgraph group_automation["Automation and APIs"]
  node_flow["Flow Automation"]
  node_rest["Scripted REST API"]
  node_script_action["Script Actions"]
  node_state_model["State Models"]
end

subgraph group_portal["Portal and Catalog"]
  node_portal["Service Portal"]
  node_catalog["Service Catalog"]
end

subgraph group_extension["Extensions and Testing"]
  node_ui_action["UI Actions<br/>[ui-action.now.ts]"]
  node_ui_page["UI Pages<br/>[ui-page.now.ts]"]
  node_script_include["Script Includes"]
  node_dependencies["Table Dependencies"]
  node_cross_scope["Cross-Scope Modules"]
end

node_developer(("Developer"))

node_developer -->|"explores"| node_acl
node_developer -->|"explores"| node_menu
node_developer -->|"explores"| node_business_rule
node_developer -->|"explores"| node_client_script
node_developer -->|"explores"| node_table
node_developer -->|"explores"| node_record
node_developer -->|"explores"| node_list
node_developer -->|"explores"| node_hello
node_developer -->|"explores"| node_flow
node_developer -->|"explores"| node_rest
node_developer -->|"explores"| node_script_action
node_developer -->|"adapts"| node_state_model
node_developer -->|"explores"| node_portal
node_developer -->|"explores"| node_catalog
node_developer -->|"explores"| node_ui_action
node_developer -->|"explores"| node_ui_page
node_developer -->|"explores"| node_script_include
node_developer -->|"explores"| node_dependencies
node_developer -->|"explores"| node_cross_scope
node_developer -->|"adapts"| node_react_ts_app
node_developer -->|"adapts"| node_vite_app
node_developer -->|"adapts"| node_vue_app
node_developer -->|"adapts"| node_solid_app
node_developer -->|"adapts"| node_svelte_app
node_developer -->|"adapts"| node_components_vite
node_react_ts_app -->|"calls"| node_react_service
node_react_ts_app -->|"renders"| node_react_components
node_vite_app -->|"calls"| node_vite_service
node_vite_app -->|"renders"| node_vite_components
node_vue_app -->|"calls"| node_vue_service
node_vue_app -->|"renders"| node_vue_components

click node_react_ts_app "https://github.com/servicenow/sdk-examples/blob/main/react-ui-page-ts-sample/src/client/app.tsx"
click node_react_components "https://github.com/servicenow/sdk-examples/tree/main/react-ui-page-ts-sample/src/client/components"
click node_react_service "https://github.com/servicenow/sdk-examples/blob/main/react-ui-page-ts-sample/src/client/services/IncidentService.ts"
click node_react_page "https://github.com/servicenow/sdk-examples/blob/main/react-ui-page-ts-sample/src/fluent/ui-pages/incident-manager.now.ts"
click node_vite_app "https://github.com/servicenow/sdk-examples/blob/main/react-ui-page-vite-sample/src/client/app.tsx"
click node_vite_components "https://github.com/servicenow/sdk-examples/tree/main/react-ui-page-vite-sample/src/client/components"
click node_vite_service "https://github.com/servicenow/sdk-examples/blob/main/react-ui-page-vite-sample/src/client/services/IncidentService.ts"
click node_vite_page "https://github.com/servicenow/sdk-examples/blob/main/react-ui-page-vite-sample/src/fluent/ui-pages/incident-manager.now.ts"
click node_vue_app "https://github.com/servicenow/sdk-examples/blob/main/vue-ui-page-sample/src/client/App.vue"
click node_vue_components "https://github.com/servicenow/sdk-examples/tree/main/vue-ui-page-sample/src/client/components"
click node_vue_service "https://github.com/servicenow/sdk-examples/blob/main/vue-ui-page-sample/src/client/services/IncidentService.ts"
click node_solid_app "https://github.com/servicenow/sdk-examples/tree/main/solidjs-ui-page-sample/src/client"
click node_svelte_app "https://github.com/servicenow/sdk-examples/tree/main/svelte-ui-page-sample/src/client"
click node_components_vite "https://github.com/servicenow/sdk-examples/tree/main/react-components-vite-sample/src/client"
click node_acl "https://github.com/servicenow/sdk-examples/tree/main/acl-sample/src/fluent"
click node_menu "https://github.com/servicenow/sdk-examples/blob/main/applicationmenu-sample/src/fluent/application-menu.now.ts"
click node_business_rule "https://github.com/servicenow/sdk-examples/tree/main/businessrule-sample/src/fluent"
click node_client_script "https://github.com/servicenow/sdk-examples/tree/main/clientscript-sample/src/fluent"
click node_table "https://github.com/servicenow/sdk-examples/tree/main/table-sample/src/fluent"
click node_record "https://github.com/servicenow/sdk-examples/tree/main/record-sample/src/fluent"
click node_list "https://github.com/servicenow/sdk-examples/blob/main/list-sample/src/fluent/list.now.ts"
click node_hello "https://github.com/servicenow/sdk-examples/tree/main/hello-world-sample/src/fluent"
click node_flow "https://github.com/servicenow/sdk-examples/tree/main/flow-sample/src/fluent"
click node_rest "https://github.com/servicenow/sdk-examples/tree/main/restapi-sample/src/fluent"
click node_script_action "https://github.com/servicenow/sdk-examples/tree/main/scriptaction-sample/src/fluent"
click node_state_model "https://github.com/servicenow/sdk-examples/tree/main/state-model-sample/src/fluent"
click node_portal "https://github.com/servicenow/sdk-examples/tree/main/service-portal-sample/src/fluent"
click node_catalog "https://github.com/servicenow/sdk-examples/tree/main/service-catalog-sample/src/fluent"
click node_ui_action "https://github.com/servicenow/sdk-examples/blob/main/uiaction-sample/src/fluent/ui-action.now.ts"
click node_ui_page "https://github.com/servicenow/sdk-examples/blob/main/uipage-sample/src/fluent/ui-page.now.ts"
click node_script_include "https://github.com/servicenow/sdk-examples/tree/main/script-include-sample/src/fluent"
click node_dependencies "https://github.com/servicenow/sdk-examples/tree/main/dependencies-sample/src/fluent"
click node_cross_scope "https://github.com/servicenow/sdk-examples/tree/main/sys_module-sample/src"

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_react_ts_app,node_react_components,node_react_service,node_react_page,node_vite_app,node_vite_components,node_vite_service,node_vite_page,node_vue_app,node_vue_components,node_vue_service,node_solid_app,node_svelte_app,node_components_vite toneBlue
class node_acl,node_menu,node_business_rule,node_client_script,node_table,node_record,node_list,node_hello toneAmber
class node_flow,node_rest,node_script_action,node_state_model toneMint
class node_portal,node_catalog toneRose
class node_ui_action,node_ui_page,node_script_include,node_dependencies,node_cross_scope,node_developer toneIndigo
```

## Components

### Incident UI Samples

- [React App](https://github.com/servicenow/sdk-examples/blob/main/react-ui-page-ts-sample/src/client/app.tsx): `react-ui-page-ts-sample/src/client/app.tsx`
- [React UI Components](https://github.com/servicenow/sdk-examples/tree/main/react-ui-page-ts-sample/src/client/components): `react-ui-page-ts-sample/src/client/components`
- [React Incident Service](https://github.com/servicenow/sdk-examples/blob/main/react-ui-page-ts-sample/src/client/services/IncidentService.ts): `react-ui-page-ts-sample/src/client/services/IncidentService.ts`
- [React UI Page](https://github.com/servicenow/sdk-examples/blob/main/react-ui-page-ts-sample/src/fluent/ui-pages/incident-manager.now.ts): `react-ui-page-ts-sample/src/fluent/ui-pages/incident-manager.now.ts`
- [React Vite App](https://github.com/servicenow/sdk-examples/blob/main/react-ui-page-vite-sample/src/client/app.tsx): `react-ui-page-vite-sample/src/client/app.tsx`
- [React Vite Components](https://github.com/servicenow/sdk-examples/tree/main/react-ui-page-vite-sample/src/client/components): `react-ui-page-vite-sample/src/client/components`
- [React Vite Incident Service](https://github.com/servicenow/sdk-examples/blob/main/react-ui-page-vite-sample/src/client/services/IncidentService.ts): `react-ui-page-vite-sample/src/client/services/IncidentService.ts`
- [React Vite UI Page](https://github.com/servicenow/sdk-examples/blob/main/react-ui-page-vite-sample/src/fluent/ui-pages/incident-manager.now.ts): `react-ui-page-vite-sample/src/fluent/ui-pages/incident-manager.now.ts`
- [Vue App](https://github.com/servicenow/sdk-examples/blob/main/vue-ui-page-sample/src/client/App.vue): `vue-ui-page-sample/src/client/App.vue`
- [Vue UI Components](https://github.com/servicenow/sdk-examples/tree/main/vue-ui-page-sample/src/client/components): `vue-ui-page-sample/src/client/components`
- [Vue Incident Service](https://github.com/servicenow/sdk-examples/blob/main/vue-ui-page-sample/src/client/services/IncidentService.ts): `vue-ui-page-sample/src/client/services/IncidentService.ts`
- [SolidJS UI](https://github.com/servicenow/sdk-examples/tree/main/solidjs-ui-page-sample/src/client): `solidjs-ui-page-sample/src/client`
- [Svelte UI](https://github.com/servicenow/sdk-examples/tree/main/svelte-ui-page-sample/src/client): `svelte-ui-page-sample/src/client`
- [React Components Sample](https://github.com/servicenow/sdk-examples/tree/main/react-components-vite-sample/src/client): `react-components-vite-sample/src/client`

### Platform Configuration

- [Access Control](https://github.com/servicenow/sdk-examples/tree/main/acl-sample/src/fluent): `acl-sample/src/fluent`
- [Application Menu](https://github.com/servicenow/sdk-examples/blob/main/applicationmenu-sample/src/fluent/application-menu.now.ts): `applicationmenu-sample/src/fluent/application-menu.now.ts`
- [Business Rules](https://github.com/servicenow/sdk-examples/tree/main/businessrule-sample/src/fluent): `businessrule-sample/src/fluent`
- [Client Scripts](https://github.com/servicenow/sdk-examples/tree/main/clientscript-sample/src/fluent): `clientscript-sample/src/fluent`
- [Tables](https://github.com/servicenow/sdk-examples/tree/main/table-sample/src/fluent): `table-sample/src/fluent`
- [Records](https://github.com/servicenow/sdk-examples/tree/main/record-sample/src/fluent): `record-sample/src/fluent`
- [Lists](https://github.com/servicenow/sdk-examples/blob/main/list-sample/src/fluent/list.now.ts): `list-sample/src/fluent/list.now.ts`
- [Basic Application](https://github.com/servicenow/sdk-examples/tree/main/hello-world-sample/src/fluent): `hello-world-sample/src/fluent`

### Automation and APIs

- [Flow Automation](https://github.com/servicenow/sdk-examples/tree/main/flow-sample/src/fluent): `flow-sample/src/fluent`
- [Scripted REST API](https://github.com/servicenow/sdk-examples/tree/main/restapi-sample/src/fluent): `restapi-sample/src/fluent`
- [Script Actions](https://github.com/servicenow/sdk-examples/tree/main/scriptaction-sample/src/fluent): `scriptaction-sample/src/fluent`
- [State Models](https://github.com/servicenow/sdk-examples/tree/main/state-model-sample/src/fluent): `state-model-sample/src/fluent`

### Portal and Catalog

- [Service Portal](https://github.com/servicenow/sdk-examples/tree/main/service-portal-sample/src/fluent): `service-portal-sample/src/fluent`
- [Service Catalog](https://github.com/servicenow/sdk-examples/tree/main/service-catalog-sample/src/fluent): `service-catalog-sample/src/fluent`

### Extensions and Testing

- [UI Actions](https://github.com/servicenow/sdk-examples/blob/main/uiaction-sample/src/fluent/ui-action.now.ts): `uiaction-sample/src/fluent/ui-action.now.ts`
- [UI Pages](https://github.com/servicenow/sdk-examples/blob/main/uipage-sample/src/fluent/ui-page.now.ts): `uipage-sample/src/fluent/ui-page.now.ts`
- [Script Includes](https://github.com/servicenow/sdk-examples/tree/main/script-include-sample/src/fluent): `script-include-sample/src/fluent`
- [Table Dependencies](https://github.com/servicenow/sdk-examples/tree/main/dependencies-sample/src/fluent): `dependencies-sample/src/fluent`
- [Cross-Scope Modules](https://github.com/servicenow/sdk-examples/tree/main/sys_module-sample/src): `sys_module-sample/src`

### Other components

- **Developer**

## Connections

- Developer → Access Control: explores (evidence: `README.md`)
- Developer → Application Menu: explores (evidence: `README.md`)
- Developer → Business Rules: explores (evidence: `README.md`)
- Developer → Client Scripts: explores (evidence: `README.md`)
- Developer → Tables: explores (evidence: `README.md`)
- Developer → Records: explores (evidence: `README.md`)
- Developer → Lists: explores (evidence: `README.md`)
- Developer → Basic Application: explores (evidence: `README.md`)
- Developer → Flow Automation: explores (evidence: `README.md`)
- Developer → Scripted REST API: explores (evidence: `README.md`)
- Developer → Script Actions: explores (evidence: `README.md`)
- Developer → State Models: adapts (evidence: `README.md`)
- Developer → Service Portal: explores (evidence: `README.md`)
- Developer → Service Catalog: explores (evidence: `README.md`)
- Developer → UI Actions: explores (evidence: `README.md`)
- Developer → UI Pages: explores (evidence: `README.md`)
- Developer → Script Includes: explores (evidence: `README.md`)
- Developer → Table Dependencies: explores (evidence: `README.md`)
- Developer → Cross-Scope Modules: explores (evidence: `README.md`)
- Developer → React App: adapts (evidence: `README.md`)
- Developer → React Vite App: adapts (evidence: `README.md`)
- Developer → Vue App: adapts (evidence: `README.md`)
- Developer → SolidJS UI: adapts (evidence: `README.md`)
- Developer → Svelte UI: adapts (evidence: `README.md`)
- Developer → React Components Sample: adapts (evidence: `README.md`)
- React App → React Incident Service: calls (evidence: `react-ui-page-ts-sample/src/client/app.tsx`)
- React App → React UI Components: renders (evidence: `react-ui-page-ts-sample/src/client/app.tsx`)
- React Vite App → React Vite Incident Service: calls (evidence: `react-ui-page-vite-sample/src/client/app.tsx`)
- React Vite App → React Vite Components: renders (evidence: `react-ui-page-vite-sample/src/client/app.tsx`)
- Vue App → Vue Incident Service: calls (evidence: `vue-ui-page-sample/src/client/App.vue`)
- Vue App → Vue UI Components: renders (evidence: `vue-ui-page-sample/src/client/App.vue`)
