# maplibre/maplibre.github.io architecture

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

- Interactive diagram: https://gitdiagram.com/maplibre/maplibre.github.io
- Repository: https://github.com/maplibre/maplibre.github.io

## Overview

maplibre.org is the MapLibre organization’s Astro website. Its visitor workflow is browsing published news and roadmap entries, with generated RSS and social-preview images supporting those content pages; the site also presents the community map, people, sponsors, and project information. Content collections define news, bios, and roadmap data, while shared helpers filter news and render images. The README documents the community map’s data and purpose. Several page implementations were not sampled, so their connections are omitted or marked unverified rather than inferred as confirmed calls.

Main entry points: [`src/lib/og-image.ts`](https://github.com/maplibre/maplibre.github.io/blob/main/src/lib/og-image.ts) (Image renderer), [`src/content.config.ts`](https://github.com/maplibre/maplibre.github.io/blob/main/src/content.config.ts) (Collection schemas), [`src/pages/news/[slug].xml.ts`](https://github.com/maplibre/maplibre.github.io/blob/main/src/pages/news/%5Bslug%5D.xml.ts) (News RSS feed), [`src/pages/og/news/[slug].png.ts`](https://github.com/maplibre/maplibre.github.io/blob/main/src/pages/og/news/%5Bslug%5D.png.ts) (News preview route)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Content and schemas"]
  node_news_content["News and bios"]
  node_roadmap_content["Roadmap entries"]
  node_content_schema["Collection schemas<br/>[content.config.ts]"]
  node_published_news["Published-news filter<br/>[collections.ts]"]
end

subgraph group_pages["Website experiences"]
  node_news_pages["News pages"]
  node_roadmap_pages["Roadmap pages"]
  node_site_pages["Organization and project pages"]
  node_rss_feed["News RSS feed<br/>[&#91;slug&#93;.xml.ts]"]
end

subgraph group_media["Content media"]
  node_news_og_route["News preview route<br/>[&#91;slug&#93;.png.ts]"]
  node_roadmap_og_route["Roadmap preview route<br/>[&#91;item&#93;.png.ts]"]
  node_og_renderer["Image renderer<br/>[og-image.ts]"]
end

subgraph group_community["Community and organization"]
  node_sponsors["Sponsor listings<br/>[sponsors.ts]"]
  node_sponsor_display["Sponsor display<br/>[Sponsors.tsx]"]
  node_community_data["Community map data<br/>[community.json]"]
  node_community_map["Community map<br/>[CommunityMap.tsx]"]
  node_people_display["Board and team<br/>[BoardAndTeam.tsx]"]
  node_list_shuffle["List shuffler<br/>[shuffleList.ts]"]
end

node_visitor(("Site visitor"))

node_visitor -.->|"browses"| node_news_pages
node_visitor -.->|"browses"| node_roadmap_pages
node_visitor -.->|"browses"| node_site_pages
node_news_pages -.->|"presents"| node_news_content
node_roadmap_pages -.->|"presents"| node_roadmap_content
node_content_schema -->|"loads and validates"| node_news_content
node_content_schema -->|"loads and validates"| node_roadmap_content
node_rss_feed -->|"requests posts"| node_published_news
node_news_og_route -->|"requests posts"| node_published_news
node_rss_feed -.->|"renders feed content"| node_og_renderer
node_news_og_route -->|"renders preview"| node_og_renderer
node_roadmap_og_route -->|"renders preview"| node_og_renderer
node_sponsor_display -->|"reads listings"| node_sponsors
node_people_display -->|"shuffles lists"| node_list_shuffle
node_sponsor_display -->|"shuffles listings"| node_list_shuffle
node_community_map -.->|"uses map data"| node_community_data
node_visitor -.->|"views map"| node_community_map

click node_news_content "https://github.com/maplibre/maplibre.github.io/tree/main/src/content/news"
click node_roadmap_content "https://github.com/maplibre/maplibre.github.io/tree/main/src/content/roadmap"
click node_content_schema "https://github.com/maplibre/maplibre.github.io/blob/main/src/content.config.ts"
click node_published_news "https://github.com/maplibre/maplibre.github.io/blob/main/src/lib/collections.ts"
click node_news_pages "https://github.com/maplibre/maplibre.github.io/tree/main/src/pages/news"
click node_roadmap_pages "https://github.com/maplibre/maplibre.github.io/tree/main/src/pages/roadmap"
click node_site_pages "https://github.com/maplibre/maplibre.github.io/tree/main/src/pages"
click node_rss_feed "https://github.com/maplibre/maplibre.github.io/blob/main/src/pages/news/%5Bslug%5D.xml.ts"
click node_news_og_route "https://github.com/maplibre/maplibre.github.io/blob/main/src/pages/og/news/%5Bslug%5D.png.ts"
click node_roadmap_og_route "https://github.com/maplibre/maplibre.github.io/blob/main/src/pages/og/roadmap/%5Bproject%5D/%5Bitem%5D.png.ts"
click node_og_renderer "https://github.com/maplibre/maplibre.github.io/blob/main/src/lib/og-image.ts"
click node_sponsors "https://github.com/maplibre/maplibre.github.io/blob/main/src/data/sponsors.ts"
click node_sponsor_display "https://github.com/maplibre/maplibre.github.io/blob/main/src/components/Sponsors.tsx"
click node_community_data "https://github.com/maplibre/maplibre.github.io/blob/main/src/content/community.json"
click node_community_map "https://github.com/maplibre/maplibre.github.io/blob/main/src/components/CommunityMap.tsx"
click node_people_display "https://github.com/maplibre/maplibre.github.io/blob/main/src/components/BoardAndTeam.tsx"
click node_list_shuffle "https://github.com/maplibre/maplibre.github.io/blob/main/src/utils/shuffleList.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_news_content,node_roadmap_content,node_content_schema,node_published_news toneBlue
class node_news_pages,node_roadmap_pages,node_site_pages,node_rss_feed toneAmber
class node_news_og_route,node_roadmap_og_route,node_og_renderer toneMint
class node_sponsors,node_sponsor_display,node_community_data,node_community_map,node_people_display,node_list_shuffle toneRose
class node_visitor toneIndigo
```

## Components

### Content and schemas

- [News and bios](https://github.com/maplibre/maplibre.github.io/tree/main/src/content/news): `src/content/news`
- [Roadmap entries](https://github.com/maplibre/maplibre.github.io/tree/main/src/content/roadmap): `src/content/roadmap`
- [Collection schemas](https://github.com/maplibre/maplibre.github.io/blob/main/src/content.config.ts): `src/content.config.ts`
- [Published-news filter](https://github.com/maplibre/maplibre.github.io/blob/main/src/lib/collections.ts): `src/lib/collections.ts`

### Website experiences

- [News pages](https://github.com/maplibre/maplibre.github.io/tree/main/src/pages/news): `src/pages/news`
- [Roadmap pages](https://github.com/maplibre/maplibre.github.io/tree/main/src/pages/roadmap): `src/pages/roadmap`
- [Organization and project pages](https://github.com/maplibre/maplibre.github.io/tree/main/src/pages): `src/pages`
- [News RSS feed](https://github.com/maplibre/maplibre.github.io/blob/main/src/pages/news/%5Bslug%5D.xml.ts): `src/pages/news/[slug].xml.ts`

### Content media

- [News preview route](https://github.com/maplibre/maplibre.github.io/blob/main/src/pages/og/news/%5Bslug%5D.png.ts): `src/pages/og/news/[slug].png.ts`
- [Roadmap preview route](https://github.com/maplibre/maplibre.github.io/blob/main/src/pages/og/roadmap/%5Bproject%5D/%5Bitem%5D.png.ts): `src/pages/og/roadmap/[project]/[item].png.ts`
- [Image renderer](https://github.com/maplibre/maplibre.github.io/blob/main/src/lib/og-image.ts): `src/lib/og-image.ts`

### Community and organization

- [Sponsor listings](https://github.com/maplibre/maplibre.github.io/blob/main/src/data/sponsors.ts): `src/data/sponsors.ts`
- [Sponsor display](https://github.com/maplibre/maplibre.github.io/blob/main/src/components/Sponsors.tsx): `src/components/Sponsors.tsx`
- [Community map data](https://github.com/maplibre/maplibre.github.io/blob/main/src/content/community.json): `src/content/community.json`
- [Community map](https://github.com/maplibre/maplibre.github.io/blob/main/src/components/CommunityMap.tsx): `src/components/CommunityMap.tsx`
- [Board and team](https://github.com/maplibre/maplibre.github.io/blob/main/src/components/BoardAndTeam.tsx): `src/components/BoardAndTeam.tsx`
- [List shuffler](https://github.com/maplibre/maplibre.github.io/blob/main/src/utils/shuffleList.ts): `src/utils/shuffleList.ts`

### Other components

- **Site visitor**

## Connections

- Site visitor → News pages: browses
- Site visitor → Roadmap pages: browses
- Site visitor → Organization and project pages: browses
- News pages → News and bios: presents
- Roadmap pages → Roadmap entries: presents
- Collection schemas → News and bios: loads and validates (evidence: `src/content.config.ts`)
- Collection schemas → Roadmap entries: loads and validates (evidence: `src/content.config.ts`)
- News RSS feed → Published-news filter: requests posts (evidence: `src/pages/news/[slug].xml.ts`)
- News preview route → Published-news filter: requests posts (evidence: `src/pages/og/news/[slug].png.ts`)
- News RSS feed → Image renderer: renders feed content
- News preview route → Image renderer: renders preview (evidence: `src/pages/og/news/[slug].png.ts`)
- Roadmap preview route → Image renderer: renders preview (evidence: `src/pages/og/roadmap/[project]/[item].png.ts`)
- Sponsor display → Sponsor listings: reads listings (evidence: `src/components/Sponsors.tsx`)
- Board and team → List shuffler: shuffles lists (evidence: `src/components/BoardAndTeam.tsx`)
- Sponsor display → List shuffler: shuffles listings (evidence: `src/components/Sponsors.tsx`)
- Community map → Community map data: uses map data
- Site visitor → Community map: views map (evidence: `README.md`)
