# souravkh/dum-e architecture

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

- Interactive diagram: https://gitdiagram.com/souravkh/dum-e
- Repository: https://github.com/souravkh/dum-e

## Overview

DUM-E is a browser-based prompt testing toolkit. Its visible capabilities include selecting a text file, running and timing prompt tests, presenting prompt results, and exporting prompt records as TXT or XLSX. The entry point mounts the React app; the sampled upload component validates file extensions, while file parsing and result presentation are separate modules. App composition and several connections between features are not shown in the excerpts, so those relationships are left unspecified rather than inferred.

Main entry points: [`src/main.tsx`](https://github.com/souravkh/dum-e/blob/main/src/main.tsx) (React Entry), [`src/features/prompt-management/PromptManagement.tsx`](https://github.com/souravkh/dum-e/blob/main/src/features/prompt-management/PromptManagement.tsx) (Prompt Upload), [`src/App.tsx`](https://github.com/souravkh/dum-e/blob/main/src/App.tsx) (Application), [`src/features/utils/ExtensionHelper.ts`](https://github.com/souravkh/dum-e/blob/main/src/features/utils/ExtensionHelper.ts) (TXT Extension Check)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application UI"]
  node_entry["React Entry<br/>[main.tsx]"]
  node_app["Application<br/>[App.tsx]"]
  node_shell["App Shell<br/>[AppShell.tsx]"]
  node_header["Header<br/>[header.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
end

subgraph group_workflow["Prompt Workflow"]
  node_upload["Prompt Upload"]
  node_runner["Prompt Test Runner<br/>[TextRunner.tsx]"]
  node_results["Prompt Results<br/>[Prompts.tsx]"]
end

subgraph group_utilities["Prompt Utilities"]
  node_extension["TXT Extension Check<br/>[ExtensionHelper.ts]"]
  node_reader["TXT File Reader<br/>[TxtFileReader.ts]"]
  node_export["Prompt Export<br/>[exportService.ts]"]
end

node_browser(("User"))

node_entry -->|"mounts"| node_app
node_upload -->|"validates filename"| node_extension

click node_entry "https://github.com/souravkh/dum-e/blob/main/src/main.tsx"
click node_app "https://github.com/souravkh/dum-e/blob/main/src/App.tsx"
click node_shell "https://github.com/souravkh/dum-e/blob/main/src/AppShell.tsx"
click node_header "https://github.com/souravkh/dum-e/blob/main/src/features/header/header.tsx"
click node_footer "https://github.com/souravkh/dum-e/blob/main/src/features/footer/Footer.tsx"
click node_upload "https://github.com/souravkh/dum-e/blob/main/src/features/prompt-management/PromptManagement.tsx"
click node_runner "https://github.com/souravkh/dum-e/blob/main/src/features/test-runner/TextRunner.tsx"
click node_results "https://github.com/souravkh/dum-e/blob/main/src/features/result/Prompts.tsx"
click node_extension "https://github.com/souravkh/dum-e/blob/main/src/features/utils/ExtensionHelper.ts"
click node_reader "https://github.com/souravkh/dum-e/blob/main/src/features/utils/TxtFileReader.ts"
click node_export "https://github.com/souravkh/dum-e/blob/main/src/features/utils/exportService.ts"

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_app,node_shell,node_header,node_footer,node_browser toneBlue
class node_upload,node_runner,node_results toneAmber
class node_extension,node_reader,node_export toneMint
```

## Components

### Application UI

- [React Entry](https://github.com/souravkh/dum-e/blob/main/src/main.tsx): `src/main.tsx`
- [Application](https://github.com/souravkh/dum-e/blob/main/src/App.tsx): `src/App.tsx`
- [App Shell](https://github.com/souravkh/dum-e/blob/main/src/AppShell.tsx): `src/AppShell.tsx`
- [Header](https://github.com/souravkh/dum-e/blob/main/src/features/header/header.tsx): `src/features/header/header.tsx`
- [Footer](https://github.com/souravkh/dum-e/blob/main/src/features/footer/Footer.tsx): `src/features/footer/Footer.tsx`

### Prompt Workflow

- [Prompt Upload](https://github.com/souravkh/dum-e/blob/main/src/features/prompt-management/PromptManagement.tsx): `src/features/prompt-management/PromptManagement.tsx`
- [Prompt Test Runner](https://github.com/souravkh/dum-e/blob/main/src/features/test-runner/TextRunner.tsx): `src/features/test-runner/TextRunner.tsx`
- [Prompt Results](https://github.com/souravkh/dum-e/blob/main/src/features/result/Prompts.tsx): `src/features/result/Prompts.tsx`

### Prompt Utilities

- [TXT Extension Check](https://github.com/souravkh/dum-e/blob/main/src/features/utils/ExtensionHelper.ts): `src/features/utils/ExtensionHelper.ts`
- [TXT File Reader](https://github.com/souravkh/dum-e/blob/main/src/features/utils/TxtFileReader.ts): `src/features/utils/TxtFileReader.ts`
- [Prompt Export](https://github.com/souravkh/dum-e/blob/main/src/features/utils/exportService.ts): `src/features/utils/exportService.ts`

### Other components

- **User**

## Connections

- React Entry → Application: mounts (evidence: `src/main.tsx`)
- Prompt Upload → TXT Extension Check: validates filename (evidence: `src/features/prompt-management/PromptManagement.tsx`)
