# codyogden/killedbygoogle architecture

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

- Interactive diagram: https://gitdiagram.com/codyogden/killedbygoogle
- Repository: https://github.com/codyogden/killedbygoogle

## Overview

Killed by Google is a public memorial catalog of discontinued Google apps, services, and hardware. The main workflow loads and normalizes the catalog, renders it on the home page, lets visitors search and filter records, and presents dated product entries with links and descriptions. The same processed catalog is exposed through a public JSON endpoint. The graph also preserves the advertising and press-coverage branches. Some connections are based on explicit README or source-index references; unsampled implementation details are omitted.

Main entry points: [`components/App.tsx`](https://github.com/codyogden/killedbygoogle/blob/main/components/App.tsx) (Catalog Interface), [`app/page.tsx`](https://github.com/codyogden/killedbygoogle/blob/main/app/page.tsx) (Home Page), [`lib/graveyard.ts`](https://github.com/codyogden/killedbygoogle/blob/main/lib/graveyard.ts) (Catalog Processor), [`components/List/index.tsx`](https://github.com/codyogden/killedbygoogle/blob/main/components/List/index.tsx) (Result List)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Catalog Data"]
  node_records_data[("Product Records<br/>[graveyard.json]")]
  node_processor["Catalog Processor<br/>[graveyard.ts]"]
  node_api["Catalog API<br/>[route.ts]"]
  node_product_types["Product Types<br/>[Product.ts]"]
  node_filter_types["Filter Types<br/>[Filter.ts]"]
end

subgraph group_web["Website Experience"]
  node_home["Home Page<br/>[page.tsx]"]
  node_layout["Site Layout<br/>[layout.tsx]"]
  node_app["Catalog Interface<br/>[App.tsx]"]
  node_controls["Search Controls<br/>[Controls.tsx]"]
  node_search["Catalog Search<br/>[index.tsx]"]
  node_filter["Type Filter<br/>[Filter.tsx]"]
  node_input["Search Input<br/>[input.tsx]"]
  node_loader["Loading State<br/>[Loader.tsx]"]
end

subgraph group_records["Record Presentation"]
  node_list["Result List<br/>[index.tsx]"]
  node_item["Product Entry<br/>[Item.tsx]"]
  node_badge["Type Badge<br/>[Badge.tsx]"]
  node_lead_phrase["Death Phrase<br/>[LeadPhrase.tsx]"]
  node_carbon["Ad Placement<br/>[Carbon.tsx]"]
  node_srt["Accessible Text<br/>[SRT.tsx]"]
end

subgraph group_outreach["Public Outreach"]
  node_header["Site Header<br/>[Header.tsx]"]
  node_footer["Site Footer<br/>[index.tsx]"]
  node_press["Press Coverage<br/>[PressCoverage.tsx]"]
end

node_visitor(("Visitor"))
node_api_client(("API Client"))

node_visitor -->|"visits"| node_home
node_home -->|"reads catalog"| node_processor
node_home -->|"renders"| node_header
node_home -->|"renders"| node_app
node_home -->|"renders"| node_footer
node_layout -.->|"wraps page"| node_home
node_processor -->|"reads and sorts"| node_records_data
node_processor -->|"uses types"| node_product_types
node_processor -->|"supplies records"| node_api
node_api_client -.->|"requests JSON"| node_api
node_api -->|"returns records"| node_processor
node_app -->|"renders"| node_controls
node_app -->|"renders"| node_search
node_app -->|"renders"| node_filter
node_app -->|"renders filtered results"| node_list
node_app -->|"renders when empty"| node_loader
node_search -->|"renders"| node_input
node_search -->|"renders label"| node_srt
node_filter -->|"renders label"| node_srt
node_filter -->|"uses values"| node_filter_types
node_list -->|"renders entries"| node_item
node_list -->|"renders ad"| node_carbon
node_list -->|"renders ad label"| node_srt
node_item -->|"renders type"| node_badge
node_item -->|"renders future-death phrase"| node_lead_phrase
node_footer -->|"renders coverage"| node_press

click node_home "https://github.com/codyogden/killedbygoogle/blob/main/app/page.tsx"
click node_layout "https://github.com/codyogden/killedbygoogle/blob/main/app/layout.tsx"
click node_app "https://github.com/codyogden/killedbygoogle/blob/main/components/App.tsx"
click node_controls "https://github.com/codyogden/killedbygoogle/blob/main/components/Controls.tsx"
click node_search "https://github.com/codyogden/killedbygoogle/blob/main/components/Search/index.tsx"
click node_filter "https://github.com/codyogden/killedbygoogle/blob/main/components/Filter.tsx"
click node_input "https://github.com/codyogden/killedbygoogle/blob/main/components/ui/input.tsx"
click node_loader "https://github.com/codyogden/killedbygoogle/blob/main/components/Loader.tsx"
click node_records_data "https://github.com/codyogden/killedbygoogle/blob/main/graveyard.json"
click node_processor "https://github.com/codyogden/killedbygoogle/blob/main/lib/graveyard.ts"
click node_api "https://github.com/codyogden/killedbygoogle/blob/main/app/api/graveyard/route.ts"
click node_product_types "https://github.com/codyogden/killedbygoogle/blob/main/types/Product.ts"
click node_filter_types "https://github.com/codyogden/killedbygoogle/blob/main/types/Filter.ts"
click node_list "https://github.com/codyogden/killedbygoogle/blob/main/components/List/index.tsx"
click node_item "https://github.com/codyogden/killedbygoogle/blob/main/components/List/Item.tsx"
click node_badge "https://github.com/codyogden/killedbygoogle/blob/main/components/Badge.tsx"
click node_lead_phrase "https://github.com/codyogden/killedbygoogle/blob/main/components/List/LeadPhrase.tsx"
click node_carbon "https://github.com/codyogden/killedbygoogle/blob/main/components/Carbon.tsx"
click node_srt "https://github.com/codyogden/killedbygoogle/blob/main/components/SRT.tsx"
click node_header "https://github.com/codyogden/killedbygoogle/blob/main/components/Header.tsx"
click node_footer "https://github.com/codyogden/killedbygoogle/blob/main/components/Footer/index.tsx"
click node_press "https://github.com/codyogden/killedbygoogle/blob/main/components/PressCoverage.tsx"

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_records_data,node_processor,node_api,node_product_types,node_filter_types,node_api_client toneBlue
class node_home,node_layout,node_app,node_controls,node_search,node_filter,node_input,node_loader toneAmber
class node_list,node_item,node_badge,node_lead_phrase,node_carbon,node_srt toneMint
class node_header,node_footer,node_press toneRose
class node_visitor toneIndigo
```

## Components

### Catalog Data

- [Product Records](https://github.com/codyogden/killedbygoogle/blob/main/graveyard.json): `graveyard.json`
- [Catalog Processor](https://github.com/codyogden/killedbygoogle/blob/main/lib/graveyard.ts): `lib/graveyard.ts`
- [Catalog API](https://github.com/codyogden/killedbygoogle/blob/main/app/api/graveyard/route.ts): `app/api/graveyard/route.ts`
- [Product Types](https://github.com/codyogden/killedbygoogle/blob/main/types/Product.ts): `types/Product.ts`
- [Filter Types](https://github.com/codyogden/killedbygoogle/blob/main/types/Filter.ts): `types/Filter.ts`

### Website Experience

- [Home Page](https://github.com/codyogden/killedbygoogle/blob/main/app/page.tsx): `app/page.tsx`
- [Site Layout](https://github.com/codyogden/killedbygoogle/blob/main/app/layout.tsx): `app/layout.tsx`
- [Catalog Interface](https://github.com/codyogden/killedbygoogle/blob/main/components/App.tsx): `components/App.tsx`
- [Search Controls](https://github.com/codyogden/killedbygoogle/blob/main/components/Controls.tsx): `components/Controls.tsx`
- [Catalog Search](https://github.com/codyogden/killedbygoogle/blob/main/components/Search/index.tsx): `components/Search/index.tsx`
- [Type Filter](https://github.com/codyogden/killedbygoogle/blob/main/components/Filter.tsx): `components/Filter.tsx`
- [Search Input](https://github.com/codyogden/killedbygoogle/blob/main/components/ui/input.tsx): `components/ui/input.tsx`
- [Loading State](https://github.com/codyogden/killedbygoogle/blob/main/components/Loader.tsx): `components/Loader.tsx`

### Record Presentation

- [Result List](https://github.com/codyogden/killedbygoogle/blob/main/components/List/index.tsx): `components/List/index.tsx`
- [Product Entry](https://github.com/codyogden/killedbygoogle/blob/main/components/List/Item.tsx): `components/List/Item.tsx`
- [Type Badge](https://github.com/codyogden/killedbygoogle/blob/main/components/Badge.tsx): `components/Badge.tsx`
- [Death Phrase](https://github.com/codyogden/killedbygoogle/blob/main/components/List/LeadPhrase.tsx): `components/List/LeadPhrase.tsx`
- [Ad Placement](https://github.com/codyogden/killedbygoogle/blob/main/components/Carbon.tsx): `components/Carbon.tsx`
- [Accessible Text](https://github.com/codyogden/killedbygoogle/blob/main/components/SRT.tsx): `components/SRT.tsx`

### Public Outreach

- [Site Header](https://github.com/codyogden/killedbygoogle/blob/main/components/Header.tsx): `components/Header.tsx`
- [Site Footer](https://github.com/codyogden/killedbygoogle/blob/main/components/Footer/index.tsx): `components/Footer/index.tsx`
- [Press Coverage](https://github.com/codyogden/killedbygoogle/blob/main/components/PressCoverage.tsx): `components/PressCoverage.tsx`

### Other components

- **Visitor**
- **API Client**

## Connections

- Visitor → Home Page: visits (evidence: `app/page.tsx`)
- Home Page → Catalog Processor: reads catalog (evidence: `app/page.tsx`)
- Home Page → Site Header: renders (evidence: `app/page.tsx`)
- Home Page → Catalog Interface: renders (evidence: `app/page.tsx`)
- Home Page → Site Footer: renders (evidence: `app/page.tsx`)
- Site Layout → Home Page: wraps page
- Catalog Processor → Product Records: reads and sorts (evidence: `lib/graveyard.ts`)
- Catalog Processor → Product Types: uses types (evidence: `lib/graveyard.ts`)
- Catalog Processor → Catalog API: supplies records (evidence: `app/api/graveyard/route.ts`)
- API Client → Catalog API: requests JSON
- Catalog API → Catalog Processor: returns records (evidence: `app/api/graveyard/route.ts`)
- Catalog Interface → Search Controls: renders (evidence: `components/App.tsx`)
- Catalog Interface → Catalog Search: renders (evidence: `components/App.tsx`)
- Catalog Interface → Type Filter: renders (evidence: `components/App.tsx`)
- Catalog Interface → Result List: renders filtered results (evidence: `components/App.tsx`)
- Catalog Interface → Loading State: renders when empty (evidence: `components/App.tsx`)
- Catalog Search → Search Input: renders (evidence: `components/Search/index.tsx`)
- Catalog Search → Accessible Text: renders label (evidence: `components/Search/index.tsx`)
- Type Filter → Accessible Text: renders label (evidence: `components/Filter.tsx`)
- Type Filter → Filter Types: uses values (evidence: `components/Filter.tsx`)
- Result List → Product Entry: renders entries (evidence: `components/List/index.tsx`)
- Result List → Ad Placement: renders ad (evidence: `components/List/index.tsx`)
- Result List → Accessible Text: renders ad label (evidence: `components/List/index.tsx`)
- Product Entry → Type Badge: renders type (evidence: `components/List/Item.tsx`)
- Product Entry → Death Phrase: renders future-death phrase (evidence: `components/List/Item.tsx`)
- Site Footer → Press Coverage: renders coverage (evidence: `components/Footer/index.tsx`)
