# peakk2011/mousse-de-valentin architecture

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

- Interactive diagram: https://gitdiagram.com/peakk2011/mousse-de-valentin
- Repository: https://github.com/peakk2011/mousse-de-valentin

## Overview

Mousse is a note-taking and idea-organizing application, with desktop and web entry points, a rich-text editor, marker-board windows and groups, and real-time collaboration. A typical workflow is to open the editor, work with notes, and organize or share them; marker-board state is persisted locally, while collaboration requests are routed through a session-aware worker. The tree also shows an injection framework and desktop integration. README content was not provided, and several runtime modules were not sampled, so uncertain connections are omitted.

Main entry points: [`workers/collab/router.js`](https://github.com/peakk2011/mousse-de-valentin/blob/main/workers/collab/router.js) (Request router), [`src/api/marker/board/MarkerBoard.js`](https://github.com/peakk2011/mousse-de-valentin/blob/main/src/api/marker/board/MarkerBoard.js) (Marker board), [`src/api/marker/window/WindowManager.js`](https://github.com/peakk2011/mousse-de-valentin/blob/main/src/api/marker/window/WindowManager.js) (Window manager), [`src/api/marker/group/GroupManager.js`](https://github.com/peakk2011/mousse-de-valentin/blob/main/src/api/marker/group/GroupManager.js) (Board groups)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop runtime"]
  node_app_entry["App entry<br/>[main.js]"]
  node_app_init["App initialization"]
  node_electron_windows["Window lifecycle<br/>[lifeCycle.js]"]
  node_ipc["IPC manager<br/>[ipcManager.js]"]
end

subgraph group_editor["Notes and editing"]
  node_renderer["Renderer app<br/>[app.js]"]
  node_editor_page["Editor page<br/>[editorPage.js]"]
  node_note_store[("Note store<br/>[noteStore.js]")]
  node_text_safety["Text safety<br/>[textSafety.js]"]
  node_command_palette["Command palette"]
  node_palette_results["Palette results"]
end

subgraph group_markers["Marker board"]
  node_marker_board["Marker board<br/>[MarkerBoard.js]"]
  node_window_manager["Window manager<br/>[WindowManager.js]"]
  node_window_factory["Window factory<br/>[WindowFactory.js]"]
  node_board_groups["Board groups<br/>[GroupManager.js]"]
  node_board_persistence[("Board persistence<br/>[persistence.js]")]
  node_zoom_pan["Zoom and pan<br/>[zoomPan.js]"]
end

subgraph group_collab["Collaboration service"]
  node_collab_client["Collaboration client<br/>[realtimeCollab.js]"]
  node_collab_router["Request router<br/>[router.js]"]
  node_collab_http["HTTP helpers<br/>[http.js]"]
  node_collab_security["Session security<br/>[security.js]"]
  node_collab_shared["Shared services<br/>[shared.js]"]
  node_room_actions["Room actions<br/>[roomActions.js]"]
  node_websocket_route["WebSocket route<br/>[websocket.js]"]
end

subgraph group_injection["Content injection"]
  node_injection_framework["Injection framework<br/>[units.js]"]
end

node_user(("User"))

node_app_entry -->|"starts"| node_app_init
node_app_init -->|"creates windows"| node_electron_windows
node_user -.->|"uses"| node_renderer
node_window_manager -->|"creates windows"| node_window_factory
node_window_manager -->|"persists board"| node_board_persistence
node_board_groups -->|"persists groups"| node_board_persistence
node_board_groups -->|"truncates labels"| node_text_safety
node_marker_board -.->|"loads and saves"| node_board_persistence
node_marker_board -.->|"manages windows"| node_window_manager
node_marker_board -.->|"manages groups"| node_board_groups
node_marker_board -.->|"supports navigation"| node_zoom_pan
node_command_palette -->|"updates results"| node_palette_results
node_editor_page -.->|"uses notes"| node_note_store
node_collab_router -->|"reads request body"| node_collab_http
node_collab_router -->|"checks identity"| node_collab_security
node_collab_router -->|"uses shared services"| node_collab_shared
node_collab_router -->|"dispatches actions"| node_room_actions
node_collab_router -->|"dispatches upgrades"| node_websocket_route
node_collab_shared -->|"uses security"| node_collab_security
node_collab_client -.->|"sends requests"| node_collab_router

click node_app_entry "https://github.com/peakk2011/mousse-de-valentin/blob/main/src/main.js"
click node_app_init "https://github.com/peakk2011/mousse-de-valentin/blob/main/src/initFascinateNotes.js"
click node_electron_windows "https://github.com/peakk2011/mousse-de-valentin/blob/main/src/core/window/lifeCycle.js"
click node_ipc "https://github.com/peakk2011/mousse-de-valentin/blob/main/src/core/ipcManager.js"
click node_renderer "https://github.com/peakk2011/mousse-de-valentin/blob/main/src/renderer/content/app.js"
click node_editor_page "https://github.com/peakk2011/mousse-de-valentin/blob/main/src/renderer/content/pages/editorPage.js"
click node_note_store "https://github.com/peakk2011/mousse-de-valentin/blob/main/src/renderer/scripts/note/noteStore.js"
click node_text_safety "https://github.com/peakk2011/mousse-de-valentin/blob/main/src/renderer/scripts/editor/textSafety.js"
click node_command_palette "https://github.com/peakk2011/mousse-de-valentin/blob/main/src/renderer/content/contentComponents/commandPalette/controller/CommandPaletteController.js"
click node_palette_results "https://github.com/peakk2011/mousse-de-valentin/blob/main/src/renderer/content/contentComponents/commandPalette/components/CommandPaletteResults.js"
click node_marker_board "https://github.com/peakk2011/mousse-de-valentin/blob/main/src/api/marker/board/MarkerBoard.js"
click node_window_manager "https://github.com/peakk2011/mousse-de-valentin/blob/main/src/api/marker/window/WindowManager.js"
click node_window_factory "https://github.com/peakk2011/mousse-de-valentin/blob/main/src/api/marker/window/WindowFactory.js"
click node_board_groups "https://github.com/peakk2011/mousse-de-valentin/blob/main/src/api/marker/group/GroupManager.js"
click node_board_persistence "https://github.com/peakk2011/mousse-de-valentin/blob/main/src/api/marker/board/persistence.js"
click node_zoom_pan "https://github.com/peakk2011/mousse-de-valentin/blob/main/src/api/marker/controllers/zoomPan.js"
click node_collab_client "https://github.com/peakk2011/mousse-de-valentin/blob/main/src/renderer/scripts/collab/realtimeCollab.js"
click node_collab_router "https://github.com/peakk2011/mousse-de-valentin/blob/main/workers/collab/router.js"
click node_collab_http "https://github.com/peakk2011/mousse-de-valentin/blob/main/workers/collab/http.js"
click node_collab_security "https://github.com/peakk2011/mousse-de-valentin/blob/main/workers/collab/security.js"
click node_collab_shared "https://github.com/peakk2011/mousse-de-valentin/blob/main/workers/collab/shared.js"
click node_room_actions "https://github.com/peakk2011/mousse-de-valentin/blob/main/workers/collab/routes/roomActions.js"
click node_websocket_route "https://github.com/peakk2011/mousse-de-valentin/blob/main/workers/collab/routes/websocket.js"
click node_injection_framework "https://github.com/peakk2011/mousse-de-valentin/blob/main/src/framework/units.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_entry,node_app_init,node_electron_windows,node_ipc,node_user toneBlue
class node_renderer,node_editor_page,node_note_store,node_text_safety,node_command_palette,node_palette_results toneAmber
class node_marker_board,node_window_manager,node_window_factory,node_board_groups,node_board_persistence,node_zoom_pan toneMint
class node_collab_client,node_collab_router,node_collab_http,node_collab_security,node_collab_shared,node_room_actions,node_websocket_route toneRose
class node_injection_framework toneIndigo
```

## Components

### Desktop runtime

- [App entry](https://github.com/peakk2011/mousse-de-valentin/blob/main/src/main.js): `src/main.js`
- [App initialization](https://github.com/peakk2011/mousse-de-valentin/blob/main/src/initFascinateNotes.js): `src/initFascinateNotes.js`
- [Window lifecycle](https://github.com/peakk2011/mousse-de-valentin/blob/main/src/core/window/lifeCycle.js): `src/core/window/lifeCycle.js`
- [IPC manager](https://github.com/peakk2011/mousse-de-valentin/blob/main/src/core/ipcManager.js): `src/core/ipcManager.js`

### Notes and editing

- [Renderer app](https://github.com/peakk2011/mousse-de-valentin/blob/main/src/renderer/content/app.js): `src/renderer/content/app.js`
- [Editor page](https://github.com/peakk2011/mousse-de-valentin/blob/main/src/renderer/content/pages/editorPage.js): `src/renderer/content/pages/editorPage.js`
- [Note store](https://github.com/peakk2011/mousse-de-valentin/blob/main/src/renderer/scripts/note/noteStore.js): `src/renderer/scripts/note/noteStore.js`
- [Text safety](https://github.com/peakk2011/mousse-de-valentin/blob/main/src/renderer/scripts/editor/textSafety.js): `src/renderer/scripts/editor/textSafety.js`
- [Command palette](https://github.com/peakk2011/mousse-de-valentin/blob/main/src/renderer/content/contentComponents/commandPalette/controller/CommandPaletteController.js): `src/renderer/content/contentComponents/commandPalette/controller/CommandPaletteController.js`
- [Palette results](https://github.com/peakk2011/mousse-de-valentin/blob/main/src/renderer/content/contentComponents/commandPalette/components/CommandPaletteResults.js): `src/renderer/content/contentComponents/commandPalette/components/CommandPaletteResults.js`

### Marker board

- [Marker board](https://github.com/peakk2011/mousse-de-valentin/blob/main/src/api/marker/board/MarkerBoard.js): `src/api/marker/board/MarkerBoard.js`
- [Window manager](https://github.com/peakk2011/mousse-de-valentin/blob/main/src/api/marker/window/WindowManager.js): `src/api/marker/window/WindowManager.js`
- [Window factory](https://github.com/peakk2011/mousse-de-valentin/blob/main/src/api/marker/window/WindowFactory.js): `src/api/marker/window/WindowFactory.js`
- [Board groups](https://github.com/peakk2011/mousse-de-valentin/blob/main/src/api/marker/group/GroupManager.js): `src/api/marker/group/GroupManager.js`
- [Board persistence](https://github.com/peakk2011/mousse-de-valentin/blob/main/src/api/marker/board/persistence.js): `src/api/marker/board/persistence.js`
- [Zoom and pan](https://github.com/peakk2011/mousse-de-valentin/blob/main/src/api/marker/controllers/zoomPan.js): `src/api/marker/controllers/zoomPan.js`

### Collaboration service

- [Collaboration client](https://github.com/peakk2011/mousse-de-valentin/blob/main/src/renderer/scripts/collab/realtimeCollab.js): `src/renderer/scripts/collab/realtimeCollab.js`
- [Request router](https://github.com/peakk2011/mousse-de-valentin/blob/main/workers/collab/router.js): `workers/collab/router.js`
- [HTTP helpers](https://github.com/peakk2011/mousse-de-valentin/blob/main/workers/collab/http.js): `workers/collab/http.js`
- [Session security](https://github.com/peakk2011/mousse-de-valentin/blob/main/workers/collab/security.js): `workers/collab/security.js`
- [Shared services](https://github.com/peakk2011/mousse-de-valentin/blob/main/workers/collab/shared.js): `workers/collab/shared.js`
- [Room actions](https://github.com/peakk2011/mousse-de-valentin/blob/main/workers/collab/routes/roomActions.js): `workers/collab/routes/roomActions.js`
- [WebSocket route](https://github.com/peakk2011/mousse-de-valentin/blob/main/workers/collab/routes/websocket.js): `workers/collab/routes/websocket.js`

### Content injection

- [Injection framework](https://github.com/peakk2011/mousse-de-valentin/blob/main/src/framework/units.js): `src/framework/units.js`

### Other components

- **User**

## Connections

- App entry → App initialization: starts (evidence: `src/main.js`)
- App initialization → Window lifecycle: creates windows (evidence: `src/initFascinateNotes.js`)
- User → Renderer app: uses
- Window manager → Window factory: creates windows (evidence: `src/api/marker/window/WindowManager.js`)
- Window manager → Board persistence: persists board (evidence: `src/api/marker/window/WindowManager.js`)
- Board groups → Board persistence: persists groups (evidence: `src/api/marker/group/GroupManager.js`)
- Board groups → Text safety: truncates labels (evidence: `src/api/marker/group/GroupManager.js`)
- Marker board → Board persistence: loads and saves
- Marker board → Window manager: manages windows
- Marker board → Board groups: manages groups
- Marker board → Zoom and pan: supports navigation
- Command palette → Palette results: updates results (evidence: `src/renderer/content/contentComponents/commandPalette/controller/CommandPaletteController.js`)
- Editor page → Note store: uses notes
- Request router → HTTP helpers: reads request body (evidence: `workers/collab/router.js`)
- Request router → Session security: checks identity (evidence: `workers/collab/router.js`)
- Request router → Shared services: uses shared services (evidence: `workers/collab/router.js`)
- Request router → Room actions: dispatches actions (evidence: `workers/collab/router.js`)
- Request router → WebSocket route: dispatches upgrades (evidence: `workers/collab/router.js`)
- Shared services → Session security: uses security (evidence: `workers/collab/shared.js`)
- Collaboration client → Request router: sends requests
