# gangadhararao29/workbench architecture

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

- Interactive diagram: https://gitdiagram.com/gangadhararao29/workbench
- Repository: https://github.com/gangadhararao29/workbench

## Overview

Workbench is a browser-based developer utility workspace. Users discover a tool from the home dashboard or sidebar, open it in a routed, tabbed tool page, configure or run it, and retain workspace state in browser storage. The graph includes the documented domain tool families and representative engine layers, including all CORE MODULES. Many tool and shell implementations were not sampled; those capability nodes and links rely on README descriptions rather than inspected calls.

Main entry points: [`src/app/shell/tool-page/tool-page.ts`](https://github.com/gangadhararao29/workbench/blob/master/src/app/shell/tool-page/tool-page.ts) (Tool workspace), [`src/app/app.routes.ts`](https://github.com/gangadhararao29/workbench/blob/master/src/app/app.routes.ts) (Tool routes), [`src/app/tools/ef/ef-dbcontext/ef-dbcontext.ts`](https://github.com/gangadhararao29/workbench/blob/master/src/app/tools/ef/ef-dbcontext/ef-dbcontext.ts) (DbContext generator), [`src/app/core/tool/tool-instance.ts`](https://github.com/gangadhararao29/workbench/blob/master/src/app/core/tool/tool-instance.ts) (Tool instances)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspace["Workspace shell"]
  node_home["Home dashboard<br/>[home.ts]"]
  node_app["Application shell<br/>[app.ts]"]
  node_routes["Tool routes<br/>[app.routes.ts]"]
  node_toolpage["Tool workspace<br/>[tool-page.ts]"]
  node_sidebar["Tool sidebar<br/>[tool-sidebar.ts]"]
  node_options["Options panel<br/>[options-panel.ts]"]
  node_feedback["Feedback service"]
end

subgraph group_core["Tool framework"]
  node_registry["Tool registry<br/>[tool-registry.ts]"]
  node_instances["Tool instances<br/>[tool-instance.ts]"]
  node_storage[("Workspace storage")]
  node_routeguard["Tool type guard<br/>[tool-type.guard.ts]"]
  node_routecache["Route reuse"]
  node_editor["Code editor<br/>[code-editor.ts]"]
  node_naming["Code naming helpers<br/>[code-naming.ts]"]
end

subgraph group_jsondotnet["JSON and .NET"]
  node_json["JSON tools"]
  node_dotnet[".NET tools"]
  node_csharpformatter["C&#35; formatter engine"]
end

subgraph group_data["Data and database"]
  node_efdbcontext["DbContext generator<br/>[ef-dbcontext.ts]"]
  node_efengine["DbContext engine"]
  node_sql["SQL tools"]
  node_sqlcsharp["SQL to C&#35; engine"]
  node_efother["EF Core tools"]
end

subgraph group_api["API and frontend"]
  node_api["API tools"]
  node_apigen["API client generator<br/>[api-generator.ts]"]
  node_apiengine["API generation engine"]
end

subgraph group_general["General utilities"]
  node_general["General tools"]
  node_timestamp["Timestamp engine"]
end

node_developer(("Developer"))
node_firebase[("Firebase Firestore")]

node_developer -->|"browses tools"| node_home
node_home -.->|"opens tool route"| node_routes
node_developer -->|"selects tool"| node_sidebar
node_app -->|"renders"| node_sidebar
node_app -->|"renders"| node_options
node_app -->|"uses"| node_instances
node_routes -->|"routes home"| node_home
node_routes -->|"routes tools"| node_toolpage
node_routes -->|"guards tool route"| node_routeguard
node_developer -->|"uses tool tabs"| node_toolpage
node_toolpage -.->|"loads tools"| node_registry
node_toolpage -->|"manages instances"| node_instances
node_instances -.->|"persists state"| node_storage
node_routecache -.->|"reuses routes"| node_toolpage
node_developer -->|"runs JSON tools"| node_json
node_developer -->|"runs .NET tools"| node_dotnet
node_developer -->|"runs EF tools"| node_efother
node_developer -->|"runs SQL tools"| node_sql
node_developer -->|"runs API tools"| node_api
node_developer -->|"generates API clients"| node_apigen
node_apigen -.->|"generates code"| node_apiengine
node_developer -->|"uses utilities"| node_general
node_developer -->|"configures generation"| node_efdbcontext
node_efdbcontext -->|"calls generator"| node_efengine
node_efdbcontext -->|"reads configuration"| node_instances
node_efdbcontext -->|"renders output"| node_editor
node_efengine -->|"pluralizes entities"| node_naming
node_sql -.->|"converts SQL"| node_sqlcsharp
node_sqlcsharp -->|"formats identifiers"| node_naming
node_dotnet -.->|"formats C&#35;"| node_csharpformatter
node_general -.->|"converts timestamps"| node_timestamp
node_developer -.->|"submits feedback"| node_feedback
node_feedback -->|"writes submissions"| node_firebase

click node_home "https://github.com/gangadhararao29/workbench/blob/master/src/app/home/home.ts"
click node_app "https://github.com/gangadhararao29/workbench/blob/master/src/app/app.ts"
click node_routes "https://github.com/gangadhararao29/workbench/blob/master/src/app/app.routes.ts"
click node_toolpage "https://github.com/gangadhararao29/workbench/blob/master/src/app/shell/tool-page/tool-page.ts"
click node_sidebar "https://github.com/gangadhararao29/workbench/blob/master/src/app/shell/tool-sidebar/tool-sidebar.ts"
click node_options "https://github.com/gangadhararao29/workbench/blob/master/src/app/shell/options-panel/options-panel.ts"
click node_registry "https://github.com/gangadhararao29/workbench/blob/master/src/app/core/tool/tool-registry.ts"
click node_instances "https://github.com/gangadhararao29/workbench/blob/master/src/app/core/tool/tool-instance.ts"
click node_storage "https://github.com/gangadhararao29/workbench/blob/master/src/app/core/workspace-storage.ts"
click node_routeguard "https://github.com/gangadhararao29/workbench/blob/master/src/app/core/tool-type.guard.ts"
click node_routecache "https://github.com/gangadhararao29/workbench/blob/master/src/app/core/route-reuse.strategy.ts"
click node_editor "https://github.com/gangadhararao29/workbench/blob/master/src/app/shared/code-editor/code-editor.ts"
click node_json "https://github.com/gangadhararao29/workbench/tree/master/src/app/tools/json"
click node_dotnet "https://github.com/gangadhararao29/workbench/tree/master/src/app/tools/dotnet"
click node_csharpformatter "https://github.com/gangadhararao29/workbench/blob/master/src/app/core/engines/csharp-formatter-engine.ts"
click node_efdbcontext "https://github.com/gangadhararao29/workbench/blob/master/src/app/tools/ef/ef-dbcontext/ef-dbcontext.ts"
click node_efengine "https://github.com/gangadhararao29/workbench/blob/master/src/app/core/engines/ef-dbcontext-engine.ts"
click node_sql "https://github.com/gangadhararao29/workbench/tree/master/src/app/tools/sql"
click node_sqlcsharp "https://github.com/gangadhararao29/workbench/blob/master/src/app/core/engines/sql-to-csharp-engine.ts"
click node_efother "https://github.com/gangadhararao29/workbench/tree/master/src/app/tools/ef"
click node_api "https://github.com/gangadhararao29/workbench/tree/master/src/app/tools/api"
click node_apigen "https://github.com/gangadhararao29/workbench/blob/master/src/app/tools/frontend/api-generator/api-generator.ts"
click node_apiengine "https://github.com/gangadhararao29/workbench/blob/master/src/app/core/engines/api-client-generator-engine.ts"
click node_naming "https://github.com/gangadhararao29/workbench/blob/master/src/app/core/engines/code-naming.ts"
click node_general "https://github.com/gangadhararao29/workbench/tree/master/src/app/tools/general"
click node_timestamp "https://github.com/gangadhararao29/workbench/blob/master/src/app/core/engines/timestamp-engine.ts"
click node_feedback "https://github.com/gangadhararao29/workbench/blob/master/src/app/core/feedback.service.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_home,node_app,node_routes,node_toolpage,node_sidebar,node_options,node_feedback toneBlue
class node_registry,node_instances,node_storage,node_routeguard,node_routecache,node_editor,node_naming,node_firebase toneAmber
class node_json,node_dotnet,node_csharpformatter toneMint
class node_efdbcontext,node_efengine,node_sql,node_sqlcsharp,node_efother toneRose
class node_api,node_apigen,node_apiengine,node_developer toneIndigo
class node_general,node_timestamp toneTeal
```

## Components

### Workspace shell

- [Home dashboard](https://github.com/gangadhararao29/workbench/blob/master/src/app/home/home.ts): `src/app/home/home.ts`
- [Application shell](https://github.com/gangadhararao29/workbench/blob/master/src/app/app.ts): `src/app/app.ts`
- [Tool routes](https://github.com/gangadhararao29/workbench/blob/master/src/app/app.routes.ts): `src/app/app.routes.ts`
- [Tool workspace](https://github.com/gangadhararao29/workbench/blob/master/src/app/shell/tool-page/tool-page.ts): `src/app/shell/tool-page/tool-page.ts`
- [Tool sidebar](https://github.com/gangadhararao29/workbench/blob/master/src/app/shell/tool-sidebar/tool-sidebar.ts): `src/app/shell/tool-sidebar/tool-sidebar.ts`
- [Options panel](https://github.com/gangadhararao29/workbench/blob/master/src/app/shell/options-panel/options-panel.ts): `src/app/shell/options-panel/options-panel.ts`
- [Feedback service](https://github.com/gangadhararao29/workbench/blob/master/src/app/core/feedback.service.ts): `src/app/core/feedback.service.ts`

### Tool framework

- [Tool registry](https://github.com/gangadhararao29/workbench/blob/master/src/app/core/tool/tool-registry.ts): `src/app/core/tool/tool-registry.ts`
- [Tool instances](https://github.com/gangadhararao29/workbench/blob/master/src/app/core/tool/tool-instance.ts): `src/app/core/tool/tool-instance.ts`
- [Workspace storage](https://github.com/gangadhararao29/workbench/blob/master/src/app/core/workspace-storage.ts): `src/app/core/workspace-storage.ts`
- [Tool type guard](https://github.com/gangadhararao29/workbench/blob/master/src/app/core/tool-type.guard.ts): `src/app/core/tool-type.guard.ts`
- [Route reuse](https://github.com/gangadhararao29/workbench/blob/master/src/app/core/route-reuse.strategy.ts): `src/app/core/route-reuse.strategy.ts`
- [Code editor](https://github.com/gangadhararao29/workbench/blob/master/src/app/shared/code-editor/code-editor.ts): `src/app/shared/code-editor/code-editor.ts`
- [Code naming helpers](https://github.com/gangadhararao29/workbench/blob/master/src/app/core/engines/code-naming.ts): `src/app/core/engines/code-naming.ts`

### JSON and .NET

- [JSON tools](https://github.com/gangadhararao29/workbench/tree/master/src/app/tools/json): `src/app/tools/json`
- [.NET tools](https://github.com/gangadhararao29/workbench/tree/master/src/app/tools/dotnet): `src/app/tools/dotnet`
- [C# formatter engine](https://github.com/gangadhararao29/workbench/blob/master/src/app/core/engines/csharp-formatter-engine.ts): `src/app/core/engines/csharp-formatter-engine.ts`

### Data and database

- [DbContext generator](https://github.com/gangadhararao29/workbench/blob/master/src/app/tools/ef/ef-dbcontext/ef-dbcontext.ts): `src/app/tools/ef/ef-dbcontext/ef-dbcontext.ts`
- [DbContext engine](https://github.com/gangadhararao29/workbench/blob/master/src/app/core/engines/ef-dbcontext-engine.ts): `src/app/core/engines/ef-dbcontext-engine.ts`
- [SQL tools](https://github.com/gangadhararao29/workbench/tree/master/src/app/tools/sql): `src/app/tools/sql`
- [SQL to C# engine](https://github.com/gangadhararao29/workbench/blob/master/src/app/core/engines/sql-to-csharp-engine.ts): `src/app/core/engines/sql-to-csharp-engine.ts`
- [EF Core tools](https://github.com/gangadhararao29/workbench/tree/master/src/app/tools/ef): `src/app/tools/ef`

### API and frontend

- [API tools](https://github.com/gangadhararao29/workbench/tree/master/src/app/tools/api): `src/app/tools/api`
- [API client generator](https://github.com/gangadhararao29/workbench/blob/master/src/app/tools/frontend/api-generator/api-generator.ts): `src/app/tools/frontend/api-generator/api-generator.ts`
- [API generation engine](https://github.com/gangadhararao29/workbench/blob/master/src/app/core/engines/api-client-generator-engine.ts): `src/app/core/engines/api-client-generator-engine.ts`

### General utilities

- [General tools](https://github.com/gangadhararao29/workbench/tree/master/src/app/tools/general): `src/app/tools/general`
- [Timestamp engine](https://github.com/gangadhararao29/workbench/blob/master/src/app/core/engines/timestamp-engine.ts): `src/app/core/engines/timestamp-engine.ts`

### Other components

- **Developer**
- **Firebase Firestore**

## Connections

- Developer → Home dashboard: browses tools
- Home dashboard → Tool routes: opens tool route (evidence: `src/app/app.routes.ts`)
- Developer → Tool sidebar: selects tool
- Application shell → Tool sidebar: renders (evidence: `src/app/app.ts`)
- Application shell → Options panel: renders (evidence: `src/app/app.ts`)
- Application shell → Tool instances: uses (evidence: `src/app/app.ts`)
- Tool routes → Home dashboard: routes home (evidence: `src/app/app.routes.ts`)
- Tool routes → Tool workspace: routes tools (evidence: `src/app/app.routes.ts`)
- Tool routes → Tool type guard: guards tool route (evidence: `src/app/app.routes.ts`)
- Developer → Tool workspace: uses tool tabs
- Tool workspace → Tool registry: loads tools
- Tool workspace → Tool instances: manages instances
- Tool instances → Workspace storage: persists state
- Route reuse → Tool workspace: reuses routes
- Developer → JSON tools: runs JSON tools
- Developer → .NET tools: runs .NET tools
- Developer → EF Core tools: runs EF tools
- Developer → SQL tools: runs SQL tools
- Developer → API tools: runs API tools
- Developer → API client generator: generates API clients
- API client generator → API generation engine: generates code
- Developer → General tools: uses utilities
- Developer → DbContext generator: configures generation
- DbContext generator → DbContext engine: calls generator (evidence: `src/app/tools/ef/ef-dbcontext/ef-dbcontext.ts`)
- DbContext generator → Tool instances: reads configuration (evidence: `src/app/tools/ef/ef-dbcontext/ef-dbcontext.ts`)
- DbContext generator → Code editor: renders output (evidence: `src/app/tools/ef/ef-dbcontext/ef-dbcontext.ts`)
- DbContext engine → Code naming helpers: pluralizes entities (evidence: `src/app/core/engines/ef-dbcontext-engine.ts`)
- SQL tools → SQL to C# engine: converts SQL
- SQL to C# engine → Code naming helpers: formats identifiers (evidence: `src/app/core/engines/sql-to-csharp-engine.ts`)
- .NET tools → C# formatter engine: formats C#
- General tools → Timestamp engine: converts timestamps
- Developer → Feedback service: submits feedback
- Feedback service → Firebase Firestore: writes submissions (evidence: `src/app/core/feedback.service.ts`)
