# splunk/scs-getting-started-app architecture

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

- Interactive diagram: https://gitdiagram.com/splunk/scs-getting-started-app
- Repository: https://github.com/splunk/scs-getting-started-app

## Overview

Transit Dashboard App is a React application that authenticates a user with Splunk Cloud Services and displays transit status by stop. The documented data path prepares sample transit events through a passthrough pipeline for indexing and search; the dashboard uses a definition and cloud data-source context to present results. The graph includes documented ingestion stages even though their service-side implementation is outside this repository. Source excerpts establish app wiring; README statements support the broader pipeline, with unsampled service internals left external.

Main entry points: [`transit_dashboard_app/src/App.jsx`](https://github.com/splunk/scs-getting-started-app/blob/master/transit_dashboard_app/src/App.jsx) (App and auth gate), [`transit_dashboard_app/src/Dashboard.jsx`](https://github.com/splunk/scs-getting-started-app/blob/master/transit_dashboard_app/src/Dashboard.jsx) (Transit dashboard), [`transit_dashboard_app/src/auth.js`](https://github.com/splunk/scs-getting-started-app/blob/master/transit_dashboard_app/src/auth.js) (Auth client), [`transit_dashboard_app/src/index.jsx`](https://github.com/splunk/scs-getting-started-app/blob/master/transit_dashboard_app/src/index.jsx) (React entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Dashboard app"]
  node_entry["React entry<br/>[index.jsx]"]
  node_appflow["App and auth gate<br/>[App.jsx]"]
  node_auth["Auth client<br/>[auth.js]"]
  node_config["App configuration<br/>[config.json]"]
  node_dashboard["Transit dashboard<br/>[Dashboard.jsx]"]
  node_definition["Dashboard definition<br/>[definition.json]"]
end

subgraph group_data["Transit data"]
  node_agencies["Agency coverage data"]
  node_arrivals["Arrival/departure data"]
  node_pipeline["Passthrough pipeline<br/>[passthrough.spl]"]
end

subgraph group_platform["Splunk platform"]
  node_firehose["Splunk Firehose"]
  node_dsp["Data Stream Processor"]
  node_index[("Main index")]
  node_cloud["Splunk Cloud APIs"]
end

subgraph group_presentation["UI presentation"]
  node_styles["Shared styles<br/>[styles.js]"]
end

node_rider(("Transit user"))

node_rider -->|"opens app"| node_entry
node_entry -->|"renders"| node_appflow
node_appflow -->|"reads settings"| node_config
node_appflow -->|"checks login"| node_auth
node_auth -->|"authenticates"| node_cloud
node_appflow -->|"renders when logged in"| node_dashboard
node_appflow -->|"renders states"| node_styles
node_dashboard -->|"passes auth client"| node_auth
node_dashboard -->|"reads data context"| node_config
node_dashboard -->|"loads definition"| node_definition
node_dashboard -.->|"queries transit data"| node_cloud
node_agencies -.->|"sample input"| node_firehose
node_arrivals -.->|"sample input"| node_firehose
node_firehose -->|"streams events"| node_dsp
node_dsp -->|"processes with"| node_pipeline
node_pipeline -->|"writes events"| node_index
node_index -->|"serves searches"| node_cloud

click node_entry "https://github.com/splunk/scs-getting-started-app/blob/master/transit_dashboard_app/src/index.jsx"
click node_appflow "https://github.com/splunk/scs-getting-started-app/blob/master/transit_dashboard_app/src/App.jsx"
click node_auth "https://github.com/splunk/scs-getting-started-app/blob/master/transit_dashboard_app/src/auth.js"
click node_config "https://github.com/splunk/scs-getting-started-app/blob/master/transit_dashboard_app/src/config/config.json"
click node_dashboard "https://github.com/splunk/scs-getting-started-app/blob/master/transit_dashboard_app/src/Dashboard.jsx"
click node_definition "https://github.com/splunk/scs-getting-started-app/blob/master/transit_dashboard_app/src/definition.json"
click node_styles "https://github.com/splunk/scs-getting-started-app/blob/master/transit_dashboard_app/src/styles.js"
click node_agencies "https://github.com/splunk/scs-getting-started-app/blob/master/data/agencies-with-coverage.json"
click node_arrivals "https://github.com/splunk/scs-getting-started-app/blob/master/data/arrivals-and-departures.json"
click node_pipeline "https://github.com/splunk/scs-getting-started-app/blob/master/data/passthrough.spl"

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_entry,node_appflow,node_auth,node_config,node_dashboard,node_definition,node_rider toneBlue
class node_agencies,node_arrivals,node_pipeline toneAmber
class node_firehose,node_dsp,node_index,node_cloud toneMint
class node_styles toneRose
```

## Components

### Dashboard app

- [React entry](https://github.com/splunk/scs-getting-started-app/blob/master/transit_dashboard_app/src/index.jsx): `transit_dashboard_app/src/index.jsx`
- [App and auth gate](https://github.com/splunk/scs-getting-started-app/blob/master/transit_dashboard_app/src/App.jsx): `transit_dashboard_app/src/App.jsx`
- [Auth client](https://github.com/splunk/scs-getting-started-app/blob/master/transit_dashboard_app/src/auth.js): `transit_dashboard_app/src/auth.js`
- [App configuration](https://github.com/splunk/scs-getting-started-app/blob/master/transit_dashboard_app/src/config/config.json): `transit_dashboard_app/src/config/config.json`
- [Transit dashboard](https://github.com/splunk/scs-getting-started-app/blob/master/transit_dashboard_app/src/Dashboard.jsx): `transit_dashboard_app/src/Dashboard.jsx`
- [Dashboard definition](https://github.com/splunk/scs-getting-started-app/blob/master/transit_dashboard_app/src/definition.json): `transit_dashboard_app/src/definition.json`

### Transit data

- [Agency coverage data](https://github.com/splunk/scs-getting-started-app/blob/master/data/agencies-with-coverage.json): `data/agencies-with-coverage.json`
- [Arrival/departure data](https://github.com/splunk/scs-getting-started-app/blob/master/data/arrivals-and-departures.json): `data/arrivals-and-departures.json`
- [Passthrough pipeline](https://github.com/splunk/scs-getting-started-app/blob/master/data/passthrough.spl): `data/passthrough.spl`

### Splunk platform

- **Splunk Firehose**
- **Data Stream Processor**
- **Main index**
- **Splunk Cloud APIs**

### UI presentation

- [Shared styles](https://github.com/splunk/scs-getting-started-app/blob/master/transit_dashboard_app/src/styles.js): `transit_dashboard_app/src/styles.js`

### Other components

- **Transit user**

## Connections

- Transit user → React entry: opens app (evidence: `transit_dashboard_app/src/index.jsx`)
- React entry → App and auth gate: renders (evidence: `transit_dashboard_app/src/index.jsx`)
- App and auth gate → App configuration: reads settings (evidence: `transit_dashboard_app/src/App.jsx`)
- App and auth gate → Auth client: checks login (evidence: `transit_dashboard_app/src/App.jsx`)
- Auth client → Splunk Cloud APIs: authenticates (evidence: `transit_dashboard_app/src/auth.js`)
- App and auth gate → Transit dashboard: renders when logged in (evidence: `transit_dashboard_app/src/App.jsx`)
- App and auth gate → Shared styles: renders states (evidence: `transit_dashboard_app/src/App.jsx`)
- Transit dashboard → Auth client: passes auth client (evidence: `transit_dashboard_app/src/Dashboard.jsx`)
- Transit dashboard → App configuration: reads data context (evidence: `transit_dashboard_app/src/Dashboard.jsx`)
- Transit dashboard → Dashboard definition: loads definition (evidence: `transit_dashboard_app/src/Dashboard.jsx`)
- Transit dashboard → Splunk Cloud APIs: queries transit data (evidence: `README.md`)
- Agency coverage data → Splunk Firehose: sample input (evidence: `README.md`)
- Arrival/departure data → Splunk Firehose: sample input (evidence: `README.md`)
- Splunk Firehose → Data Stream Processor: streams events (evidence: `README.md`)
- Data Stream Processor → Passthrough pipeline: processes with (evidence: `README.md`)
- Passthrough pipeline → Main index: writes events (evidence: `README.md`)
- Main index → Splunk Cloud APIs: serves searches (evidence: `README.md`)
