# vietlxit-tools/postiz-app architecture

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

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

## Overview

Postiz is a social media management platform for creating, scheduling, automating, and analyzing content across social networks. Its main user workflow is to connect social accounts, prepare posts and media, schedule or publish content, then review analytics. The product also exposes public API and webhook capabilities, team collaboration, billing, and AI-assisted tools. The graph reflects the documented product and the available source excerpts; several links between frontend, backend, and orchestration are dashed because their wiring was not shown in the excerpts.

Main entry points: [`apps/frontend/src/components/new-launch/editor.tsx`](https://github.com/vietlxit-tools/postiz-app/blob/main/apps/frontend/src/components/new-launch/editor.tsx) (Post composer), [`apps/backend/src/api/api.module.ts`](https://github.com/vietlxit-tools/postiz-app/blob/main/apps/backend/src/api/api.module.ts) (Backend API), [`apps/orchestrator/src/workflows/post-workflows/post.workflow.v1.1.2.ts`](https://github.com/vietlxit-tools/postiz-app/blob/main/apps/orchestrator/src/workflows/post-workflows/post.workflow.v1.1.2.ts) (Post workflow), [`apps/backend/src/public-api/routes/v1/public.integrations.controller.ts`](https://github.com/vietlxit-tools/postiz-app/blob/main/apps/backend/src/public-api/routes/v1/public.integrations.controller.ts) (Public API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User experience"]
  node_webapp["Web application<br/>[layout.tsx]"]
  node_postcomposer["Post composer<br/>[editor.tsx]"]
  node_socialpreviews["Social previews"]
  node_analyticsui["Analytics views"]
  node_billingui["Billing UI"]
end

subgraph group_backend["Backend services"]
  node_api["Backend API<br/>[api.module.ts]"]
  node_auth["Authentication<br/>[auth.service.ts]"]
  node_integrationsapi["Social account API"]
  node_publicapi["Public API"]
  node_integrationmanager["Integration manager"]
  node_postdata["Post data service<br/>[posts.service.ts]"]
end

subgraph group_publishing["Publishing and automation"]
  node_postworkflow["Post workflow"]
  node_postactivity["Post activity<br/>[post.activity.ts]"]
  node_clipping["Content clipping"]
  node_commands["Command tasks<br/>[configuration.ts]"]
end

subgraph group_platform["Platform capabilities"]
  node_media["Media storage"]
  node_team["Team collaboration"]
  node_agents["AI agents"]
end

node_user(("Social team"))
node_socialnetworks{{"Social networks"}}
node_temporal["Temporal"]
node_database[("PostgreSQL")]
node_paymentservice{{"Payment provider"}}

node_user -.->|"uses"| node_webapp
node_webapp -.->|"opens"| node_postcomposer
node_postcomposer -.->|"previews"| node_socialpreviews
node_postcomposer -.->|"submits posts"| node_api
node_api -.->|"stores posts"| node_postdata
node_postdata -.->|"reads and writes"| node_database
node_api -.->|"schedules posts"| node_postworkflow
node_postworkflow -.->|"runs workflow"| node_temporal
node_postworkflow -.->|"dispatches activity"| node_postactivity
node_postactivity -.->|"publishes content"| node_socialnetworks
node_user -.->|"connects accounts"| node_integrationsapi
node_integrationsapi -->|"uses providers"| node_integrationmanager
node_integrationmanager -.->|"connects accounts"| node_socialnetworks
node_user -.->|"authenticates"| node_auth
node_user -.->|"reviews results"| node_analyticsui
node_analyticsui -.->|"requests analytics"| node_api
node_publicapi -->|"reads posts"| node_postdata
node_publicapi -.->|"uses integrations"| node_integrationmanager
node_user -.->|"automates via API"| node_publicapi
node_user -.->|"collaborates"| node_team
node_user -.->|"uses AI tools"| node_agents
node_postcomposer -.->|"uploads media"| node_media
node_user -.->|"manages billing"| node_billingui
node_billingui -.->|"starts subscription"| node_paymentservice
node_commands -.->|"runs tasks"| node_temporal
node_clipping -.->|"runs workflow"| node_temporal

click node_webapp "https://github.com/vietlxit-tools/postiz-app/blob/main/apps/frontend/src/app/(app)/(site)/layout.tsx"
click node_postcomposer "https://github.com/vietlxit-tools/postiz-app/blob/main/apps/frontend/src/components/new-launch/editor.tsx"
click node_socialpreviews "https://github.com/vietlxit-tools/postiz-app/blob/main/apps/frontend/src/components/new-launch/providers/linkedin/linkedin.preview.tsx"
click node_analyticsui "https://github.com/vietlxit-tools/postiz-app/blob/main/apps/frontend/src/components/analytics/analytics.component.tsx"
click node_billingui "https://github.com/vietlxit-tools/postiz-app/blob/main/apps/frontend/src/components/billing/main.billing.component.tsx"
click node_api "https://github.com/vietlxit-tools/postiz-app/blob/main/apps/backend/src/api/api.module.ts"
click node_auth "https://github.com/vietlxit-tools/postiz-app/blob/main/apps/backend/src/services/auth/auth.service.ts"
click node_integrationsapi "https://github.com/vietlxit-tools/postiz-app/blob/main/apps/backend/src/api/routes/integrations.controller.ts"
click node_publicapi "https://github.com/vietlxit-tools/postiz-app/blob/main/apps/backend/src/public-api/routes/v1/public.integrations.controller.ts"
click node_integrationmanager "https://github.com/vietlxit-tools/postiz-app/blob/main/libraries/nestjs-libraries/src/integrations/integration.manager.ts"
click node_postdata "https://github.com/vietlxit-tools/postiz-app/blob/main/libraries/nestjs-libraries/src/database/prisma/posts/posts.service.ts"
click node_postworkflow "https://github.com/vietlxit-tools/postiz-app/blob/main/apps/orchestrator/src/workflows/post-workflows/post.workflow.v1.1.2.ts"
click node_postactivity "https://github.com/vietlxit-tools/postiz-app/blob/main/apps/orchestrator/src/activities/post.activity.ts"
click node_clipping "https://github.com/vietlxit-tools/postiz-app/blob/main/apps/orchestrator/src/workflows/clipping.workflow.ts"
click node_commands "https://github.com/vietlxit-tools/postiz-app/blob/main/apps/commands/src/tasks/configuration.ts"
click node_media "https://github.com/vietlxit-tools/postiz-app/blob/main/libraries/nestjs-libraries/src/upload/cloudflare.storage.ts"
click node_team "https://github.com/vietlxit-tools/postiz-app/blob/main/apps/frontend/src/components/launches/comments/comment.component.tsx"
click node_agents "https://github.com/vietlxit-tools/postiz-app/blob/main/libraries/nestjs-libraries/src/agent/agent.graph.service.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_webapp,node_postcomposer,node_socialpreviews,node_analyticsui,node_billingui toneBlue
class node_api,node_auth,node_integrationsapi,node_publicapi,node_integrationmanager,node_postdata,node_database toneAmber
class node_postworkflow,node_postactivity,node_clipping,node_commands toneMint
class node_media,node_team,node_agents toneRose
class node_user,node_socialnetworks,node_temporal,node_paymentservice toneIndigo
```

## Components

### User experience

- [Web application](https://github.com/vietlxit-tools/postiz-app/blob/main/apps/frontend/src/app/(app)/(site)/layout.tsx): `apps/frontend/src/app/(app)/(site)/layout.tsx`
- [Post composer](https://github.com/vietlxit-tools/postiz-app/blob/main/apps/frontend/src/components/new-launch/editor.tsx): `apps/frontend/src/components/new-launch/editor.tsx`
- [Social previews](https://github.com/vietlxit-tools/postiz-app/blob/main/apps/frontend/src/components/new-launch/providers/linkedin/linkedin.preview.tsx): `apps/frontend/src/components/new-launch/providers/linkedin/linkedin.preview.tsx`
- [Analytics views](https://github.com/vietlxit-tools/postiz-app/blob/main/apps/frontend/src/components/analytics/analytics.component.tsx): `apps/frontend/src/components/analytics/analytics.component.tsx`
- [Billing UI](https://github.com/vietlxit-tools/postiz-app/blob/main/apps/frontend/src/components/billing/main.billing.component.tsx): `apps/frontend/src/components/billing/main.billing.component.tsx`

### Backend services

- [Backend API](https://github.com/vietlxit-tools/postiz-app/blob/main/apps/backend/src/api/api.module.ts): `apps/backend/src/api/api.module.ts`
- [Authentication](https://github.com/vietlxit-tools/postiz-app/blob/main/apps/backend/src/services/auth/auth.service.ts): `apps/backend/src/services/auth/auth.service.ts`
- [Social account API](https://github.com/vietlxit-tools/postiz-app/blob/main/apps/backend/src/api/routes/integrations.controller.ts): `apps/backend/src/api/routes/integrations.controller.ts`
- [Public API](https://github.com/vietlxit-tools/postiz-app/blob/main/apps/backend/src/public-api/routes/v1/public.integrations.controller.ts): `apps/backend/src/public-api/routes/v1/public.integrations.controller.ts`
- [Integration manager](https://github.com/vietlxit-tools/postiz-app/blob/main/libraries/nestjs-libraries/src/integrations/integration.manager.ts): `libraries/nestjs-libraries/src/integrations/integration.manager.ts`
- [Post data service](https://github.com/vietlxit-tools/postiz-app/blob/main/libraries/nestjs-libraries/src/database/prisma/posts/posts.service.ts): `libraries/nestjs-libraries/src/database/prisma/posts/posts.service.ts`

### Publishing and automation

- [Post workflow](https://github.com/vietlxit-tools/postiz-app/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`
- [Post activity](https://github.com/vietlxit-tools/postiz-app/blob/main/apps/orchestrator/src/activities/post.activity.ts): `apps/orchestrator/src/activities/post.activity.ts`
- [Content clipping](https://github.com/vietlxit-tools/postiz-app/blob/main/apps/orchestrator/src/workflows/clipping.workflow.ts): `apps/orchestrator/src/workflows/clipping.workflow.ts`
- [Command tasks](https://github.com/vietlxit-tools/postiz-app/blob/main/apps/commands/src/tasks/configuration.ts): `apps/commands/src/tasks/configuration.ts`

### Platform capabilities

- [Media storage](https://github.com/vietlxit-tools/postiz-app/blob/main/libraries/nestjs-libraries/src/upload/cloudflare.storage.ts): `libraries/nestjs-libraries/src/upload/cloudflare.storage.ts`
- [Team collaboration](https://github.com/vietlxit-tools/postiz-app/blob/main/apps/frontend/src/components/launches/comments/comment.component.tsx): `apps/frontend/src/components/launches/comments/comment.component.tsx`
- [AI agents](https://github.com/vietlxit-tools/postiz-app/blob/main/libraries/nestjs-libraries/src/agent/agent.graph.service.ts): `libraries/nestjs-libraries/src/agent/agent.graph.service.ts`

### Other components

- **Social team**
- **Social networks**
- **Temporal**
- **PostgreSQL**
- **Payment provider**

## Connections

- Social team → Web application: uses
- Web application → Post composer: opens
- Post composer → Social previews: previews
- Post composer → Backend API: submits posts
- Backend API → Post data service: stores posts
- Post data service → PostgreSQL: reads and writes
- Backend API → Post workflow: schedules posts
- Post workflow → Temporal: runs workflow
- Post workflow → Post activity: dispatches activity
- Post activity → Social networks: publishes content
- Social team → Social account API: connects accounts
- Social account API → Integration manager: uses providers (evidence: `apps/backend/src/api/routes/integrations.controller.ts`)
- Integration manager → Social networks: connects accounts
- Social team → Authentication: authenticates
- Social team → Analytics views: reviews results
- Analytics views → Backend API: requests analytics
- Public API → Post data service: reads posts (evidence: `apps/backend/src/public-api/routes/v1/public.integrations.controller.ts`)
- Public API → Integration manager: uses integrations
- Social team → Public API: automates via API
- Social team → Team collaboration: collaborates
- Social team → AI agents: uses AI tools
- Post composer → Media storage: uploads media
- Social team → Billing UI: manages billing
- Billing UI → Payment provider: starts subscription
- Command tasks → Temporal: runs tasks
- Content clipping → Temporal: runs workflow
