# gojouzxh/ali-store architecture

> Architecture diagram of the GitHub repository gojouzxh/ali-store, 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/gojouzxh/ali-store
- Repository: https://github.com/gojouzxh/ali-store

## Overview

This is a bird-catalog website with a browser interface for browsing, filtering, and opening bird dossiers. The sampled code also contains a Supabase catalog-data client for retrieving published records and generating signed photo URLs, but the source index shows no imports connecting that client to the browser UI. The Supabase schema and setup files are present, but their contents were not sampled, so backend details and links to those files are not asserted.

Main entry points: [`js/catalog-data.js`](https://github.com/gojouzxh/ali-store/blob/main/js/catalog-data.js) (Catalog data client), [`js/script.js`](https://github.com/gojouzxh/ali-store/blob/main/js/script.js) (Catalog and dossiers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_browser["Bird catalog UI"]
  node_bird_records["Bird records<br/>[script.js]"]
  node_catalog_ui["Catalog and dossiers<br/>[script.js]"]
end

subgraph group_data["Catalog data access"]
  node_data_client["Catalog data client<br/>[catalog-data.js]"]
end

subgraph group_services["External services"]
  node_supabase["Supabase"]
end

node_visitor(("Visitor"))

node_visitor -->|"browses"| node_catalog_ui
node_bird_records -->|"renders"| node_catalog_ui
node_data_client -->|"queries birds"| node_supabase
node_data_client -->|"requests signed URLs"| node_supabase

click node_bird_records "https://github.com/gojouzxh/ali-store/blob/main/js/script.js"
click node_catalog_ui "https://github.com/gojouzxh/ali-store/blob/main/js/script.js"
click node_data_client "https://github.com/gojouzxh/ali-store/blob/main/js/catalog-data.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_bird_records,node_catalog_ui toneBlue
class node_data_client toneAmber
class node_supabase toneMint
class node_visitor toneIndigo
```

## Components

### Bird catalog UI

- [Bird records](https://github.com/gojouzxh/ali-store/blob/main/js/script.js): `js/script.js`
- [Catalog and dossiers](https://github.com/gojouzxh/ali-store/blob/main/js/script.js): `js/script.js`

### Catalog data access

- [Catalog data client](https://github.com/gojouzxh/ali-store/blob/main/js/catalog-data.js): `js/catalog-data.js`

### External services

- **Supabase**

### Other components

- **Visitor**

## Connections

- Visitor → Catalog and dossiers: browses (evidence: `js/script.js`)
- Bird records → Catalog and dossiers: renders (evidence: `js/script.js`)
- Catalog data client → Supabase: queries birds (evidence: `js/catalog-data.js`)
- Catalog data client → Supabase: requests signed URLs (evidence: `js/catalog-data.js`)
