# mohammad180m/kitzos architecture

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

- Interactive diagram: https://gitdiagram.com/mohammad180m/kitzos
- Repository: https://github.com/mohammad180m/kitzos
- Video tour (about a minute): https://gitdiagram.com/mohammad180m/kitzos/video

## Overview

Kitzos is a privacy-first, browser-based toolbox offering localized utilities, calculators, converters, developer helpers, media tools, PDF workflows, and text tools in English and Arabic. The principal workflow is: a user discovers a localized tool, the dynamic route resolves its registry entry and renders the tool, browser-side processing produces a preview or downloadable result. The tree shows broad capabilities, while sampled source confirms localization, tool content, PDF previews, image previews, and off-main-thread PDF protection. Some domain-to-engine links remain intentionally conservative because those implementations were not sampled.

Main entry points: [`lib/registry.ts`](https://github.com/mohammad180m/kitzos/blob/main/lib/registry.ts) (Tool Registry), [`app/[lang]/tools/[slug]/page.tsx`](https://github.com/mohammad180m/kitzos/blob/main/app/%5Blang%5D/tools/%5Bslug%5D/page.tsx) (Tool Route), [`components/ToolLayout.tsx`](https://github.com/mohammad180m/kitzos/blob/main/components/ToolLayout.tsx) (Tool Shell), [`app/[lang]/[category]/page.tsx`](https://github.com/mohammad180m/kitzos/blob/main/app/%5Blang%5D/%5Bcategory%5D/page.tsx) (Localized Routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User Experience"]
  node_localized_routes["Localized Routes<br/>[page.tsx]"]
  node_tool_route["Tool Route<br/>[page.tsx]"]
  node_tool_shell["Tool Shell<br/>[ToolLayout.tsx]"]
  node_tool_search["Tool Search<br/>[ToolSearch.tsx]"]
end

subgraph group_catalog["Catalog Localization"]
  node_registry["Tool Registry<br/>[registry.ts]"]
  node_categories["Category Catalog<br/>[categories.ts]"]
  node_localization["Locale Services<br/>[routing.ts]"]
  node_tool_content["Tool Guidance<br/>[index.ts]"]
end

subgraph group_domains["Tool Domains"]
  node_calculators["Calculators"]
  node_converters["Converters"]
  node_developer_tools["Developer Tools"]
  node_image_tools["Image Tools"]
  node_pdf_tools["PDF Tools"]
  node_text_tools["Text Tools"]
  node_audio_tools["Audio Tools"]
  node_misc_tools["Miscellaneous Tools"]
end

subgraph group_processing["Browser Processing"]
  node_pdf_processing["PDF Processing"]
  node_image_processing["Image Processing"]
  node_preview_ui["Preview UI<br/>[PdfPreviewPane.tsx]"]
  node_qpdf_client["PDF Protect Client"]
  node_qpdf_worker["PDF Worker"]
  node_download["Download Utility<br/>[download.ts]"]
end

subgraph group_content["Content Monetization"]
  node_seo_content["SEO Content<br/>[seo.ts]"]
  node_ads["Ad Units<br/>[AdsterraUnit.tsx]"]
  node_analytics["Privacy Analytics"]
end

node_user(("Browser User"))

node_user -->|"opens tool site"| node_localized_routes
node_user -->|"searches tools"| node_tool_search
node_localized_routes -->|"reads categories"| node_categories
node_localized_routes -->|"resolves locale"| node_localization
node_tool_search -->|"filters registry"| node_registry
node_tool_route -->|"resolves tool"| node_registry
node_tool_route -->|"renders tool"| node_tool_shell
node_tool_route -->|"loads locale"| node_localization
node_tool_route -->|"loads guidance"| node_tool_content
node_registry -->|"dispatches calculators"| node_calculators
node_registry -->|"dispatches converters"| node_converters
node_registry -->|"dispatches developer tools"| node_developer_tools
node_registry -->|"dispatches image tools"| node_image_tools
node_registry -->|"dispatches PDF tools"| node_pdf_tools
node_registry -->|"dispatches text tools"| node_text_tools
node_registry -->|"dispatches audio tools"| node_audio_tools
node_registry -->|"dispatches misc tools"| node_misc_tools
node_pdf_tools -->|"processes PDFs"| node_pdf_processing
node_image_tools -->|"processes images"| node_image_processing
node_pdf_processing -->|"renders previews"| node_preview_ui
node_image_processing -->|"provides previews"| node_preview_ui
node_pdf_tools -->|"requests protection"| node_qpdf_client
node_qpdf_client -->|"dispatches encryption"| node_qpdf_worker
node_qpdf_worker -->|"returns PDF bytes"| node_qpdf_client
node_tool_shell -->|"downloads result"| node_download
node_registry -->|"feeds tool metadata"| node_seo_content
node_tool_shell -.->|"shows ads"| node_ads
node_tool_shell -.->|"reports usage"| node_analytics

click node_localized_routes "https://github.com/mohammad180m/kitzos/blob/main/app/%5Blang%5D/%5Bcategory%5D/page.tsx"
click node_tool_route "https://github.com/mohammad180m/kitzos/blob/main/app/%5Blang%5D/tools/%5Bslug%5D/page.tsx"
click node_tool_shell "https://github.com/mohammad180m/kitzos/blob/main/components/ToolLayout.tsx"
click node_tool_search "https://github.com/mohammad180m/kitzos/blob/main/components/ToolSearch.tsx"
click node_registry "https://github.com/mohammad180m/kitzos/blob/main/lib/registry.ts"
click node_categories "https://github.com/mohammad180m/kitzos/blob/main/lib/categories.ts"
click node_localization "https://github.com/mohammad180m/kitzos/blob/main/lib/i18n/routing.ts"
click node_tool_content "https://github.com/mohammad180m/kitzos/blob/main/content/index.ts"
click node_calculators "https://github.com/mohammad180m/kitzos/tree/main/tools/calculators"
click node_converters "https://github.com/mohammad180m/kitzos/tree/main/tools/converters"
click node_developer_tools "https://github.com/mohammad180m/kitzos/tree/main/tools/dev"
click node_image_tools "https://github.com/mohammad180m/kitzos/tree/main/tools/image"
click node_pdf_tools "https://github.com/mohammad180m/kitzos/tree/main/tools/pdf"
click node_text_tools "https://github.com/mohammad180m/kitzos/tree/main/tools/text"
click node_audio_tools "https://github.com/mohammad180m/kitzos/tree/main/tools/audio"
click node_misc_tools "https://github.com/mohammad180m/kitzos/tree/main/tools/misc"
click node_pdf_processing "https://github.com/mohammad180m/kitzos/tree/main/lib/pdf"
click node_image_processing "https://github.com/mohammad180m/kitzos/tree/main/lib/image"
click node_preview_ui "https://github.com/mohammad180m/kitzos/blob/main/components/pdf/PdfPreviewPane.tsx"
click node_qpdf_client "https://github.com/mohammad180m/kitzos/blob/main/lib/pdf/qpdf-protect-client.ts"
click node_qpdf_worker "https://github.com/mohammad180m/kitzos/blob/main/workers/qpdf-protect.worker.ts"
click node_download "https://github.com/mohammad180m/kitzos/blob/main/lib/download.ts"
click node_seo_content "https://github.com/mohammad180m/kitzos/blob/main/lib/seo.ts"
click node_ads "https://github.com/mohammad180m/kitzos/blob/main/components/AdsterraUnit.tsx"
click node_analytics "https://github.com/mohammad180m/kitzos/blob/main/components/CloudflareAnalytics.tsx"

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_localized_routes,node_tool_route,node_tool_shell,node_tool_search,node_user toneBlue
class node_registry,node_categories,node_localization,node_tool_content toneAmber
class node_calculators,node_converters,node_developer_tools,node_image_tools,node_pdf_tools,node_text_tools,node_audio_tools,node_misc_tools toneMint
class node_pdf_processing,node_image_processing,node_preview_ui,node_qpdf_client,node_qpdf_worker,node_download toneRose
class node_seo_content,node_ads,node_analytics toneIndigo
```

## Components

### User Experience

- [Localized Routes](https://github.com/mohammad180m/kitzos/blob/main/app/%5Blang%5D/%5Bcategory%5D/page.tsx): `app/[lang]/[category]/page.tsx`
- [Tool Route](https://github.com/mohammad180m/kitzos/blob/main/app/%5Blang%5D/tools/%5Bslug%5D/page.tsx): `app/[lang]/tools/[slug]/page.tsx`
- [Tool Shell](https://github.com/mohammad180m/kitzos/blob/main/components/ToolLayout.tsx): `components/ToolLayout.tsx`
- [Tool Search](https://github.com/mohammad180m/kitzos/blob/main/components/ToolSearch.tsx): `components/ToolSearch.tsx`

### Catalog Localization

- [Tool Registry](https://github.com/mohammad180m/kitzos/blob/main/lib/registry.ts): `lib/registry.ts`
- [Category Catalog](https://github.com/mohammad180m/kitzos/blob/main/lib/categories.ts): `lib/categories.ts`
- [Locale Services](https://github.com/mohammad180m/kitzos/blob/main/lib/i18n/routing.ts): `lib/i18n/routing.ts`
- [Tool Guidance](https://github.com/mohammad180m/kitzos/blob/main/content/index.ts): `content/index.ts`

### Tool Domains

- [Calculators](https://github.com/mohammad180m/kitzos/tree/main/tools/calculators): `tools/calculators`
- [Converters](https://github.com/mohammad180m/kitzos/tree/main/tools/converters): `tools/converters`
- [Developer Tools](https://github.com/mohammad180m/kitzos/tree/main/tools/dev): `tools/dev`
- [Image Tools](https://github.com/mohammad180m/kitzos/tree/main/tools/image): `tools/image`
- [PDF Tools](https://github.com/mohammad180m/kitzos/tree/main/tools/pdf): `tools/pdf`
- [Text Tools](https://github.com/mohammad180m/kitzos/tree/main/tools/text): `tools/text`
- [Audio Tools](https://github.com/mohammad180m/kitzos/tree/main/tools/audio): `tools/audio`
- [Miscellaneous Tools](https://github.com/mohammad180m/kitzos/tree/main/tools/misc): `tools/misc`

### Browser Processing

- [PDF Processing](https://github.com/mohammad180m/kitzos/tree/main/lib/pdf): `lib/pdf`
- [Image Processing](https://github.com/mohammad180m/kitzos/tree/main/lib/image): `lib/image`
- [Preview UI](https://github.com/mohammad180m/kitzos/blob/main/components/pdf/PdfPreviewPane.tsx): `components/pdf/PdfPreviewPane.tsx`
- [PDF Protect Client](https://github.com/mohammad180m/kitzos/blob/main/lib/pdf/qpdf-protect-client.ts): `lib/pdf/qpdf-protect-client.ts`
- [PDF Worker](https://github.com/mohammad180m/kitzos/blob/main/workers/qpdf-protect.worker.ts): `workers/qpdf-protect.worker.ts`
- [Download Utility](https://github.com/mohammad180m/kitzos/blob/main/lib/download.ts): `lib/download.ts`

### Content Monetization

- [SEO Content](https://github.com/mohammad180m/kitzos/blob/main/lib/seo.ts): `lib/seo.ts`
- [Ad Units](https://github.com/mohammad180m/kitzos/blob/main/components/AdsterraUnit.tsx): `components/AdsterraUnit.tsx`
- [Privacy Analytics](https://github.com/mohammad180m/kitzos/blob/main/components/CloudflareAnalytics.tsx): `components/CloudflareAnalytics.tsx`

### Other components

- **Browser User**

## Connections

- Browser User → Localized Routes: opens tool site
- Browser User → Tool Search: searches tools
- Localized Routes → Category Catalog: reads categories
- Localized Routes → Locale Services: resolves locale
- Tool Search → Tool Registry: filters registry
- Tool Route → Tool Registry: resolves tool
- Tool Route → Tool Shell: renders tool
- Tool Route → Locale Services: loads locale
- Tool Route → Tool Guidance: loads guidance
- Tool Registry → Calculators: dispatches calculators
- Tool Registry → Converters: dispatches converters
- Tool Registry → Developer Tools: dispatches developer tools
- Tool Registry → Image Tools: dispatches image tools
- Tool Registry → PDF Tools: dispatches PDF tools
- Tool Registry → Text Tools: dispatches text tools
- Tool Registry → Audio Tools: dispatches audio tools
- Tool Registry → Miscellaneous Tools: dispatches misc tools
- PDF Tools → PDF Processing: processes PDFs
- Image Tools → Image Processing: processes images
- PDF Processing → Preview UI: renders previews
- Image Processing → Preview UI: provides previews
- PDF Tools → PDF Protect Client: requests protection
- PDF Protect Client → PDF Worker: dispatches encryption
- PDF Worker → PDF Protect Client: returns PDF bytes
- Tool Shell → Download Utility: downloads result
- Tool Registry → SEO Content: feeds tool metadata
- Tool Shell → Ad Units: shows ads
- Tool Shell → Privacy Analytics: reports usage
