# syslifters/sysreptor architecture

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

- Interactive diagram: https://gitdiagram.com/syslifters/sysreptor
- Repository: https://github.com/syslifters/sysreptor

## Overview

SysReptor is a customizable penetration-test reporting platform. Its documented user workflow is to design a report in HTML, write report content in Markdown, and render the report as a PDF. The repository also includes project and template management, collaborative notes, AI assistance, authentication, and plugin support. The graph uses paths from the supplied tree; README-based workflow links are documented, while unsampled runtime wiring is omitted rather than inferred.

Main entry points: [`packages/frontend/src/pages`](https://github.com/syslifters/sysreptor/tree/main/packages/frontend/src/pages) (Web application), [`packages/markdown/editor`](https://github.com/syslifters/sysreptor/tree/main/packages/markdown/editor) (Markdown authoring), [`packages/rendering/src/main.ts`](https://github.com/syslifters/sysreptor/blob/main/packages/rendering/src/main.ts) (Report rendering), [`packages/excalidraw/src/App.tsx`](https://github.com/syslifters/sysreptor/blob/main/packages/excalidraw/src/App.tsx) (Note drawing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User experience"]
  node_frontend["Web application"]
end

subgraph group_reporting["Report authoring"]
  node_project["Pentest projects<br/>[project.py]"]
  node_design["Report design"]
  node_templates["Report templates<br/>[template.py]"]
  node_markdown["Markdown authoring"]
  node_report_renderer["Report rendering<br/>[main.ts]"]
  node_pdf["PDF rendering"]
end

subgraph group_collaboration["Collaboration"]
  node_notes["Project notes<br/>[notes.py]"]
  node_drawing["Note drawing<br/>[App.tsx]"]
  node_collab_adapter["Drawing collaboration<br/>[Collab.ts]"]
  node_ai["AI assistance"]
end

subgraph group_platform["Platform services"]
  node_users[("User accounts<br/>[models.py]")]
  node_configuration[("Configuration<br/>[configuration.py]")]
  node_tasks[("Background tasks<br/>[querysets.py]")]
  node_encrypted_storage["Encrypted file storage<br/>[storage.py]"]
end

subgraph group_extensions["Extensions"]
  node_plugins["Plugin system<br/>[__init__.py]"]
  node_webhooks["Webhook integration<br/>[apps.py]"]
end

node_tester(("Security professional"))

node_tester -->|"uses"| node_frontend
node_frontend -->|"designs"| node_design
node_frontend -->|"authors in"| node_markdown
node_markdown -->|"renders"| node_report_renderer
node_report_renderer -->|"produces PDF"| node_pdf
node_drawing -->|"connects through"| node_collab_adapter

click node_frontend "https://github.com/syslifters/sysreptor/tree/main/packages/frontend/src/pages"
click node_project "https://github.com/syslifters/sysreptor/blob/main/api/src/sysreptor/pentests/models/project.py"
click node_design "https://github.com/syslifters/sysreptor/tree/main/packages/frontend/src/pages/designs"
click node_templates "https://github.com/syslifters/sysreptor/blob/main/api/src/sysreptor/pentests/models/template.py"
click node_markdown "https://github.com/syslifters/sysreptor/tree/main/packages/markdown/editor"
click node_report_renderer "https://github.com/syslifters/sysreptor/blob/main/packages/rendering/src/main.ts"
click node_pdf "https://github.com/syslifters/sysreptor/tree/main/api/src/sysreptor/pentests/rendering"
click node_notes "https://github.com/syslifters/sysreptor/blob/main/api/src/sysreptor/pentests/models/notes.py"
click node_drawing "https://github.com/syslifters/sysreptor/blob/main/packages/excalidraw/src/App.tsx"
click node_collab_adapter "https://github.com/syslifters/sysreptor/blob/main/packages/excalidraw/src/Collab.ts"
click node_ai "https://github.com/syslifters/sysreptor/tree/main/api/src/sysreptor/ai/agents"
click node_users "https://github.com/syslifters/sysreptor/blob/main/api/src/sysreptor/users/models.py"
click node_configuration "https://github.com/syslifters/sysreptor/blob/main/api/src/sysreptor/utils/configuration.py"
click node_tasks "https://github.com/syslifters/sysreptor/blob/main/api/src/sysreptor/tasks/querysets.py"
click node_encrypted_storage "https://github.com/syslifters/sysreptor/blob/main/api/src/sysreptor/utils/crypto/storage.py"
click node_plugins "https://github.com/syslifters/sysreptor/blob/main/api/src/sysreptor/plugins/__init__.py"
click node_webhooks "https://github.com/syslifters/sysreptor/blob/main/plugins/webhooks/apps.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_frontend toneBlue
class node_project,node_design,node_templates,node_markdown,node_report_renderer,node_pdf toneAmber
class node_notes,node_drawing,node_collab_adapter,node_ai toneMint
class node_users,node_configuration,node_tasks,node_encrypted_storage toneRose
class node_plugins,node_webhooks,node_tester toneIndigo
```

## Components

### User experience

- [Web application](https://github.com/syslifters/sysreptor/tree/main/packages/frontend/src/pages): `packages/frontend/src/pages`

### Report authoring

- [Pentest projects](https://github.com/syslifters/sysreptor/blob/main/api/src/sysreptor/pentests/models/project.py): `api/src/sysreptor/pentests/models/project.py`
- [Report design](https://github.com/syslifters/sysreptor/tree/main/packages/frontend/src/pages/designs): `packages/frontend/src/pages/designs`
- [Report templates](https://github.com/syslifters/sysreptor/blob/main/api/src/sysreptor/pentests/models/template.py): `api/src/sysreptor/pentests/models/template.py`
- [Markdown authoring](https://github.com/syslifters/sysreptor/tree/main/packages/markdown/editor): `packages/markdown/editor`
- [Report rendering](https://github.com/syslifters/sysreptor/blob/main/packages/rendering/src/main.ts): `packages/rendering/src/main.ts`
- [PDF rendering](https://github.com/syslifters/sysreptor/tree/main/api/src/sysreptor/pentests/rendering): `api/src/sysreptor/pentests/rendering`

### Collaboration

- [Project notes](https://github.com/syslifters/sysreptor/blob/main/api/src/sysreptor/pentests/models/notes.py): `api/src/sysreptor/pentests/models/notes.py`
- [Note drawing](https://github.com/syslifters/sysreptor/blob/main/packages/excalidraw/src/App.tsx): `packages/excalidraw/src/App.tsx`
- [Drawing collaboration](https://github.com/syslifters/sysreptor/blob/main/packages/excalidraw/src/Collab.ts): `packages/excalidraw/src/Collab.ts`
- [AI assistance](https://github.com/syslifters/sysreptor/tree/main/api/src/sysreptor/ai/agents): `api/src/sysreptor/ai/agents`

### Platform services

- [User accounts](https://github.com/syslifters/sysreptor/blob/main/api/src/sysreptor/users/models.py): `api/src/sysreptor/users/models.py`
- [Configuration](https://github.com/syslifters/sysreptor/blob/main/api/src/sysreptor/utils/configuration.py): `api/src/sysreptor/utils/configuration.py`
- [Background tasks](https://github.com/syslifters/sysreptor/blob/main/api/src/sysreptor/tasks/querysets.py): `api/src/sysreptor/tasks/querysets.py`
- [Encrypted file storage](https://github.com/syslifters/sysreptor/blob/main/api/src/sysreptor/utils/crypto/storage.py): `api/src/sysreptor/utils/crypto/storage.py`

### Extensions

- [Plugin system](https://github.com/syslifters/sysreptor/blob/main/api/src/sysreptor/plugins/__init__.py): `api/src/sysreptor/plugins/__init__.py`
- [Webhook integration](https://github.com/syslifters/sysreptor/blob/main/plugins/webhooks/apps.py): `plugins/webhooks/apps.py`

### Other components

- **Security professional**

## Connections

- Security professional → Web application: uses
- Web application → Report design: designs
- Web application → Markdown authoring: authors in
- Markdown authoring → Report rendering: renders
- Report rendering → PDF rendering: produces PDF
- Note drawing → Drawing collaboration: connects through (evidence: `packages/excalidraw/src/App.tsx`)
