# felangel/equatable architecture

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

- Interactive diagram: https://gitdiagram.com/felangel/equatable
- Repository: https://github.com/felangel/equatable

## Overview

Equatable is a small Dart library for value-based equality without generated code. A client defines immutable props and uses the package API to compare objects and compute their hash codes; optional stringification can be configured per instance or globally. The README documents the public usage and configuration behavior, but no source excerpts were provided, so internal utility behavior and implementation call relationships are not inferred.

Main entry points: [`lib/src/equatable.dart`](https://github.com/felangel/equatable/blob/master/lib/src/equatable.dart) (Equatable behavior), [`lib/src/equatable_config.dart`](https://github.com/felangel/equatable/blob/master/lib/src/equatable_config.dart) (Stringify config), [`lib/equatable.dart`](https://github.com/felangel/equatable/blob/master/lib/equatable.dart) (Package entry point)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_client(("Dart client"))
node_public_api["Package entry point<br/>[equatable.dart]"]
node_equatable["Equatable behavior<br/>[equatable.dart]"]
node_config["Stringify config"]
node_utils["Equality utilities"]

node_client -->|"imports"| node_public_api
node_client -->|"extends or mixes in"| node_equatable
node_client -->|"configures globally"| node_config
node_equatable -->|"reads global setting"| node_config

click node_public_api "https://github.com/felangel/equatable/blob/master/lib/equatable.dart"
click node_equatable "https://github.com/felangel/equatable/blob/master/lib/src/equatable.dart"
click node_config "https://github.com/felangel/equatable/blob/master/lib/src/equatable_config.dart"
click node_utils "https://github.com/felangel/equatable/blob/master/lib/src/equatable_utils.dart"

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_client toneBlue
class node_public_api,node_equatable,node_config,node_utils toneTeal
```

## Components

### Other components

- **Dart client**
- [Package entry point](https://github.com/felangel/equatable/blob/master/lib/equatable.dart): `lib/equatable.dart`
- [Equatable behavior](https://github.com/felangel/equatable/blob/master/lib/src/equatable.dart): `lib/src/equatable.dart`
- [Stringify config](https://github.com/felangel/equatable/blob/master/lib/src/equatable_config.dart): `lib/src/equatable_config.dart`
- [Equality utilities](https://github.com/felangel/equatable/blob/master/lib/src/equatable_utils.dart): `lib/src/equatable_utils.dart`

## Connections

- Dart client → Package entry point: imports (evidence: `README.md`)
- Dart client → Equatable behavior: extends or mixes in (evidence: `README.md`)
- Dart client → Stringify config: configures globally (evidence: `README.md`)
- Equatable behavior → Stringify config: reads global setting (evidence: `README.md`)
