# xencypro/xencynote architecture

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

- Interactive diagram: https://gitdiagram.com/xencypro/xencynote
- Repository: https://github.com/xencypro/xencynote

## Overview

XencyNote is a browser-based personal workspace. A user works in the React app, which loads workspace data through the storage layer; the app brings together notes, code, tasks, design resources, links, tables, and workspace controls. The README documents capabilities beyond the sampled excerpts, so those are represented as app responsibilities rather than inferred internal modules. Storage code shows IndexedDB with localStorage fallback and recovery. The source is a single large App component, so feature nodes share its path.

Main entry points: [`src/App.jsx`](https://github.com/xencypro/xencynote/blob/main/src/App.jsx) (XencyNote app), [`src/lib/storage.js`](https://github.com/xencypro/xencynote/blob/main/src/lib/storage.js) (Workspace storage layer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspace["Workspace experience"]
  node_app["XencyNote app<br/>[App.jsx]"]
  node_section_controls["Section controls<br/>[App.jsx]"]
  node_settings["Workspace settings<br/>[App.jsx]"]
  node_search_export["Search and export<br/>[App.jsx]"]
end

subgraph group_content["Workspace content"]
  node_quick_notes["Quick notes<br/>[App.jsx]"]
  node_code_snippets["Code snippets<br/>[App.jsx]"]
  node_tasks["Tasks and checklists<br/>[App.jsx]"]
  node_tables["Workspace tables<br/>[App.jsx]"]
end

subgraph group_resources["Reference libraries"]
  node_color_library["Color library<br/>[App.jsx]"]
  node_font_library["Font library<br/>[App.jsx]"]
  node_image_collections["Image collections<br/>[App.jsx]"]
  node_links["Links and bookmarks<br/>[App.jsx]"]
end

subgraph group_persistence["Local persistence"]
  node_storage["Workspace storage layer<br/>[storage.js]"]
  node_indexeddb[("IndexedDB workspace store<br/>[storage.js]")]
  node_localstorage[("localStorage fallback<br/>[storage.js]")]
end

node_user(("Workspace user"))

node_user -->|"uses"| node_app
node_app -->|"offers"| node_section_controls
node_app -->|"offers"| node_settings
node_app -->|"offers"| node_search_export
node_app -->|"includes"| node_quick_notes
node_app -->|"includes"| node_code_snippets
node_app -->|"includes"| node_tasks
node_app -->|"includes"| node_tables
node_app -->|"includes"| node_color_library
node_app -->|"includes"| node_font_library
node_app -->|"includes"| node_image_collections
node_app -->|"includes"| node_links
node_app -->|"loads workspace"| node_storage
node_storage -->|"reads and writes"| node_indexeddb
node_storage -->|"falls back to"| node_localstorage

click node_app "https://github.com/xencypro/xencynote/blob/main/src/App.jsx"
click node_section_controls "https://github.com/xencypro/xencynote/blob/main/src/App.jsx"
click node_settings "https://github.com/xencypro/xencynote/blob/main/src/App.jsx"
click node_search_export "https://github.com/xencypro/xencynote/blob/main/src/App.jsx"
click node_quick_notes "https://github.com/xencypro/xencynote/blob/main/src/App.jsx"
click node_code_snippets "https://github.com/xencypro/xencynote/blob/main/src/App.jsx"
click node_tasks "https://github.com/xencypro/xencynote/blob/main/src/App.jsx"
click node_tables "https://github.com/xencypro/xencynote/blob/main/src/App.jsx"
click node_color_library "https://github.com/xencypro/xencynote/blob/main/src/App.jsx"
click node_font_library "https://github.com/xencypro/xencynote/blob/main/src/App.jsx"
click node_image_collections "https://github.com/xencypro/xencynote/blob/main/src/App.jsx"
click node_links "https://github.com/xencypro/xencynote/blob/main/src/App.jsx"
click node_storage "https://github.com/xencypro/xencynote/blob/main/src/lib/storage.js"
click node_indexeddb "https://github.com/xencypro/xencynote/blob/main/src/lib/storage.js"
click node_localstorage "https://github.com/xencypro/xencynote/blob/main/src/lib/storage.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_app,node_section_controls,node_settings,node_search_export,node_user toneBlue
class node_quick_notes,node_code_snippets,node_tasks,node_tables toneAmber
class node_color_library,node_font_library,node_image_collections,node_links toneMint
class node_storage,node_indexeddb,node_localstorage toneRose
```

## Components

### Workspace experience

- [XencyNote app](https://github.com/xencypro/xencynote/blob/main/src/App.jsx): `src/App.jsx`
- [Section controls](https://github.com/xencypro/xencynote/blob/main/src/App.jsx): `src/App.jsx`
- [Workspace settings](https://github.com/xencypro/xencynote/blob/main/src/App.jsx): `src/App.jsx`
- [Search and export](https://github.com/xencypro/xencynote/blob/main/src/App.jsx): `src/App.jsx`

### Workspace content

- [Quick notes](https://github.com/xencypro/xencynote/blob/main/src/App.jsx): `src/App.jsx`
- [Code snippets](https://github.com/xencypro/xencynote/blob/main/src/App.jsx): `src/App.jsx`
- [Tasks and checklists](https://github.com/xencypro/xencynote/blob/main/src/App.jsx): `src/App.jsx`
- [Workspace tables](https://github.com/xencypro/xencynote/blob/main/src/App.jsx): `src/App.jsx`

### Reference libraries

- [Color library](https://github.com/xencypro/xencynote/blob/main/src/App.jsx): `src/App.jsx`
- [Font library](https://github.com/xencypro/xencynote/blob/main/src/App.jsx): `src/App.jsx`
- [Image collections](https://github.com/xencypro/xencynote/blob/main/src/App.jsx): `src/App.jsx`
- [Links and bookmarks](https://github.com/xencypro/xencynote/blob/main/src/App.jsx): `src/App.jsx`

### Local persistence

- [Workspace storage layer](https://github.com/xencypro/xencynote/blob/main/src/lib/storage.js): `src/lib/storage.js`
- [IndexedDB workspace store](https://github.com/xencypro/xencynote/blob/main/src/lib/storage.js): `src/lib/storage.js`
- [localStorage fallback](https://github.com/xencypro/xencynote/blob/main/src/lib/storage.js): `src/lib/storage.js`

### Other components

- **Workspace user**

## Connections

- Workspace user → XencyNote app: uses (evidence: `README.md`)
- XencyNote app → Section controls: offers (evidence: `README.md`)
- XencyNote app → Workspace settings: offers (evidence: `README.md`)
- XencyNote app → Search and export: offers (evidence: `README.md`)
- XencyNote app → Quick notes: includes (evidence: `README.md`)
- XencyNote app → Code snippets: includes (evidence: `README.md`)
- XencyNote app → Tasks and checklists: includes (evidence: `README.md`)
- XencyNote app → Workspace tables: includes (evidence: `README.md`)
- XencyNote app → Color library: includes (evidence: `README.md`)
- XencyNote app → Font library: includes (evidence: `README.md`)
- XencyNote app → Image collections: includes (evidence: `README.md`)
- XencyNote app → Links and bookmarks: includes (evidence: `README.md`)
- XencyNote app → Workspace storage layer: loads workspace (evidence: `src/App.jsx`)
- Workspace storage layer → IndexedDB workspace store: reads and writes (evidence: `src/lib/storage.js`)
- Workspace storage layer → localStorage fallback: falls back to (evidence: `src/lib/storage.js`)
