# nammozhi/tamil-date-format architecture

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

- Interactive diagram: https://gitdiagram.com/nammozhi/tamil-date-format
- Repository: https://github.com/nammozhi/tamil-date-format

## Overview

Tamil Date Format is a small JavaScript date-formatting utility. A JavaScript caller invokes `Date.prototype.tamilFormat()` with an optional pattern; the formatter replaces supported tokens with date fields and Tamil names, using day-part logic for `P`. The implementation is contained in one source file. The README documents the caller workflow; no external services or persistent state are shown.

Main entry points: [`src/tamilDateFormat.js`](https://github.com/nammozhi/tamil-date-format/blob/main/src/tamilDateFormat.js) (Date formatter)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_caller(("JavaScript caller"))
node_formatter["Date formatter<br/>[tamilDateFormat.js]"]
node_tamil_tokens["Tamil tokens<br/>[tamilDateFormat.js]"]

node_caller -->|"calls format"| node_formatter
node_formatter -->|"uses names"| node_tamil_tokens

click node_formatter "https://github.com/nammozhi/tamil-date-format/blob/main/src/tamilDateFormat.js"
click node_tamil_tokens "https://github.com/nammozhi/tamil-date-format/blob/main/src/tamilDateFormat.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_caller toneIndigo
class node_formatter,node_tamil_tokens toneTeal
```

## Components

### Other components

- **JavaScript caller**
- [Date formatter](https://github.com/nammozhi/tamil-date-format/blob/main/src/tamilDateFormat.js): `src/tamilDateFormat.js`
- [Tamil tokens](https://github.com/nammozhi/tamil-date-format/blob/main/src/tamilDateFormat.js): `src/tamilDateFormat.js`

## Connections

- JavaScript caller → Date formatter: calls format (evidence: `README.md`)
- Date formatter → Tamil tokens: uses names (evidence: `src/tamilDateFormat.js`)
