# hrmeetsingh/hrmeetsingh architecture

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

- Interactive diagram: https://gitdiagram.com/hrmeetsingh/hrmeetsingh
- Repository: https://github.com/hrmeetsingh/hrmeetsingh

## Overview

##### Project type and purpose
- This is not a traditional full-stack application; it’s a personal GitHub profile README that is automatically kept up-to-date via two GitHub Actions workflows.
- Purpose: every time on a schedule (or manual trigger) the workflows fetch the author’s latest blog posts from Medium (via RSS) and Goodreads reading lists (via the Goodreads API), inject them into the README.md placeholders, and push an updated README back to the repo.

##### File structure
- Top-level files:
– README.md (the static markdown with placeholders marked by comments)
- .github/workflows:
– blog-post-workflow.yml – fetches Medium RSS, parses out recent posts, updates the README section
– github-goodreads-update.yml – calls Goodreads API, parses reading/finished book lists, updates the README
- No src/ or code directories: the logic lives inside those workflow files (inline scripts or composite actions).

##### README for additional insights
- Contains markers like <!-- GOODREADS-LIST:START --> and <!-- BLOG-POST-LIST:START -->
- Embeds external badge images (GitHub-Readme-Stats, Shields.io badges)
- Shows the data flow: external content → workflow → README placeholders → Git commit → GitHub Pages/README rendered

##### Detail
– Clearly label placeholder markers in the README as transformation targets
– Annotate where XPath or RSS parsing happens
– Show that each workflow ends in a “git push” back to the repo
– Optionally, note any retries or error-handling steps if present in the YAML

## Diagram (Mermaid)

```mermaid
graph TB
    %% Triggers
    Trigger["Schedule / Manual Dispatch"]:::trigger

    %% Workflows subgraph
    subgraph "GitHub Actions Workflows"
        BP["blog-post-workflow Runner"]:::workflow
        GP["goodreads-update-workflow Runner"]:::workflow
    end

    %% Repository
    Repo["GitHub Repo (README & Workflows)"]:::repo

    %% External Services
    Medium["Medium RSS Feed"]:::external
    Goodreads["Goodreads API"]:::external
    Badge["Badge Services (Shields.io, GitHub-Readme-Stats, Komarev)"]:::external

    %% README placeholders
    UpdateBlog["README.md <!--BLOG-POST-LIST-->"]:::readme
    UpdateGR["README.md <!--GOODREADS-LIST-->"]:::readme

    %% Render step
    Render["README.md Render"]:::render

    %% Flows
    Trigger --> BP
    Trigger --> GP

    BP -->|"Fetch Medium RSS"| Medium
    BP -->|"Parse & Update Blog Placeholder"| UpdateBlog
    BP -->|"git push updates"| Repo

    GP -->|"Call Goodreads API"| Goodreads
    GP -->|"Parse & Update Goodreads Placeholder"| UpdateGR
    GP -->|"git push updates"| Repo

    Repo -->|"Render with badges at view"| Render
    Render --> Badge

    %% Click events
    click Repo "https://github.com/hrmeetsingh/hrmeetsingh/blob/master/README.md"
    click Repo "https://github.com/hrmeetsingh/hrmeetsingh/tree/master/.github/workflows/"
    click BP "https://github.com/hrmeetsingh/hrmeetsingh/blob/master/.github/workflows/blog-post-workflow.yml"
    click GP "https://github.com/hrmeetsingh/hrmeetsingh/blob/master/.github/workflows/github-goodreads-update.yml"
    click UpdateBlog "https://github.com/hrmeetsingh/hrmeetsingh/blob/master/README.md"
    click UpdateGR "https://github.com/hrmeetsingh/hrmeetsingh/blob/master/README.md"

    %% Styles
    classDef workflow fill:#cfe2f3,stroke:#0b5394,stroke-width:2px;
    classDef external fill:#d9ead3,stroke:#38761d,stroke-width:2px;
    classDef repo fill:#fce5cd,stroke:#bf9000,stroke-width:2px;
    classDef trigger fill:#ece0f8,stroke:#674ea7,stroke-width:2px;
    classDef readme fill:#fff2cc,stroke:#b45f06,stroke-width:2px;
    classDef render fill:#e7e6e6,stroke:#424242,stroke-width:2px;
```
