Skip to content

Latest commit

Β 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

### πŸ“‚ Project Tree Snapshot

```plaintext
+---app
|   |   feedRouter.js
|   |   launchBrowser.js
|   |   main.js
|   |   mirrorServer.js
|   |   package-lock.json
|   |   package.json
|   |   readme
|   |   
|   +---config
|   |       settings.json
|   |       
|   +---dashboard
|   |       dashboard.html
|   |       dashboardClient.js
|   |       server.js
|   |       styles.css
|   |       
|   +---logs
|   |       system.log
|   |       unknown.log
|   |       
|   +---modules
|   |   |   processorFetch.js
|   |   |   processorWS.js
|   |   |   
|   |   \---diagnostics
|   |           corsChecker.js
|   |           simpleRequestClassifier.js
|   |           
|   +---profiles
|   +---public
|   \---utils
|           flowFormatter.js
|           flowStore.js
|           logger.js
|           
+---extension
|   |   background.js
|   |   manifest.json
|   |   mirrorEmitter.js
|   |   popup.html
|   |   popup.js
|   |   readme
|   |   
|   +---contentScripts
|   |       fetchMirror.js
|   |       wsMirror.js
|   |       
|   +---icons
|   |       icon128.png
|   |       icon16.png
|   |       icon48.png
|   |       
|   +---styles
|   |       popup.css
|   |       
|   \---utils
|           captureHelpers.js

```


# 🧭 Mass-Mirror Node β€” Modular Diagnostic Engine

_Architected to reflect passive browser flows with modular clarity, symbolic intent, and full diagnostic transparency._

---

### πŸ”Ή Phase 1: **System Spine & Orchestration**

Core entry and coordination of the Node engine.

| File | Role |
|------|------|
| `main.js` | Bootstraps Chrome, server, and mirror intake |
| `launchBrowser.js` | Opens diagnostic Chrome with profile management |
| `mirrorServer.js` | Upgrades HTTP intake to WebSocket for extension feed |
| `feedRouter.js` | Distributes incoming flows to protocol processors |

---

### πŸ”Ή Phase 2: **Flow Processors**

Decode and transform feed events before analysis.

| File | Role |
|------|------|
| `processorFetch.js` | Handles standard HTTP-based flows |
| `processorWS.js` | Handles WebSocket-based flows |

---

### πŸ”Ή Phase 3: **Diagnostic Mirrors**

Reveal boundary behavior and ethical compliance.

| File | Role |
|------|------|
| `corsChecker.js` | Identifies CORS flags and anomalies |
| `simpleRequestClassifier.js` | Categorizes request complexity |

---

### πŸ”Ή Phase 4: **Dashboard Frontend**

Visual surface for observing feeds over time.

| File | Role |
|------|------|
| `dashboard.html` | Visual markup of feed table |
| `styles.css` | Thematic dashboard styling |
| `dashboardClient.js` | Polls API and populates UI |
| `server.js` | Serves dashboard + flow data over HTTP |

---

### πŸ”Ή Phase 5: **Utilities & Storage**

Data formatting, logging, and session-based memory.

| File | Role |
|------|------|
| `logger.js` | Logs both structured flows and symbolic messages |
| `flowFormatter.js` | Optional formatting logic for display |
| `flowStore.js` | In-memory session β†’ flow mapping |

---

### πŸ”Ή Phase 6: **Extension Companion**

Captures passive flows and reflects them via WebSocket.

| File | Role |
|------|------|
| `background.js` | Orchestrates feed emission to mirror |
| `mirrorEmitter.js` | Manages socket lifecycle and feed dispatch |
| `popup.html / popup.js` | UI controls and diagnostics |
| `fetchMirror.js` | Injected for HTTP observation |
| `wsMirror.js` | Injected for WS observation |
| `manifest.json` | Extension configuration |

---

### πŸ”Ή Phase 7: **Project Config & Assets**

| Path | Role |
|------|------|
| `settings.json` | Port and session config |
| `logs/` | Recorded system and flow entries |
| `icons/` | Extension visual assets |

---

### 🧠 Current Diagnostics State

- βœ… Mirror intake on `ws://localhost:9222/mirror`
- βœ… Feeds logging to console + written to `logs/`
- βœ… Dashboard styling resolved and visible
- ⏳ Dashboard population pending β€” hook `storeFlow()` to live feed intake
- βœ… MIME and module errors cleared

---

About

Modular Diagnostic Engine

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages