# shubbham-kumarr/my-notes-rack architecture

> Architecture diagram of the GitHub repository shubbham-kumarr/my-notes-rack, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/shubbham-kumarr/my-notes-rack
- Repository: https://github.com/shubbham-kumarr/my-notes-rack

## Overview

My Notes Rack is a browser-local encrypted notes app. The user enters a passphrase and searches in the header, creates or edits notes in the form, and views, edits, or deletes them in the list. App coordinates note state, filtering, encryption/decryption, and IndexedDB operations; the local database stores encrypted content. README documents offline-first operation and CRUD/search capabilities. Edges reflect shown imports, calls, and callbacks; no unsampled implementation is assumed.

Main entry points: [`src/App.jsx`](https://github.com/shubbham-kumarr/my-notes-rack/blob/main/src/App.jsx) (Notes app state), [`src/components/Header.jsx`](https://github.com/shubbham-kumarr/my-notes-rack/blob/main/src/components/Header.jsx) (Passphrase and search), [`src/components/NoteForm.jsx`](https://github.com/shubbham-kumarr/my-notes-rack/blob/main/src/components/NoteForm.jsx) (Note editor), [`src/components/NoteList.jsx`](https://github.com/shubbham-kumarr/my-notes-rack/blob/main/src/components/NoteList.jsx) (Filtered note list)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Notes interface"]
  node_bootstrap["React bootstrap<br/>[main.jsx]"]
  node_header["Passphrase and search<br/>[Header.jsx]"]
  node_form["Note editor<br/>[NoteForm.jsx]"]
  node_list["Filtered note list<br/>[NoteList.jsx]"]
  node_card["Note card actions<br/>[NoteCard.jsx]"]
end

subgraph group_coordination["App coordination"]
  node_app["Notes app state<br/>[App.jsx]"]
end

subgraph group_local_services["Local services"]
  node_crypto["AES encryption<br/>[crypto.js]"]
  node_database[("IndexedDB notes<br/>[db.js]")]
end

node_user(("User"))

node_user -->|"enters and searches"| node_header
node_user -->|"writes notes"| node_form
node_bootstrap -->|"renders"| node_app
node_app -->|"renders"| node_header
node_header -->|"updates state"| node_app
node_app -->|"renders"| node_form
node_form -->|"submits or cancels"| node_app
node_app -->|"renders filtered notes"| node_list
node_list -->|"renders cards"| node_card
node_card -->|"requests edit or delete"| node_app
node_app -->|"opens and reads"| node_database
node_app -->|"writes or deletes"| node_database
node_app -->|"encrypts and decrypts"| node_crypto

click node_bootstrap "https://github.com/shubbham-kumarr/my-notes-rack/blob/main/src/main.jsx"
click node_app "https://github.com/shubbham-kumarr/my-notes-rack/blob/main/src/App.jsx"
click node_header "https://github.com/shubbham-kumarr/my-notes-rack/blob/main/src/components/Header.jsx"
click node_form "https://github.com/shubbham-kumarr/my-notes-rack/blob/main/src/components/NoteForm.jsx"
click node_list "https://github.com/shubbham-kumarr/my-notes-rack/blob/main/src/components/NoteList.jsx"
click node_card "https://github.com/shubbham-kumarr/my-notes-rack/blob/main/src/components/NoteCard.jsx"
click node_crypto "https://github.com/shubbham-kumarr/my-notes-rack/blob/main/src/utils/crypto.js"
click node_database "https://github.com/shubbham-kumarr/my-notes-rack/blob/main/src/utils/db.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_bootstrap,node_header,node_form,node_list,node_card,node_user toneBlue
class node_app toneAmber
class node_crypto,node_database toneMint
```

## Components

### Notes interface

- [React bootstrap](https://github.com/shubbham-kumarr/my-notes-rack/blob/main/src/main.jsx): `src/main.jsx`
- [Passphrase and search](https://github.com/shubbham-kumarr/my-notes-rack/blob/main/src/components/Header.jsx): `src/components/Header.jsx`
- [Note editor](https://github.com/shubbham-kumarr/my-notes-rack/blob/main/src/components/NoteForm.jsx): `src/components/NoteForm.jsx`
- [Filtered note list](https://github.com/shubbham-kumarr/my-notes-rack/blob/main/src/components/NoteList.jsx): `src/components/NoteList.jsx`
- [Note card actions](https://github.com/shubbham-kumarr/my-notes-rack/blob/main/src/components/NoteCard.jsx): `src/components/NoteCard.jsx`

### App coordination

- [Notes app state](https://github.com/shubbham-kumarr/my-notes-rack/blob/main/src/App.jsx): `src/App.jsx`

### Local services

- [AES encryption](https://github.com/shubbham-kumarr/my-notes-rack/blob/main/src/utils/crypto.js): `src/utils/crypto.js`
- [IndexedDB notes](https://github.com/shubbham-kumarr/my-notes-rack/blob/main/src/utils/db.js): `src/utils/db.js`

### Other components

- **User**

## Connections

- User → Passphrase and search: enters and searches (evidence: `src/components/Header.jsx`)
- User → Note editor: writes notes (evidence: `src/components/NoteForm.jsx`)
- React bootstrap → Notes app state: renders (evidence: `src/main.jsx`)
- Notes app state → Passphrase and search: renders (evidence: `src/App.jsx`)
- Passphrase and search → Notes app state: updates state (evidence: `src/components/Header.jsx`)
- Notes app state → Note editor: renders (evidence: `src/App.jsx`)
- Note editor → Notes app state: submits or cancels (evidence: `src/components/NoteForm.jsx`)
- Notes app state → Filtered note list: renders filtered notes (evidence: `src/App.jsx`)
- Filtered note list → Note card actions: renders cards (evidence: `src/components/NoteList.jsx`)
- Note card actions → Notes app state: requests edit or delete (evidence: `src/components/NoteCard.jsx`)
- Notes app state → IndexedDB notes: opens and reads (evidence: `src/App.jsx`)
- Notes app state → IndexedDB notes: writes or deletes (evidence: `src/App.jsx`)
- Notes app state → AES encryption: encrypts and decrypts (evidence: `src/App.jsx`)
