# shreyashri1011/tabs architecture

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

- Interactive diagram: https://gitdiagram.com/shreyashri1011/tabs
- Repository: https://github.com/shreyashri1011/tabs

## Overview

TABS is an Electron desktop app for organizing and reading PDFs with a scrapbook-like interface. The renderer entry mounts the application; the app manages document selection, PDF rendering, reading state, and saved annotations, while views and toolbar components present library and reading interactions. The excerpts show persistence requests through an Electron API, but do not reveal its implementation or the database schema. Several features are documented in component excerpts, but unsampled source limits which runtime connections can be confirmed.

Main entry points: [`src/App.jsx`](https://github.com/shreyashri1011/tabs/blob/main/src/App.jsx) (App workflow), [`src/utils/imageUtils.js`](https://github.com/shreyashri1011/tabs/blob/main/src/utils/imageUtils.js) (Image utilities), [`src/components/Toolbar.jsx`](https://github.com/shreyashri1011/tabs/blob/main/src/components/Toolbar.jsx) (Reader toolbar), [`src/components/HomeView.jsx`](https://github.com/shreyashri1011/tabs/blob/main/src/components/HomeView.jsx) (Library view)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Desktop application"]
  node_renderer["Renderer entry<br/>[main.jsx]"]
  node_appstate["App workflow<br/>[App.jsx]"]
  node_pdf["PDF renderer<br/>[App.jsx]"]
  node_persistence["Electron persistence API"]
end

subgraph group_library["Library and navigation"]
  node_libraryview["Library view<br/>[HomeView.jsx]"]
  node_openanimation["Open animation"]
  node_closeanimation["Close animation"]
  node_buildinfo["Build version display<br/>[buildInfo.js]"]
end

subgraph group_reading["Reading and annotation"]
  node_toolbar["Reader toolbar<br/>[Toolbar.jsx]"]
  node_notes["Document notes<br/>[NotesPanel.jsx]"]
end

subgraph group_presentation["Reading interface"]
  node_reader["PDF reader view<br/>[ReaderView.jsx]"]
  node_counter["Page counter<br/>[PageCounter.jsx]"]
  node_carousel["Color carousel<br/>[ColorCarousel.jsx]"]
  node_imageutils["Image utilities<br/>[imageUtils.js]"]
end

node_user(("Reader"))

node_renderer -->|"mounts"| node_appstate
node_appstate -->|"renders"| node_toolbar
node_appstate -->|"renders"| node_openanimation
node_appstate -->|"renders"| node_closeanimation
node_appstate -->|"requests data"| node_persistence
node_appstate -->|"renders pages"| node_pdf
node_toolbar -->|"renders"| node_carousel
node_reader -->|"renders"| node_counter
node_toolbar -->|"cleans artwork"| node_imageutils
node_reader -->|"cleans artwork"| node_imageutils
node_openanimation -->|"cleans artwork"| node_imageutils
node_closeanimation -->|"cleans artwork"| node_imageutils
node_libraryview -->|"cleans artwork"| node_imageutils
node_libraryview -->|"shows version"| node_buildinfo

click node_renderer "https://github.com/shreyashri1011/tabs/blob/main/src/main.jsx"
click node_appstate "https://github.com/shreyashri1011/tabs/blob/main/src/App.jsx"
click node_pdf "https://github.com/shreyashri1011/tabs/blob/main/src/App.jsx"
click node_libraryview "https://github.com/shreyashri1011/tabs/blob/main/src/components/HomeView.jsx"
click node_openanimation "https://github.com/shreyashri1011/tabs/blob/main/src/components/FolderOpenAnimation.jsx"
click node_closeanimation "https://github.com/shreyashri1011/tabs/blob/main/src/components/FolderCloseAnimation.jsx"
click node_toolbar "https://github.com/shreyashri1011/tabs/blob/main/src/components/Toolbar.jsx"
click node_notes "https://github.com/shreyashri1011/tabs/blob/main/src/components/NotesPanel.jsx"
click node_reader "https://github.com/shreyashri1011/tabs/blob/main/src/components/ReaderView.jsx"
click node_counter "https://github.com/shreyashri1011/tabs/blob/main/src/components/PageCounter.jsx"
click node_carousel "https://github.com/shreyashri1011/tabs/blob/main/src/components/ColorCarousel.jsx"
click node_imageutils "https://github.com/shreyashri1011/tabs/blob/main/src/utils/imageUtils.js"
click node_buildinfo "https://github.com/shreyashri1011/tabs/blob/main/src/buildInfo.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_renderer,node_appstate,node_pdf,node_persistence toneBlue
class node_libraryview,node_openanimation,node_closeanimation,node_buildinfo toneAmber
class node_toolbar,node_notes toneMint
class node_reader,node_counter,node_carousel,node_imageutils toneRose
class node_user toneIndigo
```

## Components

### Desktop application

- [Renderer entry](https://github.com/shreyashri1011/tabs/blob/main/src/main.jsx): `src/main.jsx`
- [App workflow](https://github.com/shreyashri1011/tabs/blob/main/src/App.jsx): `src/App.jsx`
- [PDF renderer](https://github.com/shreyashri1011/tabs/blob/main/src/App.jsx): `src/App.jsx`
- **Electron persistence API**

### Library and navigation

- [Library view](https://github.com/shreyashri1011/tabs/blob/main/src/components/HomeView.jsx): `src/components/HomeView.jsx`
- [Open animation](https://github.com/shreyashri1011/tabs/blob/main/src/components/FolderOpenAnimation.jsx): `src/components/FolderOpenAnimation.jsx`
- [Close animation](https://github.com/shreyashri1011/tabs/blob/main/src/components/FolderCloseAnimation.jsx): `src/components/FolderCloseAnimation.jsx`
- [Build version display](https://github.com/shreyashri1011/tabs/blob/main/src/buildInfo.js): `src/buildInfo.js`

### Reading and annotation

- [Reader toolbar](https://github.com/shreyashri1011/tabs/blob/main/src/components/Toolbar.jsx): `src/components/Toolbar.jsx`
- [Document notes](https://github.com/shreyashri1011/tabs/blob/main/src/components/NotesPanel.jsx): `src/components/NotesPanel.jsx`

### Reading interface

- [PDF reader view](https://github.com/shreyashri1011/tabs/blob/main/src/components/ReaderView.jsx): `src/components/ReaderView.jsx`
- [Page counter](https://github.com/shreyashri1011/tabs/blob/main/src/components/PageCounter.jsx): `src/components/PageCounter.jsx`
- [Color carousel](https://github.com/shreyashri1011/tabs/blob/main/src/components/ColorCarousel.jsx): `src/components/ColorCarousel.jsx`
- [Image utilities](https://github.com/shreyashri1011/tabs/blob/main/src/utils/imageUtils.js): `src/utils/imageUtils.js`

### Other components

- **Reader**

## Connections

- Renderer entry → App workflow: mounts (evidence: `src/main.jsx`)
- App workflow → Reader toolbar: renders (evidence: `src/App.jsx`)
- App workflow → Open animation: renders (evidence: `src/App.jsx`)
- App workflow → Close animation: renders (evidence: `src/App.jsx`)
- App workflow → Electron persistence API: requests data (evidence: `src/App.jsx`)
- App workflow → PDF renderer: renders pages (evidence: `src/App.jsx`)
- Reader toolbar → Color carousel: renders (evidence: `src/components/Toolbar.jsx`)
- PDF reader view → Page counter: renders (evidence: `src/components/ReaderView.jsx`)
- Reader toolbar → Image utilities: cleans artwork (evidence: `src/components/Toolbar.jsx`)
- PDF reader view → Image utilities: cleans artwork (evidence: `src/components/ReaderView.jsx`)
- Open animation → Image utilities: cleans artwork (evidence: `src/components/FolderOpenAnimation.jsx`)
- Close animation → Image utilities: cleans artwork (evidence: `src/components/FolderCloseAnimation.jsx`)
- Library view → Image utilities: cleans artwork (evidence: `src/components/HomeView.jsx`)
- Library view → Build version display: shows version (evidence: `src/components/HomeView.jsx`)
