# afifalfiano/afif-alfiano-v2 architecture

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

- Interactive diagram: https://gitdiagram.com/afifalfiano/afif-alfiano-v2
- Repository: https://github.com/afifalfiano/afif-alfiano-v2

## Overview

This is a static personal portfolio and publishing site: visitors browse work, profile information, talks, and articles, with search and RSS as discovery features. The tree identifies these page and UI areas, but their implementations were not sampled, so their wiring is shown only where the source supports it; dashed, uncited links mark likely but unverified relationships. The sampled endpoints confirm that search combines published posts with portfolio data, while RSS combines local posts with an optional Medium feed.

Main entry points: [`src/pages/posts.astro`](https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/pages/posts.astro) (Posts listing), [`src/pages/post/[slug].astro`](https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/pages/post/%5Bslug%5D.astro) (Article page), [`src/pages/search-index.json.ts`](https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/pages/search-index.json.ts) (Search index), [`src/pages/rss.xml.js`](https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/pages/rss.xml.js) (RSS feed)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Portfolio pages"]
  node_home["Home page<br/>[index.astro]"]
  node_posts["Posts listing<br/>[posts.astro]"]
  node_post["Article page<br/>[&#91;slug&#93;.astro]"]
  node_projects["Projects page<br/>[projects.astro]"]
  node_about["About page<br/>[about-me.astro]"]
  node_talks["Talks page<br/>[talks.astro]"]
end

subgraph group_publishing["Publishing data"]
  node_content[("Post collection<br/>[config.js]")]
  node_postsdata["Article content"]
  node_portfolio[("Portfolio datasets")]
end

subgraph group_discovery["Search and feeds"]
  node_search["Search index"]
  node_rss["RSS feed<br/>[rss.xml.js]"]
end

subgraph group_ui["Shared interface"]
  node_shared["Shared components"]
  node_searchui["Search modal<br/>[search-modal.astro]"]
  node_clientjs["Browser interactions<br/>[main.js]"]
  node_tracking["Analytics tracking<br/>[gtm-tracker.astro]"]
end

node_visitor(("Visitor"))
node_medium["Medium feed service"]

node_visitor -.->|"opens"| node_home
node_visitor -.->|"opens"| node_posts
node_visitor -.->|"opens"| node_post
node_visitor -.->|"opens"| node_projects
node_visitor -.->|"opens"| node_about
node_visitor -.->|"opens"| node_talks
node_visitor -.->|"uses"| node_searchui
node_posts -.->|"renders"| node_postsdata
node_post -.->|"renders"| node_postsdata
node_home -.->|"uses"| node_shared
node_posts -.->|"uses"| node_shared
node_post -.->|"uses"| node_shared
node_searchui -.->|"requests"| node_search
node_clientjs -.->|"controls"| node_searchui
node_search -->|"reads"| node_content
node_search -->|"reads"| node_portfolio
node_rss -->|"reads"| node_content
node_rss -->|"fetches"| node_medium
node_visitor -.->|"requests"| node_rss
node_visitor -.->|"visits"| node_tracking

click node_home "https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/pages/index.astro"
click node_posts "https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/pages/posts.astro"
click node_post "https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/pages/post/%5Bslug%5D.astro"
click node_projects "https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/pages/projects.astro"
click node_about "https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/pages/about-me.astro"
click node_talks "https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/pages/talks.astro"
click node_content "https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/content/config.js"
click node_postsdata "https://github.com/afifalfiano/afif-alfiano-v2/tree/main/src/content/post"
click node_portfolio "https://github.com/afifalfiano/afif-alfiano-v2/tree/main/src/collections"
click node_search "https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/pages/search-index.json.ts"
click node_rss "https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/pages/rss.xml.js"
click node_shared "https://github.com/afifalfiano/afif-alfiano-v2/tree/main/src/components"
click node_searchui "https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/components/search-modal.astro"
click node_clientjs "https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/assets/js/main.js"
click node_tracking "https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/components/gtm-tracker.astro"

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_home,node_posts,node_post,node_projects,node_about,node_talks toneBlue
class node_content,node_postsdata,node_portfolio toneAmber
class node_search,node_rss toneMint
class node_shared,node_searchui,node_clientjs,node_tracking toneRose
class node_visitor,node_medium toneIndigo
```

## Components

### Portfolio pages

- [Home page](https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/pages/index.astro): `src/pages/index.astro`
- [Posts listing](https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/pages/posts.astro): `src/pages/posts.astro`
- [Article page](https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/pages/post/%5Bslug%5D.astro): `src/pages/post/[slug].astro`
- [Projects page](https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/pages/projects.astro): `src/pages/projects.astro`
- [About page](https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/pages/about-me.astro): `src/pages/about-me.astro`
- [Talks page](https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/pages/talks.astro): `src/pages/talks.astro`

### Publishing data

- [Post collection](https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/content/config.js): `src/content/config.js`
- [Article content](https://github.com/afifalfiano/afif-alfiano-v2/tree/main/src/content/post): `src/content/post`
- [Portfolio datasets](https://github.com/afifalfiano/afif-alfiano-v2/tree/main/src/collections): `src/collections`

### Search and feeds

- [Search index](https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/pages/search-index.json.ts): `src/pages/search-index.json.ts`
- [RSS feed](https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/pages/rss.xml.js): `src/pages/rss.xml.js`

### Shared interface

- [Shared components](https://github.com/afifalfiano/afif-alfiano-v2/tree/main/src/components): `src/components`
- [Search modal](https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/components/search-modal.astro): `src/components/search-modal.astro`
- [Browser interactions](https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/assets/js/main.js): `src/assets/js/main.js`
- [Analytics tracking](https://github.com/afifalfiano/afif-alfiano-v2/blob/main/src/components/gtm-tracker.astro): `src/components/gtm-tracker.astro`

### Other components

- **Visitor**
- **Medium feed service**

## Connections

- Visitor → Home page: opens
- Visitor → Posts listing: opens
- Visitor → Article page: opens
- Visitor → Projects page: opens
- Visitor → About page: opens
- Visitor → Talks page: opens
- Visitor → Search modal: uses
- Posts listing → Article content: renders
- Article page → Article content: renders
- Home page → Shared components: uses
- Posts listing → Shared components: uses
- Article page → Shared components: uses
- Search modal → Search index: requests
- Browser interactions → Search modal: controls
- Search index → Post collection: reads (evidence: `src/pages/search-index.json.ts`)
- Search index → Portfolio datasets: reads (evidence: `src/pages/search-index.json.ts`)
- RSS feed → Post collection: reads (evidence: `src/pages/rss.xml.js`)
- RSS feed → Medium feed service: fetches (evidence: `src/pages/rss.xml.js`)
- Visitor → RSS feed: requests
- Visitor → Analytics tracking: visits
