# elio1235/firewalltool architecture

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

- Interactive diagram: https://gitdiagram.com/elio1235/firewalltool
- Repository: https://github.com/elio1235/firewalltool

## Overview

Elyguard is a Laravel marketing site with a browser-based firewall-configuration analyzer for FortiOS and PAN-OS. The apparent user workflow is to open the workspace analyzer, work with firewall configurations, and inspect or export results; the tree identifies parsing, analysis, and UI modules, but the empty README and limited excerpts do not establish their runtime wiring. The graph preserves the major analyzer stages and workspace areas while showing only relationships directly evidenced by excerpts or the source index.

Main entry points: [`public/index.php`](https://github.com/elio1235/firewalltool/blob/main/public/index.php) (Laravel Front Controller), [`bootstrap/app.php`](https://github.com/elio1235/firewalltool/blob/main/bootstrap/app.php) (Application Bootstrap), [`resources/js/app.js`](https://github.com/elio1235/firewalltool/blob/main/resources/js/app.js) (Site JavaScript), [`routes/web.php`](https://github.com/elio1235/firewalltool/blob/main/routes/web.php) (Web Routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Site and Workspace"]
  node_front["Laravel Front Controller<br/>[index.php]"]
  node_bootstrap["Application Bootstrap<br/>[app.php]"]
  node_routes["Web Routes<br/>[web.php]"]
  node_marketing["Marketing Pages"]
  node_workspace["Workspace Views"]
  node_analyser_view["Analyzer View<br/>[analyser.blade.php]"]
end

subgraph group_ui["Analyzer Interface"]
  node_app_js["Site JavaScript<br/>[app.js]"]
  node_hero["Hero Motion<br/>[hero-motion.js]"]
  node_analyser_ui["Analyzer Interface"]
  node_sessions["Analyzer Sessions<br/>[sessions.js]"]
  node_changes["Change Review<br/>[changeset.js]"]
  node_export["Configuration Export<br/>[write-cli.js]"]
  node_export_xml["XML Export<br/>[write-xml.js]"]
  node_export_yaml["YAML Export<br/>[write-yaml.js]"]
  node_adapters["Engine Adapters<br/>[engine-adapters.js]"]
end

subgraph group_engine["Analysis Engine"]
  node_parse_forti["FortiOS Parser<br/>[fortios.js]"]
  node_parse_panos["PAN-OS Parser<br/>[panos.js]"]
  node_routes_model["Route Modeling<br/>[routes.js]"]
  node_endpoints["Endpoint Modeling<br/>[endpoints.js]"]
  node_fabric["Fabric Detection<br/>[detect.js]"]
  node_matching["Policy Matching"]
  node_queries["Analysis Queries"]
end

subgraph group_identity["User Identity"]
  node_user["User Account Model<br/>[User.php]"]
end

node_visitor(("Visitor"))

node_visitor -->|"requests"| node_front
node_front -->|"bootstraps"| node_bootstrap
node_bootstrap -->|"loads routes"| node_routes
node_app_js -->|"starts motion"| node_hero

click node_front "https://github.com/elio1235/firewalltool/blob/main/public/index.php"
click node_bootstrap "https://github.com/elio1235/firewalltool/blob/main/bootstrap/app.php"
click node_routes "https://github.com/elio1235/firewalltool/blob/main/routes/web.php"
click node_marketing "https://github.com/elio1235/firewalltool/tree/main/resources/views/pages"
click node_workspace "https://github.com/elio1235/firewalltool/tree/main/resources/views/workspace"
click node_analyser_view "https://github.com/elio1235/firewalltool/blob/main/resources/views/workspace/analyser.blade.php"
click node_app_js "https://github.com/elio1235/firewalltool/blob/main/resources/js/app.js"
click node_hero "https://github.com/elio1235/firewalltool/blob/main/resources/js/hero-motion.js"
click node_analyser_ui "https://github.com/elio1235/firewalltool/tree/main/resources/tool-src/js"
click node_sessions "https://github.com/elio1235/firewalltool/blob/main/resources/tool-src/js/sessions.js"
click node_changes "https://github.com/elio1235/firewalltool/blob/main/resources/tool-src/js/changeset.js"
click node_export "https://github.com/elio1235/firewalltool/blob/main/resources/tool-src/js/write-cli.js"
click node_export_xml "https://github.com/elio1235/firewalltool/blob/main/resources/tool-src/js/write-xml.js"
click node_export_yaml "https://github.com/elio1235/firewalltool/blob/main/resources/tool-src/js/write-yaml.js"
click node_adapters "https://github.com/elio1235/firewalltool/blob/main/resources/tool-src/js/engine-adapters.js"
click node_parse_forti "https://github.com/elio1235/firewalltool/blob/main/resources/tool-src/engine/parse/fortios.js"
click node_parse_panos "https://github.com/elio1235/firewalltool/blob/main/resources/tool-src/engine/parse/panos.js"
click node_routes_model "https://github.com/elio1235/firewalltool/blob/main/resources/tool-src/engine/model/routes.js"
click node_endpoints "https://github.com/elio1235/firewalltool/blob/main/resources/tool-src/engine/model/endpoints.js"
click node_fabric "https://github.com/elio1235/firewalltool/blob/main/resources/tool-src/engine/fabric/detect.js"
click node_matching "https://github.com/elio1235/firewalltool/tree/main/resources/tool-src/engine/match"
click node_queries "https://github.com/elio1235/firewalltool/tree/main/resources/tool-src/engine/query"
click node_user "https://github.com/elio1235/firewalltool/blob/main/app/Models/User.php"

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_front,node_bootstrap,node_routes,node_marketing,node_workspace,node_analyser_view toneBlue
class node_app_js,node_hero,node_analyser_ui,node_sessions,node_changes,node_export,node_export_xml,node_export_yaml,node_adapters toneAmber
class node_parse_forti,node_parse_panos,node_routes_model,node_endpoints,node_fabric,node_matching,node_queries toneMint
class node_user toneRose
class node_visitor toneIndigo
```

## Components

### Site and Workspace

- [Laravel Front Controller](https://github.com/elio1235/firewalltool/blob/main/public/index.php): `public/index.php`
- [Application Bootstrap](https://github.com/elio1235/firewalltool/blob/main/bootstrap/app.php): `bootstrap/app.php`
- [Web Routes](https://github.com/elio1235/firewalltool/blob/main/routes/web.php): `routes/web.php`
- [Marketing Pages](https://github.com/elio1235/firewalltool/tree/main/resources/views/pages): `resources/views/pages`
- [Workspace Views](https://github.com/elio1235/firewalltool/tree/main/resources/views/workspace): `resources/views/workspace`
- [Analyzer View](https://github.com/elio1235/firewalltool/blob/main/resources/views/workspace/analyser.blade.php): `resources/views/workspace/analyser.blade.php`

### Analyzer Interface

- [Site JavaScript](https://github.com/elio1235/firewalltool/blob/main/resources/js/app.js): `resources/js/app.js`
- [Hero Motion](https://github.com/elio1235/firewalltool/blob/main/resources/js/hero-motion.js): `resources/js/hero-motion.js`
- [Analyzer Interface](https://github.com/elio1235/firewalltool/tree/main/resources/tool-src/js): `resources/tool-src/js`
- [Analyzer Sessions](https://github.com/elio1235/firewalltool/blob/main/resources/tool-src/js/sessions.js): `resources/tool-src/js/sessions.js`
- [Change Review](https://github.com/elio1235/firewalltool/blob/main/resources/tool-src/js/changeset.js): `resources/tool-src/js/changeset.js`
- [Configuration Export](https://github.com/elio1235/firewalltool/blob/main/resources/tool-src/js/write-cli.js): `resources/tool-src/js/write-cli.js`
- [XML Export](https://github.com/elio1235/firewalltool/blob/main/resources/tool-src/js/write-xml.js): `resources/tool-src/js/write-xml.js`
- [YAML Export](https://github.com/elio1235/firewalltool/blob/main/resources/tool-src/js/write-yaml.js): `resources/tool-src/js/write-yaml.js`
- [Engine Adapters](https://github.com/elio1235/firewalltool/blob/main/resources/tool-src/js/engine-adapters.js): `resources/tool-src/js/engine-adapters.js`

### Analysis Engine

- [FortiOS Parser](https://github.com/elio1235/firewalltool/blob/main/resources/tool-src/engine/parse/fortios.js): `resources/tool-src/engine/parse/fortios.js`
- [PAN-OS Parser](https://github.com/elio1235/firewalltool/blob/main/resources/tool-src/engine/parse/panos.js): `resources/tool-src/engine/parse/panos.js`
- [Route Modeling](https://github.com/elio1235/firewalltool/blob/main/resources/tool-src/engine/model/routes.js): `resources/tool-src/engine/model/routes.js`
- [Endpoint Modeling](https://github.com/elio1235/firewalltool/blob/main/resources/tool-src/engine/model/endpoints.js): `resources/tool-src/engine/model/endpoints.js`
- [Fabric Detection](https://github.com/elio1235/firewalltool/blob/main/resources/tool-src/engine/fabric/detect.js): `resources/tool-src/engine/fabric/detect.js`
- [Policy Matching](https://github.com/elio1235/firewalltool/tree/main/resources/tool-src/engine/match): `resources/tool-src/engine/match`
- [Analysis Queries](https://github.com/elio1235/firewalltool/tree/main/resources/tool-src/engine/query): `resources/tool-src/engine/query`

### User Identity

- [User Account Model](https://github.com/elio1235/firewalltool/blob/main/app/Models/User.php): `app/Models/User.php`

### Other components

- **Visitor**

## Connections

- Visitor → Laravel Front Controller: requests (evidence: `public/index.php`)
- Laravel Front Controller → Application Bootstrap: bootstraps (evidence: `public/index.php`)
- Application Bootstrap → Web Routes: loads routes (evidence: `bootstrap/app.php`)
- Site JavaScript → Hero Motion: starts motion (evidence: `resources/js/app.js`)
