# divisi0n/status_naturalisation architecture

> Architecture diagram of the GitHub repository divisi0n/status_naturalisation, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-07-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/divisi0n/status_naturalisation
- Repository: https://github.com/divisi0n/status_naturalisation

## Overview

##### File structure
- manifest.json – Defines the extension’s metadata, permissions, and lists content scripts.
- content.js – Runs in the context of matching web pages, listens for page events, and orchestrates injection.
- inject.js – Gets dynamically injected into the page DOM by content.js to manipulate the page or add UI.
- README.md – Contains installation instructions.

##### README for additional insights
- The README is purely user-facing install docs (in French), confirming it’s a client-side tool with no server or database components.

##### Thoroughness
- Permissions from manifest.json (e.g., “matches” patterns).
- Events (e.g., “onPageLoad”, “chrome.runtime.sendMessage”).

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph "Chrome Extension Host"
        manifest["manifest.json"]:::manifest
        icons["icons/"]:::assets
        content["content.js"]:::content
        README["README.md"]:::docs
    end

    subgraph "Target Web Page"
        page["DOM"]:::page
    end

    manifest -->|"loads & grants permissions"| content
    content -->|"onPageLoad: inject script"| inject
    inject -->|"manipulates DOM"| page
    content <-->|"chrome.runtime messaging"| inject

    %% Click Events
    click manifest "https://github.com/divisi0n/status_naturalisation/blob/main/manifest.json"
    click content "https://github.com/divisi0n/status_naturalisation/blob/main/content.js"
    click inject "https://github.com/divisi0n/status_naturalisation/blob/main/inject.js"
    click icons "https://github.com/divisi0n/status_naturalisation/tree/main/icons/"
    click README "https://github.com/divisi0n/status_naturalisation/blob/main/README.md"

    %% Legend
    subgraph Legend
        M["manifest.json (Configuration)"]:::manifest
        C["content.js (Content Script)"]:::content
        I["inject.js (Injected Script)"]:::inject
        A["icons/ (Assets)"]:::assets
        P["Target Web Page DOM"]:::page
        R["README.md (Installation Instructions)"]:::docs
    end

    classDef manifest fill:#CCCCCC,stroke:#333,stroke-width:1px;
    classDef content fill:#AED6F1,stroke:#1F618D,stroke-width:1px;
    classDef inject fill:#ABEBC6,stroke:#196F3D,stroke-width:1px;
    classDef assets fill:#F9E79F,stroke:#B7950B,stroke-width:1px;
    classDef page fill:#FADBD8,stroke:#C0392B,stroke-width:1px;
    classDef docs fill:#D7DBDD,stroke:#424949,stroke-width:1px;
```
