# gerisonsabino/bing_autosearch architecture

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

- Interactive diagram: https://gitdiagram.com/gerisonsabino/bing_autosearch
- Repository: https://github.com/gerisonsabino/bing_autosearch

## Overview

Bing Auto Search is a browser-based bot for generating Bing searches to earn Microsoft Rewards points. The user starts a run and configures its search limit, interval, and multi-tab mode; the JavaScript coordinates scheduled searches, displays progress, and loads searches in an iframe or opens them in another tab. Settings persist in browser cookies, and the app requests a screen wake lock while active. The single large script implements these distinct responsibilities; unsampled code limits certainty about some internal calls.

Main entry points: [`js/script.js`](https://github.com/gerisonsabino/bing_autosearch/blob/master/js/script.js) (Search coordinator), [`index.html`](https://github.com/gerisonsabino/bing_autosearch/blob/master/index.html) (App page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Browser interface"]
  node_page["App page<br/>[index.html]"]
  node_controller["App controller<br/>[script.js]"]
  node_settings["Settings cookies<br/>[script.js]"]
end

subgraph group_automation["Search automation"]
  node_coordinator["Search coordinator<br/>[script.js]"]
  node_generator["Search generation<br/>[script.js]"]
  node_timer["Progress timer<br/>[script.js]"]
  node_iframe["Iframe search<br/>[script.js]"]
  node_multitab["Multi-tab search<br/>[script.js]"]
end

subgraph group_browser["Browser services"]
  node_wakelock["Screen wake lock<br/>[script.js]"]
end

node_user(("User"))
node_bing["Bing Search"]

node_user -.->|"uses"| node_page
node_controller -->|"updates"| node_page
node_controller -->|"loads and saves"| node_settings
node_controller -->|"starts and stops"| node_coordinator
node_controller -->|"activates"| node_wakelock
node_coordinator -.->|"generates searches"| node_generator
node_coordinator -.->|"updates progress"| node_timer
node_coordinator -->|"loads search"| node_iframe
node_coordinator -->|"opens search"| node_multitab
node_iframe -->|"loads URL"| node_bing
node_multitab -.->|"opens URL"| node_bing

click node_page "https://github.com/gerisonsabino/bing_autosearch/blob/master/index.html"
click node_controller "https://github.com/gerisonsabino/bing_autosearch/blob/master/js/script.js"
click node_settings "https://github.com/gerisonsabino/bing_autosearch/blob/master/js/script.js"
click node_coordinator "https://github.com/gerisonsabino/bing_autosearch/blob/master/js/script.js"
click node_generator "https://github.com/gerisonsabino/bing_autosearch/blob/master/js/script.js"
click node_timer "https://github.com/gerisonsabino/bing_autosearch/blob/master/js/script.js"
click node_iframe "https://github.com/gerisonsabino/bing_autosearch/blob/master/js/script.js"
click node_multitab "https://github.com/gerisonsabino/bing_autosearch/blob/master/js/script.js"
click node_wakelock "https://github.com/gerisonsabino/bing_autosearch/blob/master/js/script.js"

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_page,node_controller,node_settings,node_user toneBlue
class node_coordinator,node_generator,node_timer,node_iframe,node_multitab toneAmber
class node_wakelock toneMint
class node_bing toneIndigo
```

## Components

### Browser interface

- [App page](https://github.com/gerisonsabino/bing_autosearch/blob/master/index.html): `index.html`
- [App controller](https://github.com/gerisonsabino/bing_autosearch/blob/master/js/script.js): `js/script.js`
- [Settings cookies](https://github.com/gerisonsabino/bing_autosearch/blob/master/js/script.js): `js/script.js`

### Search automation

- [Search coordinator](https://github.com/gerisonsabino/bing_autosearch/blob/master/js/script.js): `js/script.js`
- [Search generation](https://github.com/gerisonsabino/bing_autosearch/blob/master/js/script.js): `js/script.js`
- [Progress timer](https://github.com/gerisonsabino/bing_autosearch/blob/master/js/script.js): `js/script.js`
- [Iframe search](https://github.com/gerisonsabino/bing_autosearch/blob/master/js/script.js): `js/script.js`
- [Multi-tab search](https://github.com/gerisonsabino/bing_autosearch/blob/master/js/script.js): `js/script.js`

### Browser services

- [Screen wake lock](https://github.com/gerisonsabino/bing_autosearch/blob/master/js/script.js): `js/script.js`

### Other components

- **User**
- **Bing Search**

## Connections

- User → App page: uses
- App controller → App page: updates (evidence: `js/script.js`)
- App controller → Settings cookies: loads and saves (evidence: `js/script.js`)
- App controller → Search coordinator: starts and stops (evidence: `js/script.js`)
- App controller → Screen wake lock: activates (evidence: `js/script.js`)
- Search coordinator → Search generation: generates searches (evidence: `js/script.js`)
- Search coordinator → Progress timer: updates progress (evidence: `js/script.js`)
- Search coordinator → Iframe search: loads search (evidence: `js/script.js`)
- Search coordinator → Multi-tab search: opens search (evidence: `js/script.js`)
- Iframe search → Bing Search: loads URL (evidence: `js/script.js`)
- Multi-tab search → Bing Search: opens URL
