# tejasparmarr/blitz architecture

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

- Interactive diagram: https://gitdiagram.com/tejasparmarr/blitz
- Repository: https://github.com/tejasparmarr/blitz

## Overview

#### Purpose and Delivery Model
This is a static, browser-side utility site composed of independent HTML pages and page-specific JavaScript/CSS. It provides document/PDF transformations plus lightweight productivity tools such as QR generation, chat, health, loan, time, speed, and velocity utilities. There is no README, server code, package manifest, or backend deployment definition in the repository.

#### Primary Entry Points
- The likely landing page is `index.html`, with site-wide behavior/styles in `script.js` and `style.css`.
- Individual tools are directly addressable HTML entry points, for example `merge-pdf.html`, `pdf-to-jpg.html`, `remove-background.html`, `speedtest.html`, and `chat.html`.
- Navigation behavior appears centralized in `nav.js`; page transitions may be handled by `transition.js`.

#### Page-Oriented Application Boundary
Each feature is implemented as a self-contained frontend bundle: an HTML document, a dedicated stylesheet, and a dedicated script. Examples:
- PDF merge: `merge-pdf.html`, `mergepdf.js`, `mergepdf.css`
- PDF split: `split-pdf.html`, `splitpdf.js`, `splitpdf.css`
- File conversion: `converterindex.html`, `converterjs.js`, `convertercss.css`
This establishes a hard feature boundary: individual tool scripts own their DOM interactions and processing flows rather than sharing an application runtime.

#### PDF Processing Tool Suite
The core product area is a set of client-facing PDF/document operations:
- Assembly and organization: `merge-pdf.html`, `split-pdf.html`, `organize-pdf.html`
- Content modification/security: `watermark-pdf.html`, `secure-pdf.html`, `sign-pdf.html`
- Format conversion: `pdf-to-jpg.html`, `pdf-to-word.html`, `pdf-to-excel.html`
- Creation/import workflows: `jpg-to-pdf.html`, `word-to-pdf.html`, `excel-to-pdf.html`
Related behavior resides in corresponding scripts such as `mergepdf.js`, `securepdf.js`, and `pdftoword.js`. Input is expected to originate in browser file-selection flows, with outputs handled in the browser unless scripts call externally hosted libraries or APIs.

#### Image and File Conversion Workflows
Image/file manipulation is another major capability:
- Background removal: `remove-background.html`, `backgroundremover.js`, `backgroundremover.css`
- General conversion: `converterindex.html`, `converterjs.js`, `convertercss.css`
- Generic file utility surface: `filehtml.html`, `filejs.js`, `filecss.css`
These pages form separate browser execution contexts and likely process uploaded files or invoke third-party client-side/external conversion services.

#### Auxiliary Interactive Tools
Several standalone utilities broaden the site beyond documents:
- QR tool: `qrindex.html`, `qrjs.js`
- Network measurement: `speedtest.html`, `speedtest.js`
- Chat interface: `chat.html`, `chatbot.js`
- Calculators/trackers: `loanhtml.html`, `loanjs.js`; `healthhtml.html`, `healthjs.js`
- Time and motion utilities: `timeindex.html`, `timejs.js`; `velocity.html`, `velocity.js`
Their main control flow is browser UI event → page-specific JavaScript calculation/request → DOM-rendered result.

#### Runtime and Infrastructure
The material runtime is the web browser: static HTML, CSS, and vanilla JavaScript files are the only visible application artifacts. GitHub Actions contains a keep-alive workflow at `.github/workflows/keep-alive.yml`, suggesting repository/activity automation rather than application execution infrastructure. No backend, database, container setup, dependency lockfile, or explicit external service configuration is present in the supplied tree.

Main entry points: [`index.html`](https://github.com/tejasparmarr/blitz/blob/main/index.html) (Landing page), [`nav.js`](https://github.com/tejasparmarr/blitz/blob/main/nav.js) (Navigation), [`merge-pdf.html`](https://github.com/tejasparmarr/blitz/blob/main/merge-pdf.html) (PDF tool pages), [`remove-background.html`](https://github.com/tejasparmarr/blitz/blob/main/remove-background.html) (Background removal)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Site shell"]
  node_landing["Landing page<br/>HTML entry<br/>[index.html]"]
  node_site_assets["Shared site behavior<br/>vanilla JS/CSS<br/>[script.js]"]
  node_navigation["Navigation<br/>[nav.js]"]
  node_transitions["Page transitions<br/>client-side behavior<br/>[transition.js]"]
end

subgraph group_pdf["PDF suite"]
  node_pdf_entries["PDF tool pages<br/>HTML entries<br/>[merge-pdf.html]"]
  node_pdf_scripts["PDF processing scripts<br/>page-specific JavaScript<br/>[mergepdf.js]"]
  node_browser_files["Browser file I/O<br/>file selection &amp; download"]
  node_pdf_conversion["PDF format conversion<br/>HTML entries<br/>[pdf-to-jpg.html]"]
  node_pdf_conversion_scripts["Conversion scripts<br/>page-specific JavaScript<br/>[pdftoword.js]"]
end

subgraph group_conversion["Image &amp; file tools"]
  node_background_removal["Background removal<br/>HTML entry"]
  node_background_script["Background removal script<br/>page-specific JavaScript"]
  node_file_converter["General converter<br/>HTML entry"]
  node_converter_script["Converter script<br/>page-specific JavaScript<br/>[converterjs.js]"]
  node_file_utility["File utility<br/>HTML entry<br/>[filehtml.html]"]
end

subgraph group_utilities["Interactive utilities"]
  node_utility_pages["Utility pages<br/>HTML entries<br/>[qrindex.html]"]
  node_utility_scripts["Utility scripts<br/>page-specific JavaScript<br/>[qrjs.js]"]
end

node_browser(("Web browser<br/>runtime"))
node_keep_alive["Keep-alive workflow<br/>GitHub Actions workflow<br/>[keep-alive.yml]"]

node_browser -->|"loads"| node_landing
node_landing -->|"uses"| node_site_assets
node_landing -->|"uses"| node_navigation
node_landing -->|"uses"| node_transitions
node_navigation -->|"routes to"| node_pdf_entries
node_navigation -->|"routes to"| node_background_removal
node_navigation -->|"routes to"| node_utility_pages
node_browser -->|"loads directly"| node_pdf_entries
node_pdf_entries -->|"runs"| node_pdf_scripts
node_pdf_scripts -->|"processes"| node_browser_files
node_browser -->|"loads directly"| node_pdf_conversion
node_pdf_conversion -->|"runs"| node_pdf_conversion_scripts
node_pdf_conversion_scripts -->|"processes"| node_browser_files
node_browser -->|"loads directly"| node_background_removal
node_background_removal -->|"runs"| node_background_script
node_background_script -->|"processes files"| node_browser_files
node_browser -->|"loads directly"| node_file_converter
node_file_converter -->|"runs"| node_converter_script
node_converter_script -->|"processes files"| node_browser_files
node_browser -->|"loads directly"| node_file_utility
node_browser -->|"loads directly"| node_utility_pages
node_utility_pages -->|"runs"| node_utility_scripts

click node_landing "https://github.com/tejasparmarr/blitz/blob/main/index.html"
click node_site_assets "https://github.com/tejasparmarr/blitz/blob/main/script.js"
click node_navigation "https://github.com/tejasparmarr/blitz/blob/main/nav.js"
click node_transitions "https://github.com/tejasparmarr/blitz/blob/main/transition.js"
click node_pdf_entries "https://github.com/tejasparmarr/blitz/blob/main/merge-pdf.html"
click node_pdf_scripts "https://github.com/tejasparmarr/blitz/blob/main/mergepdf.js"
click node_pdf_conversion "https://github.com/tejasparmarr/blitz/blob/main/pdf-to-jpg.html"
click node_pdf_conversion_scripts "https://github.com/tejasparmarr/blitz/blob/main/pdftoword.js"
click node_background_removal "https://github.com/tejasparmarr/blitz/blob/main/remove-background.html"
click node_background_script "https://github.com/tejasparmarr/blitz/blob/main/backgroundremover.js"
click node_file_converter "https://github.com/tejasparmarr/blitz/blob/main/converterindex.html"
click node_converter_script "https://github.com/tejasparmarr/blitz/blob/main/converterjs.js"
click node_file_utility "https://github.com/tejasparmarr/blitz/blob/main/filehtml.html"
click node_utility_pages "https://github.com/tejasparmarr/blitz/blob/main/qrindex.html"
click node_utility_scripts "https://github.com/tejasparmarr/blitz/blob/main/qrjs.js"
click node_keep_alive "https://github.com/tejasparmarr/blitz/blob/main/.github/workflows/keep-alive.yml"

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_landing,node_site_assets,node_navigation,node_transitions toneBlue
class node_pdf_entries,node_pdf_scripts,node_browser_files,node_pdf_conversion,node_pdf_conversion_scripts toneAmber
class node_background_removal,node_background_script,node_file_converter,node_converter_script,node_file_utility toneMint
class node_utility_pages,node_utility_scripts toneRose
class node_browser,node_keep_alive toneNeutral
```

## Components

### Site shell

- [Landing page](https://github.com/tejasparmarr/blitz/blob/main/index.html): HTML entry · `index.html`
- [Shared site behavior](https://github.com/tejasparmarr/blitz/blob/main/script.js): vanilla JS/CSS · `script.js`
- [Navigation](https://github.com/tejasparmarr/blitz/blob/main/nav.js): client-side navigation · `nav.js`
- [Page transitions](https://github.com/tejasparmarr/blitz/blob/main/transition.js): client-side behavior · `transition.js`

### PDF suite

- [PDF tool pages](https://github.com/tejasparmarr/blitz/blob/main/merge-pdf.html): HTML entries · Merge, split, organize, watermark, secure, sign, and PDF conversion pages. · `merge-pdf.html`
- [PDF processing scripts](https://github.com/tejasparmarr/blitz/blob/main/mergepdf.js): page-specific JavaScript · Each PDF page owns its processing and DOM flow. · `mergepdf.js`
- **Browser file I/O**: file selection & download · Inputs and outputs remain browser-side unless a tool invokes an external service.
- [PDF format conversion](https://github.com/tejasparmarr/blitz/blob/main/pdf-to-jpg.html): HTML entries · PDF↔JPG, Word, and Excel workflows. · `pdf-to-jpg.html`
- [Conversion scripts](https://github.com/tejasparmarr/blitz/blob/main/pdftoword.js): page-specific JavaScript · `pdftoword.js`

### Image & file tools

- [Background removal](https://github.com/tejasparmarr/blitz/blob/main/remove-background.html): HTML entry · `remove-background.html`
- [Background removal script](https://github.com/tejasparmarr/blitz/blob/main/backgroundremover.js): page-specific JavaScript · `backgroundremover.js`
- [General converter](https://github.com/tejasparmarr/blitz/blob/main/converterindex.html): HTML entry · `converterindex.html`
- [Converter script](https://github.com/tejasparmarr/blitz/blob/main/converterjs.js): page-specific JavaScript · `converterjs.js`
- [File utility](https://github.com/tejasparmarr/blitz/blob/main/filehtml.html): HTML entry · `filehtml.html`

### Interactive utilities

- [Utility pages](https://github.com/tejasparmarr/blitz/blob/main/qrindex.html): HTML entries · QR, speed test, chat, loan, health, time, and velocity tools. · `qrindex.html`
- [Utility scripts](https://github.com/tejasparmarr/blitz/blob/main/qrjs.js): page-specific JavaScript · UI events produce calculations, requests, and DOM results. · `qrjs.js`

### Other components

- **Web browser**: runtime · Only material application runtime.
- [Keep-alive workflow](https://github.com/tejasparmarr/blitz/blob/main/.github/workflows/keep-alive.yml): GitHub Actions workflow · Repository activity automation, not application runtime. · `.github/workflows/keep-alive.yml`

## Connections

- Web browser → Landing page: loads
- Landing page → Shared site behavior: uses
- Landing page → Navigation: uses
- Landing page → Page transitions: uses
- Navigation → PDF tool pages: routes to
- Navigation → Background removal: routes to
- Navigation → Utility pages: routes to
- Web browser → PDF tool pages: loads directly
- PDF tool pages → PDF processing scripts: runs
- PDF processing scripts → Browser file I/O: processes
- Web browser → PDF format conversion: loads directly
- PDF format conversion → Conversion scripts: runs
- Conversion scripts → Browser file I/O: processes
- Web browser → Background removal: loads directly
- Background removal → Background removal script: runs
- Background removal script → Browser file I/O: processes files
- Web browser → General converter: loads directly
- General converter → Converter script: runs
- Converter script → Browser file I/O: processes files
- Web browser → File utility: loads directly
- Web browser → Utility pages: loads directly
- Utility pages → Utility scripts: runs
