# stagsz/greisz architecture

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

- Interactive diagram: https://gitdiagram.com/stagsz/greisz
- Repository: https://github.com/stagsz/greisz

## Overview

Greisz is a planned agency platform for managing social-media growth across client workspaces; the repository contains no application code yet. The main workflow is agency members managing a workspace, tracking lead journeys from links and opt-in webhooks, preparing media and Reels, then scheduling posts for manual publication. Client viewers have read-only access to their own workspace. The graph reflects documented first-release capabilities and later plans; because no source excerpts or implementation directories are present in the file tree, code paths and undocumented internal connections are omitted.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Workspace access"]
  node_workspace["Workspace"]
  node_roles["Roles and sign-in"]
  node_rls["Row-level access"]
end

subgraph group_journey["Lead journey"]
  node_journey_dashboard["Journey Dashboard"]
  node_tracked_links["Tracked links"]
  node_optin_webhook["Opt-in webhook"]
end

subgraph group_content["Media and Reels"]
  node_media_library["Media Library"]
  node_reel_batch["Reel Batch"]
  node_reel_renderer["Reel renderer"]
end

subgraph group_publishing["Social publishing"]
  node_scheduler["Social Scheduler"]
  node_mark_posted["Mark Posted"]
  node_dm_automation["DM automation"]
  node_coaching_actions["Coaching call actions"]
  node_social_insights["Social Insights"]
  node_post_ideas["Post ideas"]
end

node_agency(("Agency Member"))
node_client(("Client Viewer"))
node_client_tools["Client tools"]
node_platform_apps["Platform apps"]

node_agency -->|"manages"| node_workspace
node_client -->|"views read-only"| node_workspace
node_agency -->|"signs in"| node_roles
node_roles -->|"grants access"| node_workspace
node_workspace -->|"isolates data"| node_rls
node_tracked_links -->|"feeds journey"| node_journey_dashboard
node_client_tools -->|"sends opt-ins"| node_optin_webhook
node_optin_webhook -->|"feeds journey"| node_journey_dashboard
node_agency -->|"uploads and tags"| node_media_library
node_agency -->|"places Hooks"| node_reel_batch
node_media_library -->|"provides clips"| node_reel_batch
node_reel_batch -->|"renders Reels"| node_reel_renderer
node_agency -->|"plans Posts"| node_scheduler
node_scheduler -->|"tracks posting"| node_mark_posted
node_agency -->|"posts manually"| node_platform_apps
node_mark_posted -->|"records publication"| node_platform_apps

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_workspace,node_roles,node_rls,node_client,node_client_tools toneBlue
class node_journey_dashboard,node_tracked_links,node_optin_webhook toneAmber
class node_media_library,node_reel_batch,node_reel_renderer toneMint
class node_scheduler,node_mark_posted,node_dm_automation,node_coaching_actions,node_social_insights,node_post_ideas toneRose
class node_agency,node_platform_apps toneIndigo
```

## Components

### Workspace access

- **Workspace**
- **Roles and sign-in**
- **Row-level access**

### Lead journey

- **Journey Dashboard**
- **Tracked links**
- **Opt-in webhook**

### Media and Reels

- **Media Library**
- **Reel Batch**
- **Reel renderer**

### Social publishing

- **Social Scheduler**
- **Mark Posted**
- **DM automation**
- **Coaching call actions**
- **Social Insights**
- **Post ideas**

### Other components

- **Agency Member**
- **Client Viewer**
- **Client tools**
- **Platform apps**

## Connections

- Agency Member → Workspace: manages (evidence: `README.md`)
- Client Viewer → Workspace: views read-only (evidence: `README.md`)
- Agency Member → Roles and sign-in: signs in (evidence: `README.md`)
- Roles and sign-in → Workspace: grants access (evidence: `README.md`)
- Workspace → Row-level access: isolates data (evidence: `README.md`)
- Tracked links → Journey Dashboard: feeds journey (evidence: `README.md`)
- Client tools → Opt-in webhook: sends opt-ins (evidence: `README.md`)
- Opt-in webhook → Journey Dashboard: feeds journey (evidence: `README.md`)
- Agency Member → Media Library: uploads and tags (evidence: `README.md`)
- Agency Member → Reel Batch: places Hooks (evidence: `README.md`)
- Media Library → Reel Batch: provides clips (evidence: `README.md`)
- Reel Batch → Reel renderer: renders Reels (evidence: `README.md`)
- Agency Member → Social Scheduler: plans Posts (evidence: `README.md`)
- Social Scheduler → Mark Posted: tracks posting (evidence: `README.md`)
- Agency Member → Platform apps: posts manually (evidence: `README.md`)
- Mark Posted → Platform apps: records publication (evidence: `README.md`)
