# socapi-app/postiz architecture

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

- Interactive diagram: https://gitdiagram.com/socapi-app/postiz
- Repository: https://github.com/socapi-app/postiz

## Overview

Postiz is a social-media management platform for creating and scheduling posts, connecting social accounts, and reviewing analytics. The principal workflow runs from the web app or API through backend post and integration services to scheduled orchestration and social networks. Separate product branches cover account authentication, billing, media, clipping, AI-assisted work, and automation interfaces. The graph includes major README capabilities and source-indexed modules; several unsampled modules are represented by their exact tree paths, so their internal relationships are not inferred.

Main entry points: [`apps/frontend/src/components/launches/launches.component.tsx`](https://github.com/socapi-app/postiz/blob/main/apps/frontend/src/components/launches/launches.component.tsx) (Web app), [`apps/backend/src/public-api/routes/v1/public.integrations.controller.ts`](https://github.com/socapi-app/postiz/blob/main/apps/backend/src/public-api/routes/v1/public.integrations.controller.ts) (Public API), [`libraries/nestjs-libraries/src/upload/upload.interface.ts`](https://github.com/socapi-app/postiz/blob/main/libraries/nestjs-libraries/src/upload/upload.interface.ts) (Upload contract), [`apps/orchestrator/src/app.module.ts`](https://github.com/socapi-app/postiz/blob/main/apps/orchestrator/src/app.module.ts) (Temporal orchestration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Product experience"]
  node_frontend["Web app"]
  node_analytics_ui["Analytics UI"]
  node_billing_ui["Billing UI"]
  node_extension["Browser extension<br/>[background.ts]"]
end

subgraph group_api["Backend API"]
  node_backend["Backend application<br/>[app.module.ts]"]
  node_auth["Authentication<br/>[auth.service.ts]"]
  node_integration_api["Integration routes"]
  node_users_api["User routes"]
  node_public_api["Public API"]
end

subgraph group_domain["Domain services"]
  node_posts["Post services<br/>[posts.service.ts]"]
  node_oauth["OAuth services<br/>[oauth.service.ts]"]
  node_billing["Payments<br/>[stripe.service.ts]"]
  node_agent["AI agent graph"]
  node_clipping["Clipping workflows"]
end

subgraph group_execution["Scheduling and automation"]
  node_orchestrator["Temporal orchestration<br/>[app.module.ts]"]
  node_post_workflow["Post workflows"]
  node_commands["Command tasks<br/>[configuration.ts]"]
  node_sdk["Node SDK<br/>[index.ts]"]
end

subgraph group_connectors["Social and storage"]
  node_integration_manager["Integration manager"]
  node_upload_factory["Upload provider factory<br/>[upload.factory.ts]"]
  node_upload_contract["Upload contract"]
  node_local_storage["Local storage<br/>[local.storage.ts]"]
  node_cloud_storage["Cloud storage"]
end

node_user(("User"))
node_social_networks(("Social networks"))
node_storage[("File storage")]

node_user -->|"creates and schedules"| node_frontend
node_frontend -.->|"connects accounts"| node_integration_api
node_frontend -.->|"manages posts"| node_posts
node_frontend -->|"reviews results"| node_analytics_ui
node_frontend -->|"manages subscription"| node_billing_ui
node_billing_ui -->|"requests billing"| node_billing
node_backend -->|"provides auth"| node_auth
node_integration_api -->|"resolves providers"| node_integration_manager
node_public_api -->|"queries posts"| node_posts
node_public_api -.->|"connects providers"| node_integration_manager
node_backend -.->|"exposes API"| node_public_api
node_orchestrator -->|"loads workflows"| node_post_workflow
node_orchestrator -->|"loads workflows"| node_clipping
node_post_workflow -->|"publishes posts"| node_social_networks
node_integration_manager -->|"connects accounts"| node_social_networks
node_commands -.->|"supports automation"| node_orchestrator
node_sdk -->|"automates via API"| node_public_api
node_extension -.->|"supports posting"| node_frontend
node_upload_factory -->|"selects provider"| node_upload_contract
node_upload_contract -->|"implemented by"| node_local_storage
node_upload_contract -->|"implemented by"| node_cloud_storage
node_local_storage -->|"writes files"| node_storage
node_cloud_storage -->|"uploads objects"| node_storage
node_user -->|"automates publishing"| node_public_api
node_agent -.->|"assists content work"| node_frontend

click node_frontend "https://github.com/socapi-app/postiz/blob/main/apps/frontend/src/components/launches/launches.component.tsx"
click node_analytics_ui "https://github.com/socapi-app/postiz/blob/main/apps/frontend/src/components/analytics/analytics.component.tsx"
click node_billing_ui "https://github.com/socapi-app/postiz/blob/main/apps/frontend/src/components/billing/main.billing.component.tsx"
click node_extension "https://github.com/socapi-app/postiz/blob/main/apps/extension/src/background.ts"
click node_backend "https://github.com/socapi-app/postiz/blob/main/apps/backend/src/app.module.ts"
click node_auth "https://github.com/socapi-app/postiz/blob/main/apps/backend/src/services/auth/auth.service.ts"
click node_integration_api "https://github.com/socapi-app/postiz/blob/main/apps/backend/src/api/routes/integrations.controller.ts"
click node_users_api "https://github.com/socapi-app/postiz/blob/main/apps/backend/src/api/routes/users.controller.ts"
click node_public_api "https://github.com/socapi-app/postiz/blob/main/apps/backend/src/public-api/routes/v1/public.integrations.controller.ts"
click node_posts "https://github.com/socapi-app/postiz/blob/main/libraries/nestjs-libraries/src/database/prisma/posts/posts.service.ts"
click node_oauth "https://github.com/socapi-app/postiz/blob/main/libraries/nestjs-libraries/src/database/prisma/oauth/oauth.service.ts"
click node_billing "https://github.com/socapi-app/postiz/blob/main/libraries/nestjs-libraries/src/services/stripe.service.ts"
click node_agent "https://github.com/socapi-app/postiz/blob/main/libraries/nestjs-libraries/src/agent/agent.graph.service.ts"
click node_clipping "https://github.com/socapi-app/postiz/blob/main/apps/orchestrator/src/workflows/clipping.workflow.ts"
click node_orchestrator "https://github.com/socapi-app/postiz/blob/main/apps/orchestrator/src/app.module.ts"
click node_post_workflow "https://github.com/socapi-app/postiz/blob/main/apps/orchestrator/src/workflows/post-workflows/post.workflow.v1.1.2.ts"
click node_commands "https://github.com/socapi-app/postiz/blob/main/apps/commands/src/tasks/configuration.ts"
click node_sdk "https://github.com/socapi-app/postiz/blob/main/apps/sdk/src/index.ts"
click node_integration_manager "https://github.com/socapi-app/postiz/blob/main/libraries/nestjs-libraries/src/integrations/integration.manager.ts"
click node_upload_factory "https://github.com/socapi-app/postiz/blob/main/libraries/nestjs-libraries/src/upload/upload.factory.ts"
click node_upload_contract "https://github.com/socapi-app/postiz/blob/main/libraries/nestjs-libraries/src/upload/upload.interface.ts"
click node_local_storage "https://github.com/socapi-app/postiz/blob/main/libraries/nestjs-libraries/src/upload/local.storage.ts"
click node_cloud_storage "https://github.com/socapi-app/postiz/blob/main/libraries/nestjs-libraries/src/upload/cloudflare.storage.ts"

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_frontend,node_analytics_ui,node_billing_ui,node_extension,node_user toneBlue
class node_backend,node_auth,node_integration_api,node_users_api,node_public_api,node_storage toneAmber
class node_posts,node_oauth,node_billing,node_agent,node_clipping toneMint
class node_orchestrator,node_post_workflow,node_commands,node_sdk toneRose
class node_integration_manager,node_upload_factory,node_upload_contract,node_local_storage,node_cloud_storage,node_social_networks toneIndigo
```

## Components

### Product experience

- [Web app](https://github.com/socapi-app/postiz/blob/main/apps/frontend/src/components/launches/launches.component.tsx): `apps/frontend/src/components/launches/launches.component.tsx`
- [Analytics UI](https://github.com/socapi-app/postiz/blob/main/apps/frontend/src/components/analytics/analytics.component.tsx): `apps/frontend/src/components/analytics/analytics.component.tsx`
- [Billing UI](https://github.com/socapi-app/postiz/blob/main/apps/frontend/src/components/billing/main.billing.component.tsx): `apps/frontend/src/components/billing/main.billing.component.tsx`
- [Browser extension](https://github.com/socapi-app/postiz/blob/main/apps/extension/src/background.ts): `apps/extension/src/background.ts`

### Backend API

- [Backend application](https://github.com/socapi-app/postiz/blob/main/apps/backend/src/app.module.ts): `apps/backend/src/app.module.ts`
- [Authentication](https://github.com/socapi-app/postiz/blob/main/apps/backend/src/services/auth/auth.service.ts): `apps/backend/src/services/auth/auth.service.ts`
- [Integration routes](https://github.com/socapi-app/postiz/blob/main/apps/backend/src/api/routes/integrations.controller.ts): `apps/backend/src/api/routes/integrations.controller.ts`
- [User routes](https://github.com/socapi-app/postiz/blob/main/apps/backend/src/api/routes/users.controller.ts): `apps/backend/src/api/routes/users.controller.ts`
- [Public API](https://github.com/socapi-app/postiz/blob/main/apps/backend/src/public-api/routes/v1/public.integrations.controller.ts): `apps/backend/src/public-api/routes/v1/public.integrations.controller.ts`

### Domain services

- [Post services](https://github.com/socapi-app/postiz/blob/main/libraries/nestjs-libraries/src/database/prisma/posts/posts.service.ts): `libraries/nestjs-libraries/src/database/prisma/posts/posts.service.ts`
- [OAuth services](https://github.com/socapi-app/postiz/blob/main/libraries/nestjs-libraries/src/database/prisma/oauth/oauth.service.ts): `libraries/nestjs-libraries/src/database/prisma/oauth/oauth.service.ts`
- [Payments](https://github.com/socapi-app/postiz/blob/main/libraries/nestjs-libraries/src/services/stripe.service.ts): `libraries/nestjs-libraries/src/services/stripe.service.ts`
- [AI agent graph](https://github.com/socapi-app/postiz/blob/main/libraries/nestjs-libraries/src/agent/agent.graph.service.ts): `libraries/nestjs-libraries/src/agent/agent.graph.service.ts`
- [Clipping workflows](https://github.com/socapi-app/postiz/blob/main/apps/orchestrator/src/workflows/clipping.workflow.ts): `apps/orchestrator/src/workflows/clipping.workflow.ts`

### Scheduling and automation

- [Temporal orchestration](https://github.com/socapi-app/postiz/blob/main/apps/orchestrator/src/app.module.ts): `apps/orchestrator/src/app.module.ts`
- [Post workflows](https://github.com/socapi-app/postiz/blob/main/apps/orchestrator/src/workflows/post-workflows/post.workflow.v1.1.2.ts): `apps/orchestrator/src/workflows/post-workflows/post.workflow.v1.1.2.ts`
- [Command tasks](https://github.com/socapi-app/postiz/blob/main/apps/commands/src/tasks/configuration.ts): `apps/commands/src/tasks/configuration.ts`
- [Node SDK](https://github.com/socapi-app/postiz/blob/main/apps/sdk/src/index.ts): `apps/sdk/src/index.ts`

### Social and storage

- [Integration manager](https://github.com/socapi-app/postiz/blob/main/libraries/nestjs-libraries/src/integrations/integration.manager.ts): `libraries/nestjs-libraries/src/integrations/integration.manager.ts`
- [Upload provider factory](https://github.com/socapi-app/postiz/blob/main/libraries/nestjs-libraries/src/upload/upload.factory.ts): `libraries/nestjs-libraries/src/upload/upload.factory.ts`
- [Upload contract](https://github.com/socapi-app/postiz/blob/main/libraries/nestjs-libraries/src/upload/upload.interface.ts): `libraries/nestjs-libraries/src/upload/upload.interface.ts`
- [Local storage](https://github.com/socapi-app/postiz/blob/main/libraries/nestjs-libraries/src/upload/local.storage.ts): `libraries/nestjs-libraries/src/upload/local.storage.ts`
- [Cloud storage](https://github.com/socapi-app/postiz/blob/main/libraries/nestjs-libraries/src/upload/cloudflare.storage.ts): `libraries/nestjs-libraries/src/upload/cloudflare.storage.ts`

### Other components

- **User**
- **Social networks**
- **File storage**

## Connections

- User → Web app: creates and schedules (evidence: `README.md`)
- Web app → Integration routes: connects accounts
- Web app → Post services: manages posts
- Web app → Analytics UI: reviews results (evidence: `README.md`)
- Web app → Billing UI: manages subscription (evidence: `apps/frontend/src/components/billing/main.billing.component.tsx`)
- Billing UI → Payments: requests billing (evidence: `apps/frontend/src/components/billing/main.billing.component.tsx`)
- Backend application → Authentication: provides auth (evidence: `apps/backend/src/app.module.ts`)
- Integration routes → Integration manager: resolves providers (evidence: `apps/backend/src/api/routes/integrations.controller.ts`)
- Public API → Post services: queries posts (evidence: `apps/backend/src/public-api/routes/v1/public.integrations.controller.ts`)
- Public API → Integration manager: connects providers
- Backend application → Public API: exposes API
- Temporal orchestration → Post workflows: loads workflows (evidence: `apps/orchestrator/src/app.module.ts`)
- Temporal orchestration → Clipping workflows: loads workflows (evidence: `apps/orchestrator/src/app.module.ts`)
- Post workflows → Social networks: publishes posts (evidence: `README.md`)
- Integration manager → Social networks: connects accounts (evidence: `README.md`)
- Command tasks → Temporal orchestration: supports automation
- Node SDK → Public API: automates via API (evidence: `README.md`)
- Browser extension → Web app: supports posting
- Upload provider factory → Upload contract: selects provider (evidence: `libraries/nestjs-libraries/src/upload/multer.stream.engine.ts`)
- Upload contract → Local storage: implemented by (evidence: `libraries/nestjs-libraries/src/upload/local.storage.ts`)
- Upload contract → Cloud storage: implemented by (evidence: `libraries/nestjs-libraries/src/upload/cloudflare.storage.ts`)
- Local storage → File storage: writes files (evidence: `libraries/nestjs-libraries/src/upload/local.storage.ts`)
- Cloud storage → File storage: uploads objects (evidence: `libraries/nestjs-libraries/src/upload/cloudflare.storage.ts`)
- User → Public API: automates publishing (evidence: `README.md`)
- AI agent graph → Web app: assists content work
