# elianbecali/ligouamou.com.br architecture

> Architecture diagram of the GitHub repository elianbecali/ligouamou.com.br, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/elianbecali/ligouamou.com.br
- Repository: https://github.com/elianbecali/ligouamou.com.br

## Overview

LigouAmou is a Portuguese-language editorial site for product reviews, comparisons, and buying guides, with affiliate links. Its main workflow fetches published content from Sanity, presents featured and searchable posts on the home page, and serves category and article pages; article rendering includes structured content and related posts. The graph also captures discovery feeds, site navigation, and the Sanity content model. Relationships are limited to calls and imports visible in sampled files or the source index; several route and schema implementations were not sampled.

Main entry points: [`src/lib/sanity.client.ts`](https://github.com/elianbecali/ligouamou.com.br/blob/main/src/lib/sanity.client.ts) (Sanity client), [`src/app/page.tsx`](https://github.com/elianbecali/ligouamou.com.br/blob/main/src/app/page.tsx) (Home page), [`src/app/blog/[slug]/page.tsx`](https://github.com/elianbecali/ligouamou.com.br/blob/main/src/app/blog/%5Bslug%5D/page.tsx) (Article page), [`src/lib/queries.ts`](https://github.com/elianbecali/ligouamou.com.br/blob/main/src/lib/queries.ts) (Content queries)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_publishing["Content publishing"]
  node_queries["Content queries<br/>[queries.ts]"]
  node_client["Sanity client<br/>[sanity.client.ts]"]
  node_images["Image URLs<br/>[sanity.image.ts]"]
  node_sanity[("Sanity content store")]
  node_schemas["Content schemas"]
  node_studio["Sanity Studio config<br/>[sanity.config.ts]"]
end

subgraph group_reading["Reading experience"]
  node_home["Home page<br/>[page.tsx]"]
  node_hero["Featured story<br/>[HeroSection.tsx]"]
  node_homecard["Home post card<br/>[PostCard.tsx]"]
  node_mostread["Popular posts<br/>[MostRead.tsx]"]
  node_article["Article page<br/>[page.tsx]"]
  node_portable["Rich text renderer"]
  node_affiliate["Affiliate links"]
  node_postcard["Related post card<br/>[PostCard.tsx]"]
  node_categorypage["Category page<br/>[page.tsx]"]
end

subgraph group_discovery["Search and discovery"]
  node_postsgrid["Posts grid<br/>[PostsGrid.tsx]"]
  node_searchfilter["Search filters<br/>[SearchFilter.tsx]"]
  node_searchhook["Search state<br/>[usePostSearch.ts]"]
  node_searchapi["Post search API<br/>[route.ts]"]
  node_categoryexplore["Category explorer"]
  node_llms["LLM content feeds<br/>[route.ts]"]
  node_llmsfull["Full content feed<br/>[route.ts]"]
  node_sitemap["Sitemap<br/>[sitemap.ts]"]
end

subgraph group_platform["Site platform"]
  node_layout["Site layout<br/>[layout.tsx]"]
  node_header["Header navigation<br/>[Header.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
end

node_visitor(("Reader"))

node_visitor -->|"opens"| node_home
node_home -->|"fetches"| node_client
node_home -->|"uses query"| node_queries
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_postsgrid
node_home -->|"renders"| node_mostread
node_home -->|"renders"| node_categoryexplore
node_postsgrid -->|"uses state"| node_searchhook
node_postsgrid -->|"renders"| node_searchfilter
node_postsgrid -->|"renders"| node_homecard
node_searchhook -->|"requests results"| node_searchapi
node_searchapi -->|"fetches results"| node_client
node_visitor -->|"opens article"| node_article
node_article -->|"fetches post"| node_client
node_article -->|"uses queries"| node_queries
node_article -->|"renders body"| node_portable
node_article -->|"renders related"| node_postcard
node_portable -->|"renders links"| node_affiliate
node_article -->|"builds image URLs"| node_images
node_postcard -->|"builds image URLs"| node_images
node_hero -->|"builds image URLs"| node_images
node_categorypage -->|"fetches category"| node_client
node_categorypage -->|"uses query"| node_queries
node_client -->|"connects"| node_sanity
node_images -->|"configures builder"| node_client
node_studio -->|"loads schemas"| node_schemas
node_layout -->|"renders"| node_header
node_layout -->|"renders"| node_footer
node_llms -->|"fetches content"| node_client
node_llms -->|"uses query"| node_queries
node_llmsfull -->|"fetches content"| node_client
node_llmsfull -->|"uses query"| node_queries
node_sitemap -->|"fetches content"| node_client

click node_home "https://github.com/elianbecali/ligouamou.com.br/blob/main/src/app/page.tsx"
click node_hero "https://github.com/elianbecali/ligouamou.com.br/blob/main/src/components/home/HeroSection.tsx"
click node_postsgrid "https://github.com/elianbecali/ligouamou.com.br/blob/main/src/components/home/PostsGrid.tsx"
click node_searchfilter "https://github.com/elianbecali/ligouamou.com.br/blob/main/src/components/home/SearchFilter.tsx"
click node_searchhook "https://github.com/elianbecali/ligouamou.com.br/blob/main/src/hooks/usePostSearch.ts"
click node_searchapi "https://github.com/elianbecali/ligouamou.com.br/blob/main/src/app/api/posts/search/route.ts"
click node_homecard "https://github.com/elianbecali/ligouamou.com.br/blob/main/src/components/home/PostCard.tsx"
click node_mostread "https://github.com/elianbecali/ligouamou.com.br/blob/main/src/components/home/MostRead.tsx"
click node_categoryexplore "https://github.com/elianbecali/ligouamou.com.br/blob/main/src/components/home/CategoryExplore.tsx"
click node_article "https://github.com/elianbecali/ligouamou.com.br/blob/main/src/app/blog/%5Bslug%5D/page.tsx"
click node_portable "https://github.com/elianbecali/ligouamou.com.br/blob/main/src/components/PortableTextRenderer.tsx"
click node_affiliate "https://github.com/elianbecali/ligouamou.com.br/blob/main/src/components/AffiliateButton.tsx"
click node_postcard "https://github.com/elianbecali/ligouamou.com.br/blob/main/src/components/PostCard.tsx"
click node_categorypage "https://github.com/elianbecali/ligouamou.com.br/blob/main/src/app/categoria/%5Bslug%5D/page.tsx"
click node_queries "https://github.com/elianbecali/ligouamou.com.br/blob/main/src/lib/queries.ts"
click node_client "https://github.com/elianbecali/ligouamou.com.br/blob/main/src/lib/sanity.client.ts"
click node_images "https://github.com/elianbecali/ligouamou.com.br/blob/main/src/lib/sanity.image.ts"
click node_schemas "https://github.com/elianbecali/ligouamou.com.br/tree/main/src/sanity/schemas"
click node_studio "https://github.com/elianbecali/ligouamou.com.br/blob/main/sanity.config.ts"
click node_layout "https://github.com/elianbecali/ligouamou.com.br/blob/main/src/app/layout.tsx"
click node_header "https://github.com/elianbecali/ligouamou.com.br/blob/main/src/components/Header.tsx"
click node_footer "https://github.com/elianbecali/ligouamou.com.br/blob/main/src/components/Footer.tsx"
click node_llms "https://github.com/elianbecali/ligouamou.com.br/blob/main/src/app/llms.txt/route.ts"
click node_llmsfull "https://github.com/elianbecali/ligouamou.com.br/blob/main/src/app/llms-full.txt/route.ts"
click node_sitemap "https://github.com/elianbecali/ligouamou.com.br/blob/main/src/app/sitemap.ts"

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_queries,node_client,node_images,node_sanity,node_schemas,node_studio toneBlue
class node_home,node_hero,node_homecard,node_mostread,node_article,node_portable,node_affiliate,node_postcard,node_categorypage toneAmber
class node_postsgrid,node_searchfilter,node_searchhook,node_searchapi,node_categoryexplore,node_llms,node_llmsfull,node_sitemap toneMint
class node_layout,node_header,node_footer toneRose
class node_visitor toneIndigo
```

## Components

### Content publishing

- [Content queries](https://github.com/elianbecali/ligouamou.com.br/blob/main/src/lib/queries.ts): `src/lib/queries.ts`
- [Sanity client](https://github.com/elianbecali/ligouamou.com.br/blob/main/src/lib/sanity.client.ts): `src/lib/sanity.client.ts`
- [Image URLs](https://github.com/elianbecali/ligouamou.com.br/blob/main/src/lib/sanity.image.ts): `src/lib/sanity.image.ts`
- **Sanity content store**
- [Content schemas](https://github.com/elianbecali/ligouamou.com.br/tree/main/src/sanity/schemas): `src/sanity/schemas`
- [Sanity Studio config](https://github.com/elianbecali/ligouamou.com.br/blob/main/sanity.config.ts): `sanity.config.ts`

### Reading experience

- [Home page](https://github.com/elianbecali/ligouamou.com.br/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Featured story](https://github.com/elianbecali/ligouamou.com.br/blob/main/src/components/home/HeroSection.tsx): `src/components/home/HeroSection.tsx`
- [Home post card](https://github.com/elianbecali/ligouamou.com.br/blob/main/src/components/home/PostCard.tsx): `src/components/home/PostCard.tsx`
- [Popular posts](https://github.com/elianbecali/ligouamou.com.br/blob/main/src/components/home/MostRead.tsx): `src/components/home/MostRead.tsx`
- [Article page](https://github.com/elianbecali/ligouamou.com.br/blob/main/src/app/blog/%5Bslug%5D/page.tsx): `src/app/blog/[slug]/page.tsx`
- [Rich text renderer](https://github.com/elianbecali/ligouamou.com.br/blob/main/src/components/PortableTextRenderer.tsx): `src/components/PortableTextRenderer.tsx`
- [Affiliate links](https://github.com/elianbecali/ligouamou.com.br/blob/main/src/components/AffiliateButton.tsx): `src/components/AffiliateButton.tsx`
- [Related post card](https://github.com/elianbecali/ligouamou.com.br/blob/main/src/components/PostCard.tsx): `src/components/PostCard.tsx`
- [Category page](https://github.com/elianbecali/ligouamou.com.br/blob/main/src/app/categoria/%5Bslug%5D/page.tsx): `src/app/categoria/[slug]/page.tsx`

### Search and discovery

- [Posts grid](https://github.com/elianbecali/ligouamou.com.br/blob/main/src/components/home/PostsGrid.tsx): `src/components/home/PostsGrid.tsx`
- [Search filters](https://github.com/elianbecali/ligouamou.com.br/blob/main/src/components/home/SearchFilter.tsx): `src/components/home/SearchFilter.tsx`
- [Search state](https://github.com/elianbecali/ligouamou.com.br/blob/main/src/hooks/usePostSearch.ts): `src/hooks/usePostSearch.ts`
- [Post search API](https://github.com/elianbecali/ligouamou.com.br/blob/main/src/app/api/posts/search/route.ts): `src/app/api/posts/search/route.ts`
- [Category explorer](https://github.com/elianbecali/ligouamou.com.br/blob/main/src/components/home/CategoryExplore.tsx): `src/components/home/CategoryExplore.tsx`
- [LLM content feeds](https://github.com/elianbecali/ligouamou.com.br/blob/main/src/app/llms.txt/route.ts): `src/app/llms.txt/route.ts`
- [Full content feed](https://github.com/elianbecali/ligouamou.com.br/blob/main/src/app/llms-full.txt/route.ts): `src/app/llms-full.txt/route.ts`
- [Sitemap](https://github.com/elianbecali/ligouamou.com.br/blob/main/src/app/sitemap.ts): `src/app/sitemap.ts`

### Site platform

- [Site layout](https://github.com/elianbecali/ligouamou.com.br/blob/main/src/app/layout.tsx): `src/app/layout.tsx`
- [Header navigation](https://github.com/elianbecali/ligouamou.com.br/blob/main/src/components/Header.tsx): `src/components/Header.tsx`
- [Footer](https://github.com/elianbecali/ligouamou.com.br/blob/main/src/components/Footer.tsx): `src/components/Footer.tsx`

### Other components

- **Reader**

## Connections

- Reader → Home page: opens (evidence: `src/app/page.tsx`)
- Home page → Sanity client: fetches (evidence: `src/app/page.tsx`)
- Home page → Content queries: uses query (evidence: `src/app/page.tsx`)
- Home page → Featured story: renders (evidence: `src/app/page.tsx`)
- Home page → Posts grid: renders (evidence: `src/app/page.tsx`)
- Home page → Popular posts: renders (evidence: `src/app/page.tsx`)
- Home page → Category explorer: renders (evidence: `src/app/page.tsx`)
- Posts grid → Search state: uses state (evidence: `src/components/home/PostsGrid.tsx`)
- Posts grid → Search filters: renders (evidence: `src/components/home/PostsGrid.tsx`)
- Posts grid → Home post card: renders (evidence: `src/components/home/PostsGrid.tsx`)
- Search state → Post search API: requests results (evidence: `src/hooks/usePostSearch.ts`)
- Post search API → Sanity client: fetches results (evidence: `src/app/api/posts/search/route.ts`)
- Reader → Article page: opens article (evidence: `src/app/blog/[slug]/page.tsx`)
- Article page → Sanity client: fetches post (evidence: `src/app/blog/[slug]/page.tsx`)
- Article page → Content queries: uses queries (evidence: `src/app/blog/[slug]/page.tsx`)
- Article page → Rich text renderer: renders body (evidence: `src/app/blog/[slug]/page.tsx`)
- Article page → Related post card: renders related (evidence: `src/app/blog/[slug]/page.tsx`)
- Rich text renderer → Affiliate links: renders links (evidence: `src/components/PortableTextRenderer.tsx`)
- Article page → Image URLs: builds image URLs (evidence: `src/app/blog/[slug]/page.tsx`)
- Related post card → Image URLs: builds image URLs (evidence: `src/components/PostCard.tsx`)
- Featured story → Image URLs: builds image URLs (evidence: `src/components/home/HeroSection.tsx`)
- Category page → Sanity client: fetches category (evidence: `src/app/categoria/[slug]/page.tsx`)
- Category page → Content queries: uses query (evidence: `src/app/categoria/[slug]/page.tsx`)
- Sanity client → Sanity content store: connects (evidence: `src/lib/sanity.client.ts`)
- Image URLs → Sanity client: configures builder (evidence: `src/lib/sanity.image.ts`)
- Sanity Studio config → Content schemas: loads schemas (evidence: `sanity.config.ts`)
- Site layout → Header navigation: renders (evidence: `src/app/layout.tsx`)
- Site layout → Footer: renders (evidence: `src/app/layout.tsx`)
- LLM content feeds → Sanity client: fetches content (evidence: `src/app/llms.txt/route.ts`)
- LLM content feeds → Content queries: uses query (evidence: `src/app/llms.txt/route.ts`)
- Full content feed → Sanity client: fetches content (evidence: `src/app/llms-full.txt/route.ts`)
- Full content feed → Content queries: uses query (evidence: `src/app/llms-full.txt/route.ts`)
- Sitemap → Sanity client: fetches content (evidence: `src/app/sitemap.ts`)
