# timothepoznanski/poznote architecture

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

- Interactive diagram: https://gitdiagram.com/timothepoznanski/poznote
- Repository: https://github.com/timothepoznanski/poznote

## Overview

Poznote is a self-hosted, multi-user note-taking application. A user works with notes through the web interface and REST API; note operations use per-user data and can involve attachments, activity logging, and Git synchronization. The README also documents collaboration and integration capabilities such as workspaces, sharing, reminders, backups, offline use, AI, transcription, an MCP server, and a browser extension. The graph preserves these documented branches, but omits uncertain internal links where source excerpts do not establish the calls.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User experience"]
  node_web["Web application<br/>[index.php]"]
  node_note_ui["Note interface<br/>[notes-manager.js]"]
  node_api["REST API<br/>[index.php]"]
end

subgraph group_core["Notes and collaboration"]
  node_notes["Note operations"]
  node_folders["Folder operations"]
  node_note_loader["Note loading<br/>[note_loader.php]"]
  node_markdown["Markdown processing"]
  node_workspaces["Workspace features<br/>[workspaces.php]"]
  node_activity["Activity logging<br/>[ActivityLog.php]"]
end

subgraph group_platform["Identity and storage"]
  node_auth["Authentication<br/>[auth.php]"]
  node_user_data["User data manager"]
  node_master_db[("Account database<br/>[db_master.php]")]
  node_user_db[("User data store<br/>[db_connect.php]")]
  node_attachment_store["Attachment storage"]
  node_s3_client["S3 client<br/>[S3Client.php]"]
end

subgraph group_integrations["Integrations and automation"]
  node_git_sync["Git synchronization<br/>[GitSync.php]"]
  node_backup["S3 backups"]
  node_reminders["Reminder delivery"]
  node_mailer["SMTP mailer<br/>[SmtpMailer.php]"]
  node_webhooks["Webhook dispatch"]
  node_mcp["MCP server<br/>[server.py]"]
  node_mcp_client["MCP API client<br/>[client.py]"]
  node_browser_extension["URL saver extension<br/>[popup.js]"]
end

node_user(("Poznote user"))
node_external_s3[("S3-compatible storage")]
node_smtp_service["SMTP service"]

node_user -->|"uses"| node_web
node_web -.->|"presents"| node_note_ui
node_note_ui -.->|"requests"| node_api
node_user -.->|"uses"| node_api
node_api -.->|"dispatches"| node_notes
node_notes -->|"loads"| node_note_loader
node_notes -->|"uses"| node_markdown
node_notes -->|"invokes"| node_git_sync
node_notes -->|"logs"| node_activity
node_api -.->|"dispatches"| node_folders
node_folders -->|"loads"| node_note_loader
node_auth -->|"uses"| node_master_db
node_auth -->|"uses"| node_user_data
node_user_data -->|"uses"| node_attachment_store
node_attachment_store -->|"creates"| node_s3_client
node_s3_client -.->|"accesses"| node_external_s3
node_user_data -.->|"manages"| node_user_db
node_git_sync -->|"uses"| node_attachment_store
node_backup -->|"uploads"| node_s3_client
node_backup -->|"logs"| node_activity
node_reminders -->|"sends"| node_mailer
node_mailer -.->|"delivers"| node_smtp_service
node_mcp -->|"uses"| node_mcp_client
node_browser_extension -.->|"saves URLs"| node_api

click node_web "https://github.com/timothepoznanski/poznote/blob/main/src/public/index.php"
click node_note_ui "https://github.com/timothepoznanski/poznote/blob/main/src/public/js/notes-manager.js"
click node_api "https://github.com/timothepoznanski/poznote/blob/main/src/public/api/v1/index.php"
click node_notes "https://github.com/timothepoznanski/poznote/blob/main/src/api/v1/controllers/NotesController.php"
click node_folders "https://github.com/timothepoznanski/poznote/blob/main/src/api/v1/controllers/FoldersController.php"
click node_note_loader "https://github.com/timothepoznanski/poznote/blob/main/src/note_loader.php"
click node_markdown "https://github.com/timothepoznanski/poznote/blob/main/src/markdown_parser.php"
click node_workspaces "https://github.com/timothepoznanski/poznote/blob/main/src/lib/workspaces.php"
click node_activity "https://github.com/timothepoznanski/poznote/blob/main/src/ActivityLog.php"
click node_auth "https://github.com/timothepoznanski/poznote/blob/main/src/auth.php"
click node_user_data "https://github.com/timothepoznanski/poznote/blob/main/src/users/UserDataManager.php"
click node_master_db "https://github.com/timothepoznanski/poznote/blob/main/src/users/db_master.php"
click node_user_db "https://github.com/timothepoznanski/poznote/blob/main/src/db_connect.php"
click node_attachment_store "https://github.com/timothepoznanski/poznote/blob/main/src/storage/AttachmentStorage.php"
click node_s3_client "https://github.com/timothepoznanski/poznote/blob/main/src/storage/S3Client.php"
click node_git_sync "https://github.com/timothepoznanski/poznote/blob/main/src/GitSync.php"
click node_backup "https://github.com/timothepoznanski/poznote/blob/main/src/S3BackupService.php"
click node_reminders "https://github.com/timothepoznanski/poznote/blob/main/src/ReminderEmailService.php"
click node_mailer "https://github.com/timothepoznanski/poznote/blob/main/src/SmtpMailer.php"
click node_webhooks "https://github.com/timothepoznanski/poznote/blob/main/src/WebhookDispatcher.php"
click node_mcp "https://github.com/timothepoznanski/poznote/blob/main/mcp-server/src/poznote_mcp/server.py"
click node_mcp_client "https://github.com/timothepoznanski/poznote/blob/main/mcp-server/src/poznote_mcp/client.py"
click node_browser_extension "https://github.com/timothepoznanski/poznote/blob/main/poznote-url-saver/popup.js"

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_web,node_note_ui,node_api,node_user toneBlue
class node_notes,node_folders,node_note_loader,node_markdown,node_workspaces,node_activity,node_external_s3 toneAmber
class node_auth,node_user_data,node_master_db,node_user_db,node_attachment_store,node_s3_client toneMint
class node_git_sync,node_backup,node_reminders,node_mailer,node_webhooks,node_mcp,node_mcp_client,node_browser_extension toneRose
class node_smtp_service toneIndigo
```

## Components

### User experience

- [Web application](https://github.com/timothepoznanski/poznote/blob/main/src/public/index.php): `src/public/index.php`
- [Note interface](https://github.com/timothepoznanski/poznote/blob/main/src/public/js/notes-manager.js): `src/public/js/notes-manager.js`
- [REST API](https://github.com/timothepoznanski/poznote/blob/main/src/public/api/v1/index.php): `src/public/api/v1/index.php`

### Notes and collaboration

- [Note operations](https://github.com/timothepoznanski/poznote/blob/main/src/api/v1/controllers/NotesController.php): `src/api/v1/controllers/NotesController.php`
- [Folder operations](https://github.com/timothepoznanski/poznote/blob/main/src/api/v1/controllers/FoldersController.php): `src/api/v1/controllers/FoldersController.php`
- [Note loading](https://github.com/timothepoznanski/poznote/blob/main/src/note_loader.php): `src/note_loader.php`
- [Markdown processing](https://github.com/timothepoznanski/poznote/blob/main/src/markdown_parser.php): `src/markdown_parser.php`
- [Workspace features](https://github.com/timothepoznanski/poznote/blob/main/src/lib/workspaces.php): `src/lib/workspaces.php`
- [Activity logging](https://github.com/timothepoznanski/poznote/blob/main/src/ActivityLog.php): `src/ActivityLog.php`

### Identity and storage

- [Authentication](https://github.com/timothepoznanski/poznote/blob/main/src/auth.php): `src/auth.php`
- [User data manager](https://github.com/timothepoznanski/poznote/blob/main/src/users/UserDataManager.php): `src/users/UserDataManager.php`
- [Account database](https://github.com/timothepoznanski/poznote/blob/main/src/users/db_master.php): `src/users/db_master.php`
- [User data store](https://github.com/timothepoznanski/poznote/blob/main/src/db_connect.php): `src/db_connect.php`
- [Attachment storage](https://github.com/timothepoznanski/poznote/blob/main/src/storage/AttachmentStorage.php): `src/storage/AttachmentStorage.php`
- [S3 client](https://github.com/timothepoznanski/poznote/blob/main/src/storage/S3Client.php): `src/storage/S3Client.php`

### Integrations and automation

- [Git synchronization](https://github.com/timothepoznanski/poznote/blob/main/src/GitSync.php): `src/GitSync.php`
- [S3 backups](https://github.com/timothepoznanski/poznote/blob/main/src/S3BackupService.php): `src/S3BackupService.php`
- [Reminder delivery](https://github.com/timothepoznanski/poznote/blob/main/src/ReminderEmailService.php): `src/ReminderEmailService.php`
- [SMTP mailer](https://github.com/timothepoznanski/poznote/blob/main/src/SmtpMailer.php): `src/SmtpMailer.php`
- [Webhook dispatch](https://github.com/timothepoznanski/poznote/blob/main/src/WebhookDispatcher.php): `src/WebhookDispatcher.php`
- [MCP server](https://github.com/timothepoznanski/poznote/blob/main/mcp-server/src/poznote_mcp/server.py): `mcp-server/src/poznote_mcp/server.py`
- [MCP API client](https://github.com/timothepoznanski/poznote/blob/main/mcp-server/src/poznote_mcp/client.py): `mcp-server/src/poznote_mcp/client.py`
- [URL saver extension](https://github.com/timothepoznanski/poznote/blob/main/poznote-url-saver/popup.js): `poznote-url-saver/popup.js`

### Other components

- **Poznote user**
- **S3-compatible storage**
- **SMTP service**

## Connections

- Poznote user → Web application: uses (evidence: `README.md`)
- Web application → Note interface: presents
- Note interface → REST API: requests
- Poznote user → REST API: uses
- REST API → Note operations: dispatches
- Note operations → Note loading: loads (evidence: `src/api/v1/controllers/NotesController.php`)
- Note operations → Markdown processing: uses (evidence: `src/api/v1/controllers/NotesController.php`)
- Note operations → Git synchronization: invokes (evidence: `src/api/v1/controllers/NotesController.php`)
- Note operations → Activity logging: logs (evidence: `src/api/v1/controllers/NotesController.php`)
- REST API → Folder operations: dispatches
- Folder operations → Note loading: loads (evidence: `src/api/v1/controllers/FoldersController.php`)
- Authentication → Account database: uses (evidence: `src/auth.php`)
- Authentication → User data manager: uses (evidence: `src/auth.php`)
- User data manager → Attachment storage: uses (evidence: `src/storage/AttachmentStorage.php`)
- Attachment storage → S3 client: creates (evidence: `src/storage/AttachmentStorage.php`)
- S3 client → S3-compatible storage: accesses
- User data manager → User data store: manages (evidence: `src/db_connect.php`)
- Git synchronization → Attachment storage: uses (evidence: `src/GitSync.php`)
- S3 backups → S3 client: uploads (evidence: `src/S3BackupService.php`)
- S3 backups → Activity logging: logs (evidence: `src/S3BackupService.php`)
- Reminder delivery → SMTP mailer: sends (evidence: `src/ReminderEmailService.php`)
- SMTP mailer → SMTP service: delivers
- MCP server → MCP API client: uses (evidence: `mcp-server/src/poznote_mcp/server.py`)
- URL saver extension → REST API: saves URLs
