# sarveshsahane/demo architecture

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

- Interactive diagram: https://gitdiagram.com/sarveshsahane/demo
- Repository: https://github.com/sarveshsahane/demo

## Overview

This is a tiny pair of standalone JavaScript examples, not an implemented authentication product. `script.js` filters a hard-coded user list to Pune residents, maps the matches to names, and logs the result; `authentication.js` only logs a login/logout feature message. The excerpts show no connection between the files or actual authentication behavior.

Main entry points: [`script.js`](https://github.com/sarveshsahane/demo/blob/main/script.js) (User filtering), [`authentication.js`](https://github.com/sarveshsahane/demo/blob/main/authentication.js) (Auth message)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user_filter["User filtering<br/>[script.js]"]
node_console["Console output"]
node_auth_message["Auth message<br/>[authentication.js]"]

node_user_filter -->|"logs names"| node_console
node_auth_message -->|"logs message"| node_console

click node_user_filter "https://github.com/sarveshsahane/demo/blob/main/script.js"
click node_auth_message "https://github.com/sarveshsahane/demo/blob/main/authentication.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_user_filter toneBlue
class node_console toneIndigo
class node_auth_message toneTeal
```

## Components

### Other components

- [User filtering](https://github.com/sarveshsahane/demo/blob/main/script.js): `script.js`
- **Console output**
- [Auth message](https://github.com/sarveshsahane/demo/blob/main/authentication.js): `authentication.js`

## Connections

- User filtering → Console output: logs names (evidence: `script.js`)
- Auth message → Console output: logs message (evidence: `authentication.js`)
