# om-ongari/pdfdrop architecture

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

- Interactive diagram: https://gitdiagram.com/om-ongari/pdfdrop
- Repository: https://github.com/om-ongari/pdfdrop

## Overview

PDFDrop is a browser-based PDF toolkit. Users browse and filter tools, select one, then work in its workspace to transform, convert, or secure documents and download results; the dedicated editor opens PDFs for annotation and export. The sampled code shows navigation and representative workspace/editor operations, while the broad tool catalog documents additional capabilities. Processing is described as local in browser memory. Workspace internals are only partially excerpted, so undocumented operation-specific relationships are omitted.

Main entry points: [`src/App.tsx`](https://github.com/om-ongari/pdfdrop/blob/main/src/App.tsx) (App router), [`src/components/WorkspaceView.tsx`](https://github.com/om-ongari/pdfdrop/blob/main/src/components/WorkspaceView.tsx) (Tool workspace), [`src/components/HomeView.tsx`](https://github.com/om-ongari/pdfdrop/blob/main/src/components/HomeView.tsx) (Tool catalog), [`src/components/EditorView.tsx`](https://github.com/om-ongari/pdfdrop/blob/main/src/components/EditorView.tsx) (PDF editor)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["App navigation"]
  node_app["App router<br/>[App.tsx]"]
  node_header["Navigation header<br/>[Header.tsx]"]
  node_home["Tool catalog<br/>[HomeView.tsx]"]
  node_types["Tool and document types<br/>[types.ts]"]
end

subgraph group_tools["PDF tools"]
  node_workspace["Tool workspace<br/>[WorkspaceView.tsx]"]
end

subgraph group_editing["PDF editing"]
  node_editor["PDF editor<br/>[EditorView.tsx]"]
end

subgraph group_processing["Document processing"]
  node_crypto["PDF encryption<br/>[cryptoHelper.ts]"]
  node_wordpdf["Text and HTML to PDF<br/>[wordToPdfHelper.ts]"]
end

node_user(("User"))

node_user -->|"browse tools"| node_home
node_home -->|"select tool"| node_app
node_app -->|"renders"| node_header
node_app -->|"renders"| node_home
node_app -->|"routes tools"| node_workspace
node_app -->|"routes editor"| node_editor
node_workspace -->|"opens document"| node_editor
node_workspace -->|"encrypts and decrypts"| node_crypto
node_workspace -->|"generates PDFs"| node_wordpdf
node_editor -->|"detects and decrypts"| node_crypto

click node_app "https://github.com/om-ongari/pdfdrop/blob/main/src/App.tsx"
click node_header "https://github.com/om-ongari/pdfdrop/blob/main/src/components/Header.tsx"
click node_home "https://github.com/om-ongari/pdfdrop/blob/main/src/components/HomeView.tsx"
click node_types "https://github.com/om-ongari/pdfdrop/blob/main/src/types.ts"
click node_workspace "https://github.com/om-ongari/pdfdrop/blob/main/src/components/WorkspaceView.tsx"
click node_editor "https://github.com/om-ongari/pdfdrop/blob/main/src/components/EditorView.tsx"
click node_crypto "https://github.com/om-ongari/pdfdrop/blob/main/src/utils/cryptoHelper.ts"
click node_wordpdf "https://github.com/om-ongari/pdfdrop/blob/main/src/utils/wordToPdfHelper.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_app,node_header,node_home,node_types,node_user toneBlue
class node_workspace toneAmber
class node_editor toneMint
class node_crypto,node_wordpdf toneRose
```

## Components

### App navigation

- [App router](https://github.com/om-ongari/pdfdrop/blob/main/src/App.tsx): `src/App.tsx`
- [Navigation header](https://github.com/om-ongari/pdfdrop/blob/main/src/components/Header.tsx): `src/components/Header.tsx`
- [Tool catalog](https://github.com/om-ongari/pdfdrop/blob/main/src/components/HomeView.tsx): `src/components/HomeView.tsx`
- [Tool and document types](https://github.com/om-ongari/pdfdrop/blob/main/src/types.ts): `src/types.ts`

### PDF tools

- [Tool workspace](https://github.com/om-ongari/pdfdrop/blob/main/src/components/WorkspaceView.tsx): `src/components/WorkspaceView.tsx`

### PDF editing

- [PDF editor](https://github.com/om-ongari/pdfdrop/blob/main/src/components/EditorView.tsx): `src/components/EditorView.tsx`

### Document processing

- [PDF encryption](https://github.com/om-ongari/pdfdrop/blob/main/src/utils/cryptoHelper.ts): `src/utils/cryptoHelper.ts`
- [Text and HTML to PDF](https://github.com/om-ongari/pdfdrop/blob/main/src/utils/wordToPdfHelper.ts): `src/utils/wordToPdfHelper.ts`

### Other components

- **User**

## Connections

- User → Tool catalog: browse tools (evidence: `src/components/HomeView.tsx`)
- Tool catalog → App router: select tool (evidence: `src/App.tsx`)
- App router → Navigation header: renders (evidence: `src/App.tsx`)
- App router → Tool catalog: renders (evidence: `src/App.tsx`)
- App router → Tool workspace: routes tools (evidence: `src/App.tsx`)
- App router → PDF editor: routes editor (evidence: `src/App.tsx`)
- Tool workspace → PDF editor: opens document (evidence: `src/components/WorkspaceView.tsx`)
- Tool workspace → PDF encryption: encrypts and decrypts (evidence: `src/components/WorkspaceView.tsx`)
- Tool workspace → Text and HTML to PDF: generates PDFs (evidence: `src/components/WorkspaceView.tsx`)
- PDF editor → PDF encryption: detects and decrypts (evidence: `src/components/EditorView.tsx`)
