# rsmn574/androidtips architecture

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

- Interactive diagram: https://gitdiagram.com/rsmn574/androidtips
- Repository: https://github.com/rsmn574/androidtips

## Overview

AndroidTips is a Vue-based Android tips publication backed by Sanity. Readers navigate a home page and five category pages, open post details, and view post content and author information. Category pages request posts through the Vuex store; the post-detail view fetches an individual post directly. Sanity also supplies the author, post, and rich-text content models used by the publishing backend. The graph follows relationships shown in excerpts or the source index; unsampled page behavior is not inferred.

Main entry points: [`src/router/index.js`](https://github.com/rsmn574/androidtips/blob/master/src/router/index.js) (Route table), [`src/components/nav.vue`](https://github.com/rsmn574/androidtips/blob/master/src/components/nav.vue) (Navigation), [`src/components/postCard.vue`](https://github.com/rsmn574/androidtips/blob/master/src/components/postCard.vue) (Post card), [`src/views/view2.vue`](https://github.com/rsmn574/androidtips/blob/master/src/views/view2.vue) (Category B)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_entry["Vue entry<br/>[main.js]"]
  node_shell["App shell<br/>[App.vue]"]
  node_routes["Route table<br/>[index.js]"]
end

subgraph group_browse["Reader experience"]
  node_home["Home page<br/>[HomeView.vue]"]
  node_homecard["Home card<br/>[homeCard.vue]"]
  node_nav["Navigation<br/>[nav.vue]"]
  node_cat1["Category A<br/>[view1.vue]"]
  node_cat2["Category B<br/>[view2.vue]"]
  node_cat3["Category C<br/>[view3.vue]"]
  node_cat4["Category D<br/>[view4.vue]"]
  node_cat5["Category E<br/>[view5.vue]"]
  node_postcard["Post card<br/>[postCard.vue]"]
end

subgraph group_content["Content delivery"]
  node_detail["Post detail<br/>[post_id.vue]"]
  node_store["Post store<br/>[index.js]"]
  node_client["Sanity client<br/>[client.js]"]
  node_utils["Image utilities<br/>[utils.js]"]
end

subgraph group_cms["Sanity content models"]
  node_author["Author schema<br/>[author.js]"]
  node_post["Post schema<br/>[post.js]"]
  node_blocks["Rich-text schema<br/>[blockContent.js]"]
  node_schemaindex["Schema registry<br/>[index.js]"]
  node_studio["Studio config<br/>[sanity.config.js]"]
end

node_reader(("Reader"))
node_sanity["Sanity API"]

node_reader -->|"opens app"| node_entry
node_entry -->|"mounts"| node_shell
node_shell -->|"renders routes"| node_routes
node_routes -->|"routes to"| node_home
node_routes -->|"routes to"| node_cat1
node_routes -->|"routes to"| node_cat2
node_routes -->|"routes to"| node_cat3
node_routes -->|"routes to"| node_cat4
node_routes -->|"routes to"| node_cat5
node_routes -->|"routes to"| node_detail
node_home -->|"renders"| node_nav
node_home -->|"renders"| node_homecard
node_cat1 -->|"renders"| node_nav
node_cat1 -->|"renders"| node_postcard
node_cat2 -->|"renders"| node_nav
node_cat2 -->|"renders"| node_postcard
node_cat2 -->|"dispatches fetch"| node_store
node_cat3 -->|"renders"| node_nav
node_cat3 -->|"renders"| node_postcard
node_cat4 -->|"renders"| node_nav
node_cat4 -->|"renders"| node_postcard
node_cat5 -->|"renders"| node_nav
node_cat5 -->|"renders"| node_postcard
node_detail -->|"renders"| node_nav
node_store -->|"fetches posts"| node_client
node_detail -->|"fetches post"| node_client
node_postcard -->|"uses image URL"| node_utils
node_homecard -->|"uses utilities"| node_utils
node_client -->|"configures access"| node_sanity
node_store -->|"queries content"| node_sanity
node_detail -->|"queries post"| node_sanity
node_studio -->|"configures schemas"| node_schemaindex
node_schemaindex -->|"registers"| node_author
node_schemaindex -->|"registers"| node_post
node_schemaindex -->|"registers"| node_blocks

click node_entry "https://github.com/rsmn574/androidtips/blob/master/src/main.js"
click node_shell "https://github.com/rsmn574/androidtips/blob/master/src/App.vue"
click node_routes "https://github.com/rsmn574/androidtips/blob/master/src/router/index.js"
click node_home "https://github.com/rsmn574/androidtips/blob/master/src/views/HomeView.vue"
click node_homecard "https://github.com/rsmn574/androidtips/blob/master/src/components/homeCard.vue"
click node_nav "https://github.com/rsmn574/androidtips/blob/master/src/components/nav.vue"
click node_cat1 "https://github.com/rsmn574/androidtips/blob/master/src/views/view1.vue"
click node_cat2 "https://github.com/rsmn574/androidtips/blob/master/src/views/view2.vue"
click node_cat3 "https://github.com/rsmn574/androidtips/blob/master/src/views/view3.vue"
click node_cat4 "https://github.com/rsmn574/androidtips/blob/master/src/views/view4.vue"
click node_cat5 "https://github.com/rsmn574/androidtips/blob/master/src/views/view5.vue"
click node_postcard "https://github.com/rsmn574/androidtips/blob/master/src/components/postCard.vue"
click node_detail "https://github.com/rsmn574/androidtips/blob/master/src/views/post_id.vue"
click node_store "https://github.com/rsmn574/androidtips/blob/master/src/store/index.js"
click node_client "https://github.com/rsmn574/androidtips/blob/master/src/client.js"
click node_utils "https://github.com/rsmn574/androidtips/blob/master/src/utils.js"
click node_author "https://github.com/rsmn574/androidtips/blob/master/androidtips/schemas/author.js"
click node_post "https://github.com/rsmn574/androidtips/blob/master/androidtips/schemas/post.js"
click node_blocks "https://github.com/rsmn574/androidtips/blob/master/androidtips/schemas/blockContent.js"
click node_schemaindex "https://github.com/rsmn574/androidtips/blob/master/androidtips/schemas/index.js"
click node_studio "https://github.com/rsmn574/androidtips/blob/master/androidtips/sanity.config.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_entry,node_shell,node_routes toneBlue
class node_home,node_homecard,node_nav,node_cat1,node_cat2,node_cat3,node_cat4,node_cat5,node_postcard toneAmber
class node_detail,node_store,node_client,node_utils,node_sanity toneMint
class node_author,node_post,node_blocks,node_schemaindex,node_studio toneRose
class node_reader toneIndigo
```

## Components

### Application shell

- [Vue entry](https://github.com/rsmn574/androidtips/blob/master/src/main.js): `src/main.js`
- [App shell](https://github.com/rsmn574/androidtips/blob/master/src/App.vue): `src/App.vue`
- [Route table](https://github.com/rsmn574/androidtips/blob/master/src/router/index.js): `src/router/index.js`

### Reader experience

- [Home page](https://github.com/rsmn574/androidtips/blob/master/src/views/HomeView.vue): `src/views/HomeView.vue`
- [Home card](https://github.com/rsmn574/androidtips/blob/master/src/components/homeCard.vue): `src/components/homeCard.vue`
- [Navigation](https://github.com/rsmn574/androidtips/blob/master/src/components/nav.vue): `src/components/nav.vue`
- [Category A](https://github.com/rsmn574/androidtips/blob/master/src/views/view1.vue): `src/views/view1.vue`
- [Category B](https://github.com/rsmn574/androidtips/blob/master/src/views/view2.vue): `src/views/view2.vue`
- [Category C](https://github.com/rsmn574/androidtips/blob/master/src/views/view3.vue): `src/views/view3.vue`
- [Category D](https://github.com/rsmn574/androidtips/blob/master/src/views/view4.vue): `src/views/view4.vue`
- [Category E](https://github.com/rsmn574/androidtips/blob/master/src/views/view5.vue): `src/views/view5.vue`
- [Post card](https://github.com/rsmn574/androidtips/blob/master/src/components/postCard.vue): `src/components/postCard.vue`

### Content delivery

- [Post detail](https://github.com/rsmn574/androidtips/blob/master/src/views/post_id.vue): `src/views/post_id.vue`
- [Post store](https://github.com/rsmn574/androidtips/blob/master/src/store/index.js): `src/store/index.js`
- [Sanity client](https://github.com/rsmn574/androidtips/blob/master/src/client.js): `src/client.js`
- [Image utilities](https://github.com/rsmn574/androidtips/blob/master/src/utils.js): `src/utils.js`

### Sanity content models

- [Author schema](https://github.com/rsmn574/androidtips/blob/master/androidtips/schemas/author.js): `androidtips/schemas/author.js`
- [Post schema](https://github.com/rsmn574/androidtips/blob/master/androidtips/schemas/post.js): `androidtips/schemas/post.js`
- [Rich-text schema](https://github.com/rsmn574/androidtips/blob/master/androidtips/schemas/blockContent.js): `androidtips/schemas/blockContent.js`
- [Schema registry](https://github.com/rsmn574/androidtips/blob/master/androidtips/schemas/index.js): `androidtips/schemas/index.js`
- [Studio config](https://github.com/rsmn574/androidtips/blob/master/androidtips/sanity.config.js): `androidtips/sanity.config.js`

### Other components

- **Reader**
- **Sanity API**

## Connections

- Reader → Vue entry: opens app
- Vue entry → App shell: mounts (evidence: `src/main.js`)
- App shell → Route table: renders routes (evidence: `src/App.vue`)
- Route table → Home page: routes to (evidence: `src/router/index.js`)
- Route table → Category A: routes to (evidence: `src/router/index.js`)
- Route table → Category B: routes to (evidence: `src/router/index.js`)
- Route table → Category C: routes to (evidence: `src/router/index.js`)
- Route table → Category D: routes to (evidence: `src/router/index.js`)
- Route table → Category E: routes to (evidence: `src/router/index.js`)
- Route table → Post detail: routes to (evidence: `src/router/index.js`)
- Home page → Navigation: renders (evidence: `src/views/HomeView.vue`)
- Home page → Home card: renders (evidence: `src/views/HomeView.vue`)
- Category A → Navigation: renders (evidence: `src/views/view1.vue`)
- Category A → Post card: renders (evidence: `src/views/view1.vue`)
- Category B → Navigation: renders (evidence: `src/views/view2.vue`)
- Category B → Post card: renders (evidence: `src/views/view2.vue`)
- Category B → Post store: dispatches fetch (evidence: `src/views/view2.vue`)
- Category C → Navigation: renders (evidence: `src/views/view3.vue`)
- Category C → Post card: renders (evidence: `src/views/view3.vue`)
- Category D → Navigation: renders (evidence: `src/views/view4.vue`)
- Category D → Post card: renders (evidence: `src/views/view4.vue`)
- Category E → Navigation: renders (evidence: `src/views/view5.vue`)
- Category E → Post card: renders (evidence: `src/views/view5.vue`)
- Post detail → Navigation: renders (evidence: `src/views/post_id.vue`)
- Post store → Sanity client: fetches posts (evidence: `src/store/index.js`)
- Post detail → Sanity client: fetches post (evidence: `src/views/post_id.vue`)
- Post card → Image utilities: uses image URL (evidence: `src/components/postCard.vue`)
- Home card → Image utilities: uses utilities (evidence: `src/components/homeCard.vue`)
- Sanity client → Sanity API: configures access (evidence: `src/client.js`)
- Post store → Sanity API: queries content (evidence: `src/store/index.js`)
- Post detail → Sanity API: queries post (evidence: `src/views/post_id.vue`)
- Studio config → Schema registry: configures schemas (evidence: `androidtips/sanity.config.js`)
- Schema registry → Author schema: registers (evidence: `androidtips/schemas/index.js`)
- Schema registry → Post schema: registers (evidence: `androidtips/schemas/index.js`)
- Schema registry → Rich-text schema: registers (evidence: `androidtips/schemas/index.js`)
