# jacopomazzoni/slider architecture

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

- Interactive diagram: https://gitdiagram.com/jacopomazzoni/slider
- Repository: https://github.com/jacopomazzoni/slider

## Overview

sliderCMS is a Django digital-signage CMS. Operators authenticate and configure slides and generated content; the application stores media and settings, then serves public kiosk playback and previews. Other documented capabilities include transit views, site import/export, activity history, software updates, and scheduled screen power. The graph combines sampled source references with README-documented capabilities; unsampled internals are represented only at supported paths, and uncertain links are omitted.

Main entry points: [`posts/views.py`](https://github.com/jacopomazzoni/slider/blob/main/posts/views.py) (CMS and playback views), [`posts/models.py`](https://github.com/jacopomazzoni/slider/blob/main/posts/models.py) (Slides and settings), [`posts/forms.py`](https://github.com/jacopomazzoni/slider/blob/main/posts/forms.py) (Slide and settings forms), [`posts/tasks.py`](https://github.com/jacopomazzoni/slider/blob/main/posts/tasks.py) (Screen power tasks)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_accounts["Accounts and access"]
  node_accounts_views["Account workflows<br/>[views.py]"]
  node_account_forms["Account forms<br/>[forms.py]"]
  node_permissions["Access rules<br/>[permissions.py]"]
end

subgraph group_content["Slide management"]
  node_post_views["CMS and playback views<br/>[views.py]"]
  node_post_forms["Slide and settings forms<br/>[forms.py]"]
  node_slide_data[("Slides and settings<br/>[models.py]")]
  node_media["Media processing"]
  node_rich_text["Rich text rendering<br/>[rich_text.py]"]
  node_qr["QR generation<br/>[qr_codes.py]"]
end

subgraph group_playback["Playback and generated content"]
  node_dateline_scraper["Dateline scraper<br/>[scrape.py]"]
  node_external_services["External content services"]
end

subgraph group_operations["Site operations"]
  node_site_migration["Site import/export<br/>[site_migration.py]"]
  node_activity[("Activity history<br/>[activity.py]")]
  node_updates["Software updates<br/>[updates.py]"]
end

subgraph group_runtime["Runtime and integrations"]
  node_celery["Task scheduling<br/>[celery.py]"]
  node_tasks["Screen power tasks<br/>[tasks.py]"]
  node_cec["CEC control<br/>[cec_control.py]"]
  node_runtime_paths["Runtime paths<br/>[runtime.py]"]
end

node_operator(("Operator"))
node_visitor(("Kiosk visitor"))

node_operator -->|"manages account"| node_accounts_views
node_accounts_views -->|"validates with"| node_account_forms
node_accounts_views -->|"checks access"| node_permissions
node_operator -->|"manages slides"| node_post_views
node_post_views -->|"validates with"| node_post_forms
node_post_views -->|"reads and writes"| node_slide_data
node_post_forms -->|"validates models"| node_slide_data
node_post_forms -->|"uses processing"| node_media
node_post_forms -->|"cleans content"| node_rich_text
node_post_views -->|"checks access"| node_permissions
node_post_views -->|"records actions"| node_activity
node_media -->|"creates renditions"| node_slide_data
node_rich_text -->|"generates codes"| node_qr
node_visitor -->|"views playback"| node_post_views
node_post_views -->|"fetches transit data"| node_external_services
node_post_views -.->|"loads announcements"| node_dateline_scraper
node_dateline_scraper -->|"scrapes announcements"| node_external_services
node_operator -->|"imports or exports"| node_site_migration
node_post_views -->|"invokes migration"| node_site_migration
node_operator -->|"reviews updates"| node_updates
node_operator -->|"configures schedule"| node_tasks
node_celery -.->|"runs tasks"| node_tasks
node_tasks -->|"reads schedule"| node_slide_data
node_tasks -->|"switches display"| node_cec
node_cec -.->|"controls TV"| node_external_services
node_runtime_paths -.->|"sets data location"| node_slide_data

click node_accounts_views "https://github.com/jacopomazzoni/slider/blob/main/accounts/views.py"
click node_account_forms "https://github.com/jacopomazzoni/slider/blob/main/accounts/forms.py"
click node_permissions "https://github.com/jacopomazzoni/slider/blob/main/accounts/permissions.py"
click node_post_views "https://github.com/jacopomazzoni/slider/blob/main/posts/views.py"
click node_post_forms "https://github.com/jacopomazzoni/slider/blob/main/posts/forms.py"
click node_slide_data "https://github.com/jacopomazzoni/slider/blob/main/posts/models.py"
click node_media "https://github.com/jacopomazzoni/slider/blob/main/posts/media_processing.py"
click node_rich_text "https://github.com/jacopomazzoni/slider/blob/main/posts/rich_text.py"
click node_qr "https://github.com/jacopomazzoni/slider/blob/main/posts/qr_codes.py"
click node_dateline_scraper "https://github.com/jacopomazzoni/slider/blob/main/scrape.py"
click node_site_migration "https://github.com/jacopomazzoni/slider/blob/main/posts/site_migration.py"
click node_activity "https://github.com/jacopomazzoni/slider/blob/main/posts/activity.py"
click node_updates "https://github.com/jacopomazzoni/slider/blob/main/posts/updates.py"
click node_celery "https://github.com/jacopomazzoni/slider/blob/main/sliderCMS/celery.py"
click node_tasks "https://github.com/jacopomazzoni/slider/blob/main/posts/tasks.py"
click node_cec "https://github.com/jacopomazzoni/slider/blob/main/scripts/cec_control.py"
click node_runtime_paths "https://github.com/jacopomazzoni/slider/blob/main/sliderCMS/runtime.py"

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_accounts_views,node_account_forms,node_permissions toneBlue
class node_post_views,node_post_forms,node_slide_data,node_media,node_rich_text,node_qr toneAmber
class node_dateline_scraper,node_external_services toneMint
class node_site_migration,node_activity,node_updates toneRose
class node_celery,node_tasks,node_cec,node_runtime_paths,node_operator,node_visitor toneIndigo
```

## Components

### Accounts and access

- [Account workflows](https://github.com/jacopomazzoni/slider/blob/main/accounts/views.py): `accounts/views.py`
- [Account forms](https://github.com/jacopomazzoni/slider/blob/main/accounts/forms.py): `accounts/forms.py`
- [Access rules](https://github.com/jacopomazzoni/slider/blob/main/accounts/permissions.py): `accounts/permissions.py`

### Slide management

- [CMS and playback views](https://github.com/jacopomazzoni/slider/blob/main/posts/views.py): `posts/views.py`
- [Slide and settings forms](https://github.com/jacopomazzoni/slider/blob/main/posts/forms.py): `posts/forms.py`
- [Slides and settings](https://github.com/jacopomazzoni/slider/blob/main/posts/models.py): `posts/models.py`
- [Media processing](https://github.com/jacopomazzoni/slider/blob/main/posts/media_processing.py): `posts/media_processing.py`
- [Rich text rendering](https://github.com/jacopomazzoni/slider/blob/main/posts/rich_text.py): `posts/rich_text.py`
- [QR generation](https://github.com/jacopomazzoni/slider/blob/main/posts/qr_codes.py): `posts/qr_codes.py`

### Playback and generated content

- [Dateline scraper](https://github.com/jacopomazzoni/slider/blob/main/scrape.py): `scrape.py`
- **External content services**

### Site operations

- [Site import/export](https://github.com/jacopomazzoni/slider/blob/main/posts/site_migration.py): `posts/site_migration.py`
- [Activity history](https://github.com/jacopomazzoni/slider/blob/main/posts/activity.py): `posts/activity.py`
- [Software updates](https://github.com/jacopomazzoni/slider/blob/main/posts/updates.py): `posts/updates.py`

### Runtime and integrations

- [Task scheduling](https://github.com/jacopomazzoni/slider/blob/main/sliderCMS/celery.py): `sliderCMS/celery.py`
- [Screen power tasks](https://github.com/jacopomazzoni/slider/blob/main/posts/tasks.py): `posts/tasks.py`
- [CEC control](https://github.com/jacopomazzoni/slider/blob/main/scripts/cec_control.py): `scripts/cec_control.py`
- [Runtime paths](https://github.com/jacopomazzoni/slider/blob/main/sliderCMS/runtime.py): `sliderCMS/runtime.py`

### Other components

- **Operator**
- **Kiosk visitor**

## Connections

- Operator → Account workflows: manages account (evidence: `README.md`)
- Account workflows → Account forms: validates with (evidence: `accounts/views.py`)
- Account workflows → Access rules: checks access (evidence: `accounts/views.py`)
- Operator → CMS and playback views: manages slides (evidence: `README.md`)
- CMS and playback views → Slide and settings forms: validates with (evidence: `posts/views.py`)
- CMS and playback views → Slides and settings: reads and writes (evidence: `posts/views.py`)
- Slide and settings forms → Slides and settings: validates models (evidence: `posts/forms.py`)
- Slide and settings forms → Media processing: uses processing (evidence: `posts/forms.py`)
- Slide and settings forms → Rich text rendering: cleans content (evidence: `posts/forms.py`)
- CMS and playback views → Access rules: checks access (evidence: `posts/views.py`)
- CMS and playback views → Activity history: records actions (evidence: `posts/views.py`)
- Media processing → Slides and settings: creates renditions (evidence: `posts/models.py`)
- Rich text rendering → QR generation: generates codes (evidence: `posts/rich_text.py`)
- Kiosk visitor → CMS and playback views: views playback (evidence: `README.md`)
- CMS and playback views → External content services: fetches transit data (evidence: `posts/views.py`)
- CMS and playback views → Dateline scraper: loads announcements (evidence: `posts/views.py`)
- Dateline scraper → External content services: scrapes announcements (evidence: `scrape.py`)
- Operator → Site import/export: imports or exports (evidence: `README.md`)
- CMS and playback views → Site import/export: invokes migration (evidence: `posts/views.py`)
- Operator → Software updates: reviews updates (evidence: `README.md`)
- Operator → Screen power tasks: configures schedule (evidence: `README.md`)
- Task scheduling → Screen power tasks: runs tasks (evidence: `posts/tasks.py`)
- Screen power tasks → Slides and settings: reads schedule (evidence: `posts/tasks.py`)
- Screen power tasks → CEC control: switches display (evidence: `posts/tasks.py`)
- CEC control → External content services: controls TV
- Runtime paths → Slides and settings: sets data location
