# joaotextor/eproc-tools architecture

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

- Interactive diagram: https://gitdiagram.com/joaotextor/eproc-tools
- Repository: https://github.com/joaotextor/eproc-tools

## Overview

e-Proc Tools is a small browser extension that adds a tools menu to the e-Proc interface. The user opens the menu and selects a link to an internal or external tool; the menu also closes when the user clicks outside it. The README highlights the business-days calculator and court-orders tool, while the menu also links to health, asset-restriction, communication, and other services. The sampled source shows the menu behavior and links; stylesheet behavior is not shown.

Main entry points: [`index.js`](https://github.com/joaotextor/eproc-tools/blob/master/index.js) (Tools menu), [`styles.css`](https://github.com/joaotextor/eproc-tools/blob/master/styles.css) (Menu styling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_extension["Extension UI"]
  node_menu["Tools menu<br/>[index.js]"]
  node_styles["Menu styling<br/>[styles.css]"]
end

subgraph group_health["Health tools"]
  node_health_tools["Health services"]
end

subgraph group_assets["Asset tools"]
  node_asset_tools["Asset services"]
end

subgraph group_communications["Communication"]
  node_communication_tools["Communication services"]
end

subgraph group_other["Other tools"]
  node_business_days["Business-days calculator"]
  node_court_orders["Court-orders tool"]
  node_other_tools["Other services"]
end

node_user(("e-Proc user"))
node_eproc["e-Proc interface"]

node_eproc -->|"adds menu"| node_menu
node_user -->|"opens and selects"| node_menu
node_menu -->|"links to"| node_health_tools
node_menu -->|"links to"| node_asset_tools
node_menu -->|"links to"| node_communication_tools
node_menu -->|"links to"| node_business_days
node_menu -->|"links to"| node_court_orders
node_menu -->|"links to"| node_other_tools
node_menu -.->|"styled by"| node_styles

click node_menu "https://github.com/joaotextor/eproc-tools/blob/master/index.js"
click node_styles "https://github.com/joaotextor/eproc-tools/blob/master/styles.css"

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_menu,node_styles,node_user toneBlue
class node_health_tools toneAmber
class node_asset_tools toneMint
class node_communication_tools toneRose
class node_business_days,node_court_orders,node_other_tools,node_eproc toneIndigo
```

## Components

### Extension UI

- [Tools menu](https://github.com/joaotextor/eproc-tools/blob/master/index.js): `index.js`
- [Menu styling](https://github.com/joaotextor/eproc-tools/blob/master/styles.css): `styles.css`

### Health tools

- **Health services**

### Asset tools

- **Asset services**

### Communication

- **Communication services**

### Other tools

- **Business-days calculator**
- **Court-orders tool**
- **Other services**

### Other components

- **e-Proc user**
- **e-Proc interface**

## Connections

- e-Proc interface → Tools menu: adds menu (evidence: `index.js`)
- e-Proc user → Tools menu: opens and selects (evidence: `index.js`)
- Tools menu → Health services: links to (evidence: `index.js`)
- Tools menu → Asset services: links to (evidence: `index.js`)
- Tools menu → Communication services: links to (evidence: `index.js`)
- Tools menu → Business-days calculator: links to (evidence: `index.js`)
- Tools menu → Court-orders tool: links to (evidence: `index.js`)
- Tools menu → Other services: links to (evidence: `index.js`)
- Tools menu → Menu styling: styled by
