# remontti/bgprr architecture

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

- Interactive diagram: https://gitdiagram.com/remontti/bgprr
- Repository: https://github.com/remontti/bgprr

## Overview

bgprr is a command-line BGP lookup tool backed by the bgpview.io API. The documented workflow accepts an ASN or name, shows matching ASNs, and can display an ASN report with prefixes and RPKI status, upstreams, downstreams, and IX connections. The README is the only available evidence; the script’s internal structure and specific API calls cannot be verified.

Main entry points: [`bgprr`](https://github.com/remontti/bgprr/blob/main/bgprr) (bgprr CLI)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_operator(("Operator"))
node_cli["bgprr CLI"]
node_api["bgpview.io API"]
node_asn_search["ASN Search"]
node_asn_report["ASN Report"]
node_prefixes_rpki["Prefixes and RPKI"]
node_peering["Upstreams and Downstreams"]
node_ix["IX Connections"]

node_operator -->|"runs"| node_cli
node_cli -->|"queries"| node_api
node_cli -->|"shows matches"| node_asn_search
node_cli -->|"shows details"| node_asn_report
node_cli -->|"shows status"| node_prefixes_rpki
node_cli -->|"shows peers"| node_peering
node_cli -->|"shows connections"| node_ix

click node_cli "https://github.com/remontti/bgprr/blob/main/bgprr"
click node_asn_search "https://github.com/remontti/bgprr/blob/main/bgprr"
click node_asn_report "https://github.com/remontti/bgprr/blob/main/bgprr"
click node_prefixes_rpki "https://github.com/remontti/bgprr/blob/main/bgprr"
click node_peering "https://github.com/remontti/bgprr/blob/main/bgprr"
click node_ix "https://github.com/remontti/bgprr/blob/main/bgprr"

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_operator toneIndigo
class node_cli,node_asn_search,node_asn_report,node_prefixes_rpki,node_peering,node_ix toneTeal
class node_api toneBlue
```

## Components

### Other components

- **Operator**
- [bgprr CLI](https://github.com/remontti/bgprr/blob/main/bgprr): `bgprr`
- **bgpview.io API**
- [ASN Search](https://github.com/remontti/bgprr/blob/main/bgprr): `bgprr`
- [ASN Report](https://github.com/remontti/bgprr/blob/main/bgprr): `bgprr`
- [Prefixes and RPKI](https://github.com/remontti/bgprr/blob/main/bgprr): `bgprr`
- [Upstreams and Downstreams](https://github.com/remontti/bgprr/blob/main/bgprr): `bgprr`
- [IX Connections](https://github.com/remontti/bgprr/blob/main/bgprr): `bgprr`

## Connections

- Operator → bgprr CLI: runs (evidence: `README.md`)
- bgprr CLI → bgpview.io API: queries (evidence: `README.md`)
- bgprr CLI → ASN Search: shows matches (evidence: `README.md`)
- bgprr CLI → ASN Report: shows details (evidence: `README.md`)
- bgprr CLI → Prefixes and RPKI: shows status (evidence: `README.md`)
- bgprr CLI → Upstreams and Downstreams: shows peers (evidence: `README.md`)
- bgprr CLI → IX Connections: shows connections (evidence: `README.md`)
