# kabilan-317/calulator architecture

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

- Interactive diagram: https://gitdiagram.com/kabilan-317/calulator
- Repository: https://github.com/kabilan-317/calulator

## Overview

A small Node.js command-line calculator. The user enters two numbers and an operator; the CLI validates the numbers, calls the arithmetic function, and prints the result or an error. Both runtime responsibilities are implemented in calculator1.js; no other product subsystems are present.

Main entry points: [`calculator1.js`](https://github.com/kabilan-317/calulator/blob/main/calculator1.js) (Calculator CLI)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_cli["Calculator CLI<br/>[calculator1.js]"]
node_arithmetic["Arithmetic<br/>[calculator1.js]"]

node_user -->|"enters values"| node_cli
node_cli -->|"calculates"| node_arithmetic
node_cli -->|"prints result"| node_user

click node_cli "https://github.com/kabilan-317/calulator/blob/main/calculator1.js"
click node_arithmetic "https://github.com/kabilan-317/calulator/blob/main/calculator1.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 toneBlue
class node_cli,node_arithmetic toneTeal
```

## Components

### Other components

- **User**
- [Calculator CLI](https://github.com/kabilan-317/calulator/blob/main/calculator1.js): `calculator1.js`
- [Arithmetic](https://github.com/kabilan-317/calulator/blob/main/calculator1.js): `calculator1.js`

## Connections

- User → Calculator CLI: enters values (evidence: `calculator1.js`)
- Calculator CLI → Arithmetic: calculates (evidence: `calculator1.js`)
- Calculator CLI → User: prints result (evidence: `calculator1.js`)
