> For the complete documentation index, see [llms.txt](https://polyhelper.gitbook.io/polyhelper-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://polyhelper.gitbook.io/polyhelper-docs/getting-started/how-it-works.md).

# How It Works

## Technical Overview

PolyHelper is a **browser extension** built on the Chrome Extensions (Manifest V3) standard. It works by injecting lightweight UI components into Polymarket pages — adding new informational panels to the existing interface without altering or replacing any native functionality.

***

## Architecture

When you open a Polymarket market page, PolyHelper's **content script** detects the market type and injects the relevant panels into the sidebar. A **background service worker** runs in parallel — fetching live data from external APIs (crypto, sports, news, polls, macro, geo), caching it, and keeping panels updated in real time. The result is a seamlessly enhanced Polymarket UI with no impact on the native interface.

***

## Smart Market Detection

PolyHelper automatically detects the **type of market** you're viewing and loads the relevant data panels. You don't need to configure anything manually.

| Market Type                | Auto-loaded Panels                                         |
| -------------------------- | ---------------------------------------------------------- |
| Crypto / Token             | Crypto Context Panel, Price Charts, Live News              |
| Sports (NBA, NFL, etc.)    | Sports Intel, Live News                                    |
| Politics / Elections       | Polls Intel, Live News, Top Holders PnL                    |
| Stocks / Equities          | Stocks Context, Macro Intel                                |
| Geopolitics / Military     | Pentagon Activity Tracker, Conflict Monitor, Military Maps |
| AI / Technology            | AI Arena, Live News                                        |
| Entertainment / Box Office | Box Office Projections                                     |
| Weather                    | Weather Forecast                                           |
| Bonds / Finance            | Bonds Scanner, Macro Intel                                 |

***

## Data Flow

1. **You open a Polymarket market page**
2. PolyHelper's content script detects the market category
3. Relevant panels are injected into the sidebar
4. The background service worker fetches live data from multiple APIs
5. Data is rendered in real-time inside the panels
6. Panels refresh automatically as new data becomes available

***

## Panel System

Each panel in PolyHelper is an independent module. You can:

* **Expand / collapse** individual panels
* **Scroll** through panel content independently
* **Interact** with some panels (e.g., filter comments, view detailed charts)

Panels are loaded lazily — only the panels relevant to the current market are fetched and rendered, keeping performance impact minimal.

***

## Keeping Data Fresh

PolyHelper uses a smart caching and refresh system:

| Data Type           | Refresh Rate            |
| ------------------- | ----------------------- |
| Crypto prices       | Every 30 seconds        |
| Sports scores       | Live / every 60 seconds |
| News feed           | Every 2–5 minutes       |
| Poll averages       | Every 6–12 hours        |
| Economic indicators | Daily                   |
| Military maps       | Every few hours         |

***

## Next Steps

* [Customization & Settings →](/polyhelper-docs/getting-started/customization.md)
* [Privacy & Security →](/polyhelper-docs/getting-started/privacy-security.md)
* [Overview of all features →](/polyhelper-docs/analytics-tools/overview.md)
* [Earn reward points →](/polyhelper-docs/rewards-program/program.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://polyhelper.gitbook.io/polyhelper-docs/getting-started/how-it-works.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
