# imrahuldaksh/stickynotes architecture

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

- Interactive diagram: https://gitdiagram.com/imrahuldaksh/stickynotes
- Repository: https://github.com/imrahuldaksh/stickynotes

## Overview

This is a browser-based sticky-notes app: users add notes, edit titles and content, choose colors, and delete notes; note state persists in browser local storage. The graph follows React mounting, context-backed state, and the note interaction path. The README describes only the Create React App scaffold, so product capabilities are derived from the sampled implementation; no external service is shown.

Main entry points: [`src/components/StickyNote.js`](https://github.com/imrahuldaksh/stickynotes/blob/main/src/components/StickyNote.js) (Note editor), [`src/context/StickyNotesContext.js`](https://github.com/imrahuldaksh/stickynotes/blob/main/src/context/StickyNotesContext.js) (Notes context), [`src/App.js`](https://github.com/imrahuldaksh/stickynotes/blob/main/src/App.js) (App composition), [`src/components/Header.js`](https://github.com/imrahuldaksh/stickynotes/blob/main/src/components/Header.js) (Header actions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry"]
  node_mount["React mount<br/>[index.js]"]
  node_app["App composition<br/>[App.js]"]
end

subgraph group_interface["Notes interface"]
  node_header["Header actions<br/>[Header.js]"]
  node_empty["Empty state<br/>[EmptyNotes.js]"]
  node_grid["Notes grid<br/>[StickyNotesGrid.js]"]
  node_note["Note editor<br/>[StickyNote.js]"]
  node_colors["Color picker<br/>[ColorCustomizer.js]"]
  node_icons["SVG icons<br/>[SvgIcons.js]"]
end

subgraph group_state["State and persistence"]
  node_debounce["Debounce hook<br/>[useDebounce.js]"]
  node_context["Notes context"]
  node_storage[("Browser localStorage")]
end

node_user(("User"))

node_user -->|"adds notes"| node_header
node_user -->|"edits notes"| node_note
node_mount -->|"renders"| node_app
node_app -->|"provides state"| node_context
node_app -->|"renders"| node_header
node_app -->|"renders"| node_grid
node_app -->|"renders"| node_empty
node_header -->|"adds note"| node_context
node_empty -->|"adds note"| node_context
node_grid -->|"reads and updates"| node_context
node_grid -->|"renders"| node_note
node_note -->|"debounces text"| node_debounce
node_note -->|"sends updates"| node_context
node_note -->|"renders"| node_colors
node_note -->|"renders"| node_icons
node_context -->|"reads and writes"| node_storage
node_header -->|"renders"| node_icons
node_empty -->|"renders"| node_icons

click node_mount "https://github.com/imrahuldaksh/stickynotes/blob/main/src/index.js"
click node_app "https://github.com/imrahuldaksh/stickynotes/blob/main/src/App.js"
click node_header "https://github.com/imrahuldaksh/stickynotes/blob/main/src/components/Header.js"
click node_empty "https://github.com/imrahuldaksh/stickynotes/blob/main/src/components/EmptyNotes.js"
click node_grid "https://github.com/imrahuldaksh/stickynotes/blob/main/src/components/StickyNotesGrid.js"
click node_note "https://github.com/imrahuldaksh/stickynotes/blob/main/src/components/StickyNote.js"
click node_colors "https://github.com/imrahuldaksh/stickynotes/blob/main/src/components/ColorCustomizer.js"
click node_icons "https://github.com/imrahuldaksh/stickynotes/blob/main/src/components/SvgIcons.js"
click node_debounce "https://github.com/imrahuldaksh/stickynotes/blob/main/src/hooks/useDebounce.js"
click node_context "https://github.com/imrahuldaksh/stickynotes/blob/main/src/context/StickyNotesContext.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_mount,node_app,node_user toneBlue
class node_header,node_empty,node_grid,node_note,node_colors,node_icons toneAmber
class node_debounce,node_context,node_storage toneMint
```

## Components

### App entry

- [React mount](https://github.com/imrahuldaksh/stickynotes/blob/main/src/index.js): `src/index.js`
- [App composition](https://github.com/imrahuldaksh/stickynotes/blob/main/src/App.js): `src/App.js`

### Notes interface

- [Header actions](https://github.com/imrahuldaksh/stickynotes/blob/main/src/components/Header.js): `src/components/Header.js`
- [Empty state](https://github.com/imrahuldaksh/stickynotes/blob/main/src/components/EmptyNotes.js): `src/components/EmptyNotes.js`
- [Notes grid](https://github.com/imrahuldaksh/stickynotes/blob/main/src/components/StickyNotesGrid.js): `src/components/StickyNotesGrid.js`
- [Note editor](https://github.com/imrahuldaksh/stickynotes/blob/main/src/components/StickyNote.js): `src/components/StickyNote.js`
- [Color picker](https://github.com/imrahuldaksh/stickynotes/blob/main/src/components/ColorCustomizer.js): `src/components/ColorCustomizer.js`
- [SVG icons](https://github.com/imrahuldaksh/stickynotes/blob/main/src/components/SvgIcons.js): `src/components/SvgIcons.js`

### State and persistence

- [Debounce hook](https://github.com/imrahuldaksh/stickynotes/blob/main/src/hooks/useDebounce.js): `src/hooks/useDebounce.js`
- [Notes context](https://github.com/imrahuldaksh/stickynotes/blob/main/src/context/StickyNotesContext.js): `src/context/StickyNotesContext.js`
- **Browser localStorage**

### Other components

- **User**

## Connections

- User → Header actions: adds notes (evidence: `src/components/Header.js`)
- User → Note editor: edits notes (evidence: `src/components/StickyNote.js`)
- React mount → App composition: renders (evidence: `src/index.js`)
- App composition → Notes context: provides state (evidence: `src/App.js`)
- App composition → Header actions: renders (evidence: `src/App.js`)
- App composition → Notes grid: renders (evidence: `src/App.js`)
- App composition → Empty state: renders (evidence: `src/App.js`)
- Header actions → Notes context: adds note (evidence: `src/components/Header.js`)
- Empty state → Notes context: adds note (evidence: `src/components/EmptyNotes.js`)
- Notes grid → Notes context: reads and updates (evidence: `src/components/StickyNotesGrid.js`)
- Notes grid → Note editor: renders (evidence: `src/components/StickyNotesGrid.js`)
- Note editor → Debounce hook: debounces text (evidence: `src/components/StickyNote.js`)
- Note editor → Notes context: sends updates (evidence: `src/components/StickyNote.js`)
- Note editor → Color picker: renders (evidence: `src/components/StickyNote.js`)
- Note editor → SVG icons: renders (evidence: `src/components/StickyNote.js`)
- Notes context → Browser localStorage: reads and writes (evidence: `src/context/StickyNotesContext.js`)
- Header actions → SVG icons: renders (evidence: `src/components/Header.js`)
- Empty state → SVG icons: renders (evidence: `src/components/EmptyNotes.js`)
