# 2356222374/outline architecture

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

- Interactive diagram: https://gitdiagram.com/2356222374/outline
- Repository: https://github.com/2356222374/outline

## Overview

Outline is a collaborative team knowledge base. Users browse collections and documents, edit content together, and use sharing, comments, search, and integrations to collaborate. The tree and README establish these product areas, while the sampled files give limited implementation-level links: notably app store composition, editor Markdown support, and server startup. Several major areas are represented from the tree and README rather than inspected source, so their internal connections are omitted rather than inferred.

Main entry points: [`server/utils/PluginManager.ts`](https://github.com/2356222374/outline/blob/main/server/utils/PluginManager.ts) (Plugin manager), [`server/main.ts`](https://github.com/2356222374/outline/blob/main/server/main.ts) (HTTP application), [`app/index.tsx`](https://github.com/2356222374/outline/blob/main/app/index.tsx) (Workspace UI), [`app/stores/RootStore.ts`](https://github.com/2356222374/outline/blob/main/app/stores/RootStore.ts) (Client stores)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Knowledge Workspace"]
  node_workspace["Workspace UI<br/>[index.tsx]"]
  node_navigation["Collections and navigation<br/>[Sidebar.tsx]"]
  node_documents["Document models<br/>[Document.ts]"]
  node_clientstores["Client stores<br/>[RootStore.ts]"]
  node_search["Search and commands<br/>[useSearchIndex.ts]"]
  node_sharing["Sharing and access<br/>[SharePopover.tsx]"]
end

subgraph group_editor["Editing and Collaboration"]
  node_editorui["Document editor<br/>[index.tsx]"]
  node_extensions["Editor extensions"]
  node_markdown["Markdown serialization<br/>[serializer.ts]"]
  node_comments["Comments and reactions<br/>[Comments.tsx]"]
  node_realtime["Live collaboration"]
end

subgraph group_server["Application Services"]
  node_api["HTTP application<br/>[main.ts]"]
  node_services["Server services<br/>[index.ts]"]
  node_database[("Database storage")]
  node_servermodels["Server domain models<br/>[SearchQuery.ts]"]
end

subgraph group_integrations["Integrations and Storage"]
  node_files["File storage layer<br/>[BaseStorage.ts]"]
  node_s3["S3 storage<br/>[S3Storage.ts]"]
  node_plugins["Plugin manager<br/>[PluginManager.ts]"]
  node_webhooks["Webhook subscriptions"]
  node_github["GitHub integration"]
  node_gitlab["GitLab integration"]
  node_oidc["OIDC authentication<br/>[oidcRouter.ts]"]
end

node_user(("Team member"))

node_user -->|"uses"| node_workspace
node_workspace -.->|"composes"| node_clientstores
node_clientstores -->|"registers stores"| node_documents
node_user -->|"edits documents"| node_editorui
node_editorui -.->|"uses extensions"| node_extensions
node_extensions -->|"creates serializer"| node_markdown
node_user -->|"browses knowledge"| node_navigation
node_user -->|"shares content"| node_sharing
node_user -->|"collaborates"| node_comments
node_user -->|"edits together"| node_realtime
node_workspace -.->|"offers search"| node_search
node_api -->|"starts services"| node_services
node_api -->|"checks connection"| node_database
node_api -.->|"serves domain data"| node_servermodels
node_files -->|"extends storage"| node_s3
node_plugins -.->|"loads integrations"| node_github
node_plugins -.->|"loads integrations"| node_gitlab
node_plugins -.->|"loads integrations"| node_webhooks
node_plugins -.->|"loads integrations"| node_oidc

click node_workspace "https://github.com/2356222374/outline/blob/main/app/index.tsx"
click node_navigation "https://github.com/2356222374/outline/blob/main/app/components/Sidebar/Sidebar.tsx"
click node_documents "https://github.com/2356222374/outline/blob/main/app/models/Document.ts"
click node_clientstores "https://github.com/2356222374/outline/blob/main/app/stores/RootStore.ts"
click node_search "https://github.com/2356222374/outline/blob/main/app/components/CommandBar/useSearchIndex.ts"
click node_sharing "https://github.com/2356222374/outline/blob/main/app/components/Sharing/Document/SharePopover.tsx"
click node_editorui "https://github.com/2356222374/outline/blob/main/app/editor/index.tsx"
click node_extensions "https://github.com/2356222374/outline/blob/main/shared/editor/lib/ExtensionManager.ts"
click node_markdown "https://github.com/2356222374/outline/blob/main/shared/editor/lib/markdown/serializer.ts"
click node_comments "https://github.com/2356222374/outline/blob/main/app/scenes/Document/components/Comments/Comments.tsx"
click node_realtime "https://github.com/2356222374/outline/blob/main/app/scenes/Document/components/AsyncMultiplayerEditor.ts"
click node_api "https://github.com/2356222374/outline/blob/main/server/main.ts"
click node_services "https://github.com/2356222374/outline/blob/main/server/services/index.ts"
click node_servermodels "https://github.com/2356222374/outline/blob/main/server/models/SearchQuery.ts"
click node_files "https://github.com/2356222374/outline/blob/main/server/storage/files/BaseStorage.ts"
click node_s3 "https://github.com/2356222374/outline/blob/main/server/storage/files/S3Storage.ts"
click node_plugins "https://github.com/2356222374/outline/blob/main/server/utils/PluginManager.ts"
click node_webhooks "https://github.com/2356222374/outline/blob/main/plugins/webhooks/client/hooks/useWebhookSubscriptionMenuActions.ts"
click node_github "https://github.com/2356222374/outline/blob/main/plugins/github/server/tasks/GitHubWebhookTask.ts"
click node_gitlab "https://github.com/2356222374/outline/blob/main/plugins/gitlab/server/tasks/GitLabWebhookTask.ts"
click node_oidc "https://github.com/2356222374/outline/blob/main/plugins/oidc/server/auth/oidcRouter.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_workspace,node_navigation,node_documents,node_clientstores,node_search,node_sharing toneBlue
class node_editorui,node_extensions,node_markdown,node_comments,node_realtime toneAmber
class node_api,node_services,node_database,node_servermodels toneMint
class node_files,node_s3,node_plugins,node_webhooks,node_github,node_gitlab,node_oidc toneRose
class node_user toneIndigo
```

## Components

### Knowledge Workspace

- [Workspace UI](https://github.com/2356222374/outline/blob/main/app/index.tsx): `app/index.tsx`
- [Collections and navigation](https://github.com/2356222374/outline/blob/main/app/components/Sidebar/Sidebar.tsx): `app/components/Sidebar/Sidebar.tsx`
- [Document models](https://github.com/2356222374/outline/blob/main/app/models/Document.ts): `app/models/Document.ts`
- [Client stores](https://github.com/2356222374/outline/blob/main/app/stores/RootStore.ts): `app/stores/RootStore.ts`
- [Search and commands](https://github.com/2356222374/outline/blob/main/app/components/CommandBar/useSearchIndex.ts): `app/components/CommandBar/useSearchIndex.ts`
- [Sharing and access](https://github.com/2356222374/outline/blob/main/app/components/Sharing/Document/SharePopover.tsx): `app/components/Sharing/Document/SharePopover.tsx`

### Editing and Collaboration

- [Document editor](https://github.com/2356222374/outline/blob/main/app/editor/index.tsx): `app/editor/index.tsx`
- [Editor extensions](https://github.com/2356222374/outline/blob/main/shared/editor/lib/ExtensionManager.ts): `shared/editor/lib/ExtensionManager.ts`
- [Markdown serialization](https://github.com/2356222374/outline/blob/main/shared/editor/lib/markdown/serializer.ts): `shared/editor/lib/markdown/serializer.ts`
- [Comments and reactions](https://github.com/2356222374/outline/blob/main/app/scenes/Document/components/Comments/Comments.tsx): `app/scenes/Document/components/Comments/Comments.tsx`
- [Live collaboration](https://github.com/2356222374/outline/blob/main/app/scenes/Document/components/AsyncMultiplayerEditor.ts): `app/scenes/Document/components/AsyncMultiplayerEditor.ts`

### Application Services

- [HTTP application](https://github.com/2356222374/outline/blob/main/server/main.ts): `server/main.ts`
- [Server services](https://github.com/2356222374/outline/blob/main/server/services/index.ts): `server/services/index.ts`
- **Database storage**
- [Server domain models](https://github.com/2356222374/outline/blob/main/server/models/SearchQuery.ts): `server/models/SearchQuery.ts`

### Integrations and Storage

- [File storage layer](https://github.com/2356222374/outline/blob/main/server/storage/files/BaseStorage.ts): `server/storage/files/BaseStorage.ts`
- [S3 storage](https://github.com/2356222374/outline/blob/main/server/storage/files/S3Storage.ts): `server/storage/files/S3Storage.ts`
- [Plugin manager](https://github.com/2356222374/outline/blob/main/server/utils/PluginManager.ts): `server/utils/PluginManager.ts`
- [Webhook subscriptions](https://github.com/2356222374/outline/blob/main/plugins/webhooks/client/hooks/useWebhookSubscriptionMenuActions.ts): `plugins/webhooks/client/hooks/useWebhookSubscriptionMenuActions.ts`
- [GitHub integration](https://github.com/2356222374/outline/blob/main/plugins/github/server/tasks/GitHubWebhookTask.ts): `plugins/github/server/tasks/GitHubWebhookTask.ts`
- [GitLab integration](https://github.com/2356222374/outline/blob/main/plugins/gitlab/server/tasks/GitLabWebhookTask.ts): `plugins/gitlab/server/tasks/GitLabWebhookTask.ts`
- [OIDC authentication](https://github.com/2356222374/outline/blob/main/plugins/oidc/server/auth/oidcRouter.ts): `plugins/oidc/server/auth/oidcRouter.ts`

### Other components

- **Team member**

## Connections

- Team member → Workspace UI: uses (evidence: `README.md`)
- Workspace UI → Client stores: composes
- Client stores → Document models: registers stores (evidence: `app/stores/RootStore.ts`)
- Team member → Document editor: edits documents (evidence: `README.md`)
- Document editor → Editor extensions: uses extensions
- Editor extensions → Markdown serialization: creates serializer (evidence: `shared/editor/lib/ExtensionManager.ts`)
- Team member → Collections and navigation: browses knowledge (evidence: `README.md`)
- Team member → Sharing and access: shares content (evidence: `README.md`)
- Team member → Comments and reactions: collaborates (evidence: `README.md`)
- Team member → Live collaboration: edits together (evidence: `README.md`)
- Workspace UI → Search and commands: offers search
- HTTP application → Server services: starts services (evidence: `server/main.ts`)
- HTTP application → Database storage: checks connection (evidence: `server/main.ts`)
- HTTP application → Server domain models: serves domain data
- File storage layer → S3 storage: extends storage (evidence: `server/storage/files/S3Storage.ts`)
- Plugin manager → GitHub integration: loads integrations
- Plugin manager → GitLab integration: loads integrations
- Plugin manager → Webhook subscriptions: loads integrations
- Plugin manager → OIDC authentication: loads integrations
