# ccradle/findabed architecture

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

- Interactive diagram: https://gitdiagram.com/ccradle/findabed
- Repository: https://github.com/ccradle/findabed

## Overview

This repository is project documentation, but the sampled runtime component is `contact.js`: a small browser-side contact widget for static pages. It selects English or Spanish copy, fetches public platform contact information, and reveals either an email link or a GitHub Issues fallback. The source excerpt documents page loading and these behaviors; no backend implementation is included in the sampled files.

Main entry points: [`contact.js`](https://github.com/ccradle/findabed/blob/main/contact.js) (Contact fetcher)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_browser(("Browser visitor"))
node_contact["Contact fetcher<br/>[contact.js]"]
node_dom["Page elements"]
node_contact_api["Contact API"]
node_github_issues["GitHub Issues"]

node_browser -->|"loads script"| node_contact
node_contact -->|"updates links"| node_dom
node_contact -->|"fetches contact"| node_contact_api
node_contact_api -->|"returns JSON"| node_contact
node_contact -->|"sets fallback"| node_github_issues

click node_contact "https://github.com/ccradle/findabed/blob/main/contact.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_browser toneBlue
class node_contact toneTeal
class node_dom,node_github_issues toneIndigo
class node_contact_api toneMint
```

## Components

### Other components

- **Browser visitor**
- [Contact fetcher](https://github.com/ccradle/findabed/blob/main/contact.js): `contact.js`
- **Page elements**
- **Contact API**
- **GitHub Issues**

## Connections

- Browser visitor → Contact fetcher: loads script (evidence: `contact.js`)
- Contact fetcher → Page elements: updates links (evidence: `contact.js`)
- Contact fetcher → Contact API: fetches contact (evidence: `contact.js`)
- Contact API → Contact fetcher: returns JSON (evidence: `contact.js`)
- Contact fetcher → GitHub Issues: sets fallback (evidence: `contact.js`)
