# bhoomisurve/littlereminders architecture

> Architecture diagram of the GitHub repository bhoomisurve/littlereminders, 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/bhoomisurve/littlereminders
- Repository: https://github.com/bhoomisurve/littlereminders

## Overview

Little Reminders is a no-sign-up affirmation website. Users browse category-filtered reminders in tech-inspired and everyday wording, then can save favourites, earn XP toward levels, and share or discover community quotes. The browser script coordinates these interactions, keeps local progress available, and optionally syncs with Supabase using anonymous profiles. The main script and reminder data are excerpted; the README documents the product capabilities. The schema and page markup were not sampled, so their internal details and relationships are not inferred.

Main entry points: [`script.js`](https://github.com/bhoomisurve/littlereminders/blob/main/script.js) (Reminder app), [`reminders.js`](https://github.com/bhoomisurve/littlereminders/blob/main/reminders.js) (Reminder content), [`index.html`](https://github.com/bhoomisurve/littlereminders/blob/main/index.html) (Web page), [`supabase-config.js`](https://github.com/bhoomisurve/littlereminders/blob/main/supabase-config.js) (Supabase config)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Reminder experience"]
  node_app["Reminder app<br/>[script.js]"]
  node_reminders["Reminder content<br/>[reminders.js]"]
  node_page["Web page<br/>[index.html]"]
end

subgraph group_progress["Progress and saving"]
  node_xp["XP and levels<br/>[script.js]"]
  node_saved["Saved favourites<br/>[script.js]"]
end

subgraph group_community["Community sharing"]
  node_quotes["Community quotes<br/>[script.js]"]
end

subgraph group_persistence["Persistence and sync"]
  node_local[("Browser storage<br/>[script.js]")]
  node_config["Supabase config<br/>[supabase-config.js]"]
  node_sync["Supabase sync<br/>[script.js]"]
  node_schema[("Database schema<br/>[schema.sql]")]
end

node_visitor(("Visitor"))
node_supabase["Supabase service"]

node_visitor -->|"uses"| node_app
node_app -->|"updates"| node_page
node_app -->|"reads"| node_reminders
node_app -->|"awards XP"| node_xp
node_app -->|"toggles saves"| node_saved
node_app -->|"loads and shares"| node_quotes
node_app -->|"reads and writes"| node_local
node_app -->|"reads config"| node_config
node_app -->|"sets up"| node_sync
node_sync -->|"authenticates and queries"| node_supabase
node_sync -->|"updates XP"| node_xp
node_sync -->|"syncs saves"| node_saved
node_sync -->|"syncs quotes"| node_quotes

click node_app "https://github.com/bhoomisurve/littlereminders/blob/main/script.js"
click node_reminders "https://github.com/bhoomisurve/littlereminders/blob/main/reminders.js"
click node_page "https://github.com/bhoomisurve/littlereminders/blob/main/index.html"
click node_xp "https://github.com/bhoomisurve/littlereminders/blob/main/script.js"
click node_saved "https://github.com/bhoomisurve/littlereminders/blob/main/script.js"
click node_local "https://github.com/bhoomisurve/littlereminders/blob/main/script.js"
click node_config "https://github.com/bhoomisurve/littlereminders/blob/main/supabase-config.js"
click node_sync "https://github.com/bhoomisurve/littlereminders/blob/main/script.js"
click node_schema "https://github.com/bhoomisurve/littlereminders/blob/main/schema.sql"
click node_quotes "https://github.com/bhoomisurve/littlereminders/blob/main/script.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_reminders,node_page toneBlue
class node_xp,node_saved toneAmber
class node_quotes toneMint
class node_local,node_config,node_sync,node_schema toneRose
class node_visitor,node_supabase toneIndigo
```

## Components

### Reminder experience

- [Reminder app](https://github.com/bhoomisurve/littlereminders/blob/main/script.js): `script.js`
- [Reminder content](https://github.com/bhoomisurve/littlereminders/blob/main/reminders.js): `reminders.js`
- [Web page](https://github.com/bhoomisurve/littlereminders/blob/main/index.html): `index.html`

### Progress and saving

- [XP and levels](https://github.com/bhoomisurve/littlereminders/blob/main/script.js): `script.js`
- [Saved favourites](https://github.com/bhoomisurve/littlereminders/blob/main/script.js): `script.js`

### Community sharing

- [Community quotes](https://github.com/bhoomisurve/littlereminders/blob/main/script.js): `script.js`

### Persistence and sync

- [Browser storage](https://github.com/bhoomisurve/littlereminders/blob/main/script.js): `script.js`
- [Supabase config](https://github.com/bhoomisurve/littlereminders/blob/main/supabase-config.js): `supabase-config.js`
- [Supabase sync](https://github.com/bhoomisurve/littlereminders/blob/main/script.js): `script.js`
- [Database schema](https://github.com/bhoomisurve/littlereminders/blob/main/schema.sql): `schema.sql`

### Other components

- **Visitor**
- **Supabase service**

## Connections

- Visitor → Reminder app: uses (evidence: `README.md`)
- Reminder app → Web page: updates (evidence: `script.js`)
- Reminder app → Reminder content: reads (evidence: `script.js`)
- Reminder app → XP and levels: awards XP (evidence: `script.js`)
- Reminder app → Saved favourites: toggles saves (evidence: `script.js`)
- Reminder app → Community quotes: loads and shares (evidence: `script.js`)
- Reminder app → Browser storage: reads and writes (evidence: `script.js`)
- Reminder app → Supabase config: reads config (evidence: `script.js`)
- Reminder app → Supabase sync: sets up (evidence: `script.js`)
- Supabase sync → Supabase service: authenticates and queries (evidence: `script.js`)
- Supabase sync → XP and levels: updates XP (evidence: `script.js`)
- Supabase sync → Saved favourites: syncs saves (evidence: `script.js`)
- Supabase sync → Community quotes: syncs quotes (evidence: `script.js`)
