# madi6116/amore-cms architecture

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

- Interactive diagram: https://gitdiagram.com/madi6116/amore-cms
- Repository: https://github.com/madi6116/amore-cms

## Overview

This repository configures a Sanity Studio for Amore Weddings and defines three editable document types: services, owners, and site settings. Editors work in the Studio; its configured schema describes the content available for editing, and the README characterizes the Studio as connected to Sanity’s backend. The excerpts show schema registration and project configuration, but not runtime persistence or backend calls, so those links are documented at a high level only.

Main entry points: [`schemaTypes/index.js`](https://github.com/madi6116/amore-cms/blob/main/schemaTypes/index.js) (Schema registry), [`sanity.config.js`](https://github.com/madi6116/amore-cms/blob/main/sanity.config.js) (Studio config), [`schemaTypes/service.js`](https://github.com/madi6116/amore-cms/blob/main/schemaTypes/service.js) (Service document), [`schemaTypes/owner.js`](https://github.com/madi6116/amore-cms/blob/main/schemaTypes/owner.js) (Owner document)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_studio["Studio configuration"]
  node_config["Studio config<br/>[sanity.config.js]"]
  node_runtime["Sanity Studio"]
end

subgraph group_models["Content models"]
  node_registry["Schema registry<br/>[index.js]"]
  node_service["Service document<br/>[service.js]"]
  node_owner["Owner document<br/>[owner.js]"]
  node_settings["Site settings<br/>[sitesettings.js]"]
end

node_editor(("Content editor"))
node_backend[("Sanity backend")]

node_editor -->|"edits content"| node_runtime
node_config -->|"configures"| node_runtime
node_config -->|"registers schema"| node_registry
node_registry -->|"includes"| node_service
node_registry -->|"includes"| node_owner
node_registry -->|"includes"| node_settings
node_runtime -->|"connects to"| node_backend

click node_config "https://github.com/madi6116/amore-cms/blob/main/sanity.config.js"
click node_registry "https://github.com/madi6116/amore-cms/blob/main/schemaTypes/index.js"
click node_service "https://github.com/madi6116/amore-cms/blob/main/schemaTypes/service.js"
click node_owner "https://github.com/madi6116/amore-cms/blob/main/schemaTypes/owner.js"
click node_settings "https://github.com/madi6116/amore-cms/blob/main/schemaTypes/sitesettings.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_config,node_runtime toneBlue
class node_registry,node_service,node_owner,node_settings,node_backend toneAmber
class node_editor toneIndigo
```

## Components

### Studio configuration

- [Studio config](https://github.com/madi6116/amore-cms/blob/main/sanity.config.js): `sanity.config.js`
- **Sanity Studio**

### Content models

- [Schema registry](https://github.com/madi6116/amore-cms/blob/main/schemaTypes/index.js): `schemaTypes/index.js`
- [Service document](https://github.com/madi6116/amore-cms/blob/main/schemaTypes/service.js): `schemaTypes/service.js`
- [Owner document](https://github.com/madi6116/amore-cms/blob/main/schemaTypes/owner.js): `schemaTypes/owner.js`
- [Site settings](https://github.com/madi6116/amore-cms/blob/main/schemaTypes/sitesettings.js): `schemaTypes/sitesettings.js`

### Other components

- **Content editor**
- **Sanity backend**

## Connections

- Content editor → Sanity Studio: edits content (evidence: `README.md`)
- Studio config → Sanity Studio: configures (evidence: `sanity.config.js`)
- Studio config → Schema registry: registers schema (evidence: `sanity.config.js`)
- Schema registry → Service document: includes (evidence: `schemaTypes/index.js`)
- Schema registry → Owner document: includes (evidence: `schemaTypes/index.js`)
- Schema registry → Site settings: includes (evidence: `schemaTypes/index.js`)
- Sanity Studio → Sanity backend: connects to (evidence: `README.md`)
