# alecblance/s3bucketlist architecture

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

- Interactive diagram: https://gitdiagram.com/alecblance/s3bucketlist
- Repository: https://github.com/alecblance/s3bucketlist

## Overview

S3BucketList is a browser extension that records S3 bucket activity while the user browses, then lets them search, inspect, filter, and manage recorded buckets in its popup. The visible runtime path is popup initialization and UI state, with recording controlled through the background entrypoint. README capabilities also include ACL extraction, vulnerability detection, downloads, and tab-specific recording; their detailed implementation links are limited by the sampled excerpts, so those branches are kept distinct rather than joined speculatively.

Main entry points: [`src/lib/hooks/useInitialData.ts`](https://github.com/alecblance/s3bucketlist/blob/main/src/lib/hooks/useInitialData.ts) (Initial data loader), [`src/entrypoints/popup/App.tsx`](https://github.com/alecblance/s3bucketlist/blob/main/src/entrypoints/popup/App.tsx) (Popup app), [`src/components/sections/header/components/Switch.tsx`](https://github.com/alecblance/s3bucketlist/blob/main/src/components/sections/header/components/Switch.tsx) (Recording controls), [`src/lib/storage.ts`](https://github.com/alecblance/s3bucketlist/blob/main/src/lib/storage.ts) (Extension storage)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_capture["Capture and analysis"]
  node_background["Background entrypoint<br/>[index.ts]"]
  node_recorder["Bucket recorder<br/>[Recorder.class.ts]"]
  node_bucket_filter["Bucket filters<br/>[filter.ts]"]
  node_bucket_info["Bucket inspection<br/>[info.ts]"]
  node_badge["Recording badge<br/>[badge.ts]"]
end

subgraph group_popup["Popup experience"]
  node_popup_app["Popup app<br/>[App.tsx]"]
  node_header["Recording controls<br/>[Switch.tsx]"]
  node_body["Bucket workspace<br/>[index.tsx]"]
  node_search["Bucket search<br/>[Search.tsx]"]
  node_bucket_list["Bucket list<br/>[BucketList.tsx]"]
  node_bucket_card["Bucket details<br/>[BucketCard.tsx]"]
  node_bucket_actions["Bucket management<br/>[Actions.tsx]"]
  node_bucket_options["Bucket options"]
  node_footer["Settings panel<br/>[index.tsx]"]
  node_tab_settings["Tab-specific settings<br/>[TabOnly.tsx]"]
end

subgraph group_state["State and persistence"]
  node_initial_data["Initial data loader<br/>[useInitialData.ts]"]
  node_bucket_store["Bucket state<br/>[useBucket.store.ts]"]
  node_search_store["Search state<br/>[useSearch.store.ts]"]
  node_recording_store["Recording state"]
  node_settings_store["Settings state"]
  node_last_seen_store["Last-seen state"]
  node_storage[("Extension storage<br/>[storage.ts]")]
end

subgraph group_ui["Interface components"]
  node_ui_controls["Reusable UI controls"]
end

node_browser_user(("Browser user"))
node_browser["Browser APIs"]

node_browser_user -->|"opens popup"| node_popup_app
node_popup_app -->|"initializes"| node_initial_data
node_popup_app -->|"renders"| node_header
node_popup_app -->|"renders"| node_body
node_popup_app -->|"renders"| node_footer
node_background -->|"constructs"| node_recorder
node_initial_data -->|"reads settings"| node_storage
node_initial_data -->|"loads buckets"| node_bucket_store
node_initial_data -->|"loads last seen"| node_last_seen_store
node_initial_data -->|"loads recording"| node_recording_store
node_initial_data -->|"loads settings"| node_settings_store
node_initial_data -->|"sets badge text"| node_browser
node_header -->|"sends recording state"| node_background
node_header -->|"persists recording state"| node_storage
node_header -->|"updates state"| node_recording_store
node_header -->|"stops badge"| node_badge
node_body -->|"renders"| node_bucket_list
node_body -->|"renders"| node_search
node_search -->|"updates query"| node_search_store
node_bucket_list -->|"reads buckets"| node_bucket_store
node_bucket_card -->|"renders"| node_bucket_options
node_bucket_options -->|"manages buckets"| node_bucket_store
node_bucket_options -->|"persists changes"| node_storage
node_bucket_actions -->|"manages buckets"| node_bucket_store
node_bucket_actions -->|"persists changes"| node_storage
node_footer -->|"renders"| node_tab_settings
node_tab_settings -->|"updates settings"| node_settings_store
node_tab_settings -->|"persists settings"| node_storage
node_body -.->|"uses controls"| node_ui_controls
node_tab_settings -->|"uses controls"| node_ui_controls

click node_background "https://github.com/alecblance/s3bucketlist/blob/main/src/entrypoints/background/index.ts"
click node_recorder "https://github.com/alecblance/s3bucketlist/blob/main/src/lib/bucket/Recorder.class.ts"
click node_bucket_filter "https://github.com/alecblance/s3bucketlist/blob/main/src/lib/bucket/filter.ts"
click node_bucket_info "https://github.com/alecblance/s3bucketlist/blob/main/src/lib/bucket/info.ts"
click node_badge "https://github.com/alecblance/s3bucketlist/blob/main/src/lib/bucket/badge.ts"
click node_popup_app "https://github.com/alecblance/s3bucketlist/blob/main/src/entrypoints/popup/App.tsx"
click node_initial_data "https://github.com/alecblance/s3bucketlist/blob/main/src/lib/hooks/useInitialData.ts"
click node_header "https://github.com/alecblance/s3bucketlist/blob/main/src/components/sections/header/components/Switch.tsx"
click node_body "https://github.com/alecblance/s3bucketlist/blob/main/src/components/sections/body/index.tsx"
click node_search "https://github.com/alecblance/s3bucketlist/blob/main/src/components/sections/body/components/Search.tsx"
click node_bucket_list "https://github.com/alecblance/s3bucketlist/blob/main/src/components/sections/body/components/BucketList/BucketList.tsx"
click node_bucket_card "https://github.com/alecblance/s3bucketlist/blob/main/src/components/sections/body/components/BucketCard/BucketCard.tsx"
click node_bucket_actions "https://github.com/alecblance/s3bucketlist/blob/main/src/components/sections/body/components/BucketList/Actions.tsx"
click node_bucket_options "https://github.com/alecblance/s3bucketlist/blob/main/src/components/sections/body/components/BucketCard/OptionsDropdown.tsx"
click node_footer "https://github.com/alecblance/s3bucketlist/blob/main/src/components/sections/footer/index.tsx"
click node_tab_settings "https://github.com/alecblance/s3bucketlist/blob/main/src/components/sections/footer/Settings/TabOnly.tsx"
click node_bucket_store "https://github.com/alecblance/s3bucketlist/blob/main/src/lib/store/useBucket.store.ts"
click node_search_store "https://github.com/alecblance/s3bucketlist/blob/main/src/lib/store/useSearch.store.ts"
click node_recording_store "https://github.com/alecblance/s3bucketlist/blob/main/src/lib/store/useRecording.store.ts"
click node_settings_store "https://github.com/alecblance/s3bucketlist/blob/main/src/lib/store/useSettings.store.ts"
click node_last_seen_store "https://github.com/alecblance/s3bucketlist/blob/main/src/lib/store/useLastSeen.store.ts"
click node_storage "https://github.com/alecblance/s3bucketlist/blob/main/src/lib/storage.ts"
click node_ui_controls "https://github.com/alecblance/s3bucketlist/tree/main/src/components/ui"

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_background,node_recorder,node_bucket_filter,node_bucket_info,node_badge,node_browser_user,node_browser toneBlue
class node_popup_app,node_header,node_body,node_search,node_bucket_list,node_bucket_card,node_bucket_actions,node_bucket_options,node_footer,node_tab_settings toneAmber
class node_initial_data,node_bucket_store,node_search_store,node_recording_store,node_settings_store,node_last_seen_store,node_storage toneMint
class node_ui_controls toneRose
```

## Components

### Capture and analysis

- [Background entrypoint](https://github.com/alecblance/s3bucketlist/blob/main/src/entrypoints/background/index.ts): `src/entrypoints/background/index.ts`
- [Bucket recorder](https://github.com/alecblance/s3bucketlist/blob/main/src/lib/bucket/Recorder.class.ts): `src/lib/bucket/Recorder.class.ts`
- [Bucket filters](https://github.com/alecblance/s3bucketlist/blob/main/src/lib/bucket/filter.ts): `src/lib/bucket/filter.ts`
- [Bucket inspection](https://github.com/alecblance/s3bucketlist/blob/main/src/lib/bucket/info.ts): `src/lib/bucket/info.ts`
- [Recording badge](https://github.com/alecblance/s3bucketlist/blob/main/src/lib/bucket/badge.ts): `src/lib/bucket/badge.ts`

### Popup experience

- [Popup app](https://github.com/alecblance/s3bucketlist/blob/main/src/entrypoints/popup/App.tsx): `src/entrypoints/popup/App.tsx`
- [Recording controls](https://github.com/alecblance/s3bucketlist/blob/main/src/components/sections/header/components/Switch.tsx): `src/components/sections/header/components/Switch.tsx`
- [Bucket workspace](https://github.com/alecblance/s3bucketlist/blob/main/src/components/sections/body/index.tsx): `src/components/sections/body/index.tsx`
- [Bucket search](https://github.com/alecblance/s3bucketlist/blob/main/src/components/sections/body/components/Search.tsx): `src/components/sections/body/components/Search.tsx`
- [Bucket list](https://github.com/alecblance/s3bucketlist/blob/main/src/components/sections/body/components/BucketList/BucketList.tsx): `src/components/sections/body/components/BucketList/BucketList.tsx`
- [Bucket details](https://github.com/alecblance/s3bucketlist/blob/main/src/components/sections/body/components/BucketCard/BucketCard.tsx): `src/components/sections/body/components/BucketCard/BucketCard.tsx`
- [Bucket management](https://github.com/alecblance/s3bucketlist/blob/main/src/components/sections/body/components/BucketList/Actions.tsx): `src/components/sections/body/components/BucketList/Actions.tsx`
- [Bucket options](https://github.com/alecblance/s3bucketlist/blob/main/src/components/sections/body/components/BucketCard/OptionsDropdown.tsx): `src/components/sections/body/components/BucketCard/OptionsDropdown.tsx`
- [Settings panel](https://github.com/alecblance/s3bucketlist/blob/main/src/components/sections/footer/index.tsx): `src/components/sections/footer/index.tsx`
- [Tab-specific settings](https://github.com/alecblance/s3bucketlist/blob/main/src/components/sections/footer/Settings/TabOnly.tsx): `src/components/sections/footer/Settings/TabOnly.tsx`

### State and persistence

- [Initial data loader](https://github.com/alecblance/s3bucketlist/blob/main/src/lib/hooks/useInitialData.ts): `src/lib/hooks/useInitialData.ts`
- [Bucket state](https://github.com/alecblance/s3bucketlist/blob/main/src/lib/store/useBucket.store.ts): `src/lib/store/useBucket.store.ts`
- [Search state](https://github.com/alecblance/s3bucketlist/blob/main/src/lib/store/useSearch.store.ts): `src/lib/store/useSearch.store.ts`
- [Recording state](https://github.com/alecblance/s3bucketlist/blob/main/src/lib/store/useRecording.store.ts): `src/lib/store/useRecording.store.ts`
- [Settings state](https://github.com/alecblance/s3bucketlist/blob/main/src/lib/store/useSettings.store.ts): `src/lib/store/useSettings.store.ts`
- [Last-seen state](https://github.com/alecblance/s3bucketlist/blob/main/src/lib/store/useLastSeen.store.ts): `src/lib/store/useLastSeen.store.ts`
- [Extension storage](https://github.com/alecblance/s3bucketlist/blob/main/src/lib/storage.ts): `src/lib/storage.ts`

### Interface components

- [Reusable UI controls](https://github.com/alecblance/s3bucketlist/tree/main/src/components/ui): `src/components/ui`

### Other components

- **Browser user**
- **Browser APIs**

## Connections

- Browser user → Popup app: opens popup (evidence: `src/entrypoints/popup/App.tsx`)
- Popup app → Initial data loader: initializes (evidence: `src/entrypoints/popup/App.tsx`)
- Popup app → Recording controls: renders (evidence: `src/entrypoints/popup/App.tsx`)
- Popup app → Bucket workspace: renders (evidence: `src/entrypoints/popup/App.tsx`)
- Popup app → Settings panel: renders (evidence: `src/entrypoints/popup/App.tsx`)
- Background entrypoint → Bucket recorder: constructs (evidence: `src/entrypoints/background/index.ts`)
- Initial data loader → Extension storage: reads settings (evidence: `src/lib/hooks/useInitialData.ts`)
- Initial data loader → Bucket state: loads buckets (evidence: `src/lib/hooks/useInitialData.ts`)
- Initial data loader → Last-seen state: loads last seen (evidence: `src/lib/hooks/useInitialData.ts`)
- Initial data loader → Recording state: loads recording (evidence: `src/lib/hooks/useInitialData.ts`)
- Initial data loader → Settings state: loads settings (evidence: `src/lib/hooks/useInitialData.ts`)
- Initial data loader → Browser APIs: sets badge text (evidence: `src/lib/hooks/useInitialData.ts`)
- Recording controls → Background entrypoint: sends recording state (evidence: `src/components/sections/header/components/Switch.tsx`)
- Recording controls → Extension storage: persists recording state (evidence: `src/components/sections/header/components/Switch.tsx`)
- Recording controls → Recording state: updates state (evidence: `src/components/sections/header/components/Switch.tsx`)
- Recording controls → Recording badge: stops badge (evidence: `src/components/sections/header/components/Switch.tsx`)
- Bucket workspace → Bucket list: renders (evidence: `src/components/sections/body/index.tsx`)
- Bucket workspace → Bucket search: renders (evidence: `src/components/sections/body/index.tsx`)
- Bucket search → Search state: updates query (evidence: `src/components/sections/body/components/Search.tsx`)
- Bucket list → Bucket state: reads buckets (evidence: `src/components/sections/body/index.tsx`)
- Bucket details → Bucket options: renders (evidence: `src/components/sections/body/components/BucketCard/BucketCard.tsx`)
- Bucket options → Bucket state: manages buckets (evidence: `src/components/sections/body/components/BucketCard/OptionsDropdown.tsx`)
- Bucket options → Extension storage: persists changes (evidence: `src/components/sections/body/components/BucketCard/OptionsDropdown.tsx`)
- Bucket management → Bucket state: manages buckets (evidence: `src/components/sections/body/components/BucketList/Actions.tsx`)
- Bucket management → Extension storage: persists changes (evidence: `src/components/sections/body/components/BucketList/Actions.tsx`)
- Settings panel → Tab-specific settings: renders (evidence: `src/components/sections/footer/index.tsx`)
- Tab-specific settings → Settings state: updates settings (evidence: `src/components/sections/footer/Settings/TabOnly.tsx`)
- Tab-specific settings → Extension storage: persists settings (evidence: `src/components/sections/footer/Settings/TabOnly.tsx`)
- Bucket workspace → Reusable UI controls: uses controls (evidence: `src/components/sections/body/index.tsx`)
- Tab-specific settings → Reusable UI controls: uses controls (evidence: `src/components/sections/footer/Settings/TabOnly.tsx`)
