# finditem/fi-fe-core architecture

> Architecture diagram of the GitHub repository finditem/fi-fe-core, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/finditem/fi-fe-core
- Repository: https://github.com/finditem/fi-fe-core

## Overview

@finditem/core is a private-to-the-service TypeScript package of shared frontend utilities and framework-facing entry points, not a standalone application. The principal workflow is a Finditem frontend calling an exported helper with a value—such as a date, number, or coordinate—and using its formatted or calculated result. The sampled implementation supports independent utility functions, not a chained processing pipeline. The tree and package exports show React, store, API, Next.js, and mock entry points, but their implementations were not sampled; their behavior and connections are therefore left unspecified.

Main entry points: [`src/utils/index.ts`](https://github.com/finditem/fi-fe-core/blob/develop/src/utils/index.ts) (Utility exports), [`src/utils/formatCappedNumber/formatCappedNumber.ts`](https://github.com/finditem/fi-fe-core/blob/develop/src/utils/formatCappedNumber/formatCappedNumber.ts) (Capped number), [`src/utils/formatViewCount/formatViewCount.ts`](https://github.com/finditem/fi-fe-core/blob/develop/src/utils/formatViewCount/formatViewCount.ts) (View count), [`src/utils/formatYmd/formatYmd.ts`](https://github.com/finditem/fi-fe-core/blob/develop/src/utils/formatYmd/formatYmd.ts) (Date string)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_finditem(("Finditem frontend"))
node_utils_entry["Utility exports<br/>[index.ts]"]
node_format_capped["Capped number"]
node_format_views["View count<br/>[formatViewCount.ts]"]
node_format_ymd["Date string<br/>[formatYmd.ts]"]
node_format_ymd_label["Date label<br/>[formatYmdLabel.ts]"]
node_distance["Geo distance"]
node_normalize_enum["Enum normalizer"]
node_parse_number["Number parser<br/>[parseNumber.ts]"]
node_parse_ymd["Date parser<br/>[parseYmd.ts]"]
node_retry_controller["Retry scheduler"]
node_react_entry["React entry<br/>[index.ts]"]
node_store_entry["Store entry<br/>[index.ts]"]
node_api_entry["API entry<br/>[index.ts]"]
node_next_entry["Next entry<br/>[index.ts]"]
node_mocks_entry["Mocks entry<br/>[index.ts]"]

node_utils_entry -->|"re-exports"| node_format_capped
node_utils_entry -->|"re-exports"| node_format_views
node_utils_entry -->|"re-exports"| node_format_ymd
node_utils_entry -->|"re-exports"| node_format_ymd_label
node_utils_entry -->|"re-exports"| node_distance
node_utils_entry -->|"re-exports"| node_normalize_enum
node_utils_entry -->|"re-exports"| node_parse_number
node_utils_entry -->|"re-exports"| node_parse_ymd
node_utils_entry -->|"re-exports"| node_retry_controller

click node_utils_entry "https://github.com/finditem/fi-fe-core/blob/develop/src/utils/index.ts"
click node_format_capped "https://github.com/finditem/fi-fe-core/blob/develop/src/utils/formatCappedNumber/formatCappedNumber.ts"
click node_format_views "https://github.com/finditem/fi-fe-core/blob/develop/src/utils/formatViewCount/formatViewCount.ts"
click node_format_ymd "https://github.com/finditem/fi-fe-core/blob/develop/src/utils/formatYmd/formatYmd.ts"
click node_format_ymd_label "https://github.com/finditem/fi-fe-core/blob/develop/src/utils/formatYmdLabel/formatYmdLabel.ts"
click node_distance "https://github.com/finditem/fi-fe-core/blob/develop/src/utils/getDistanceMeters/getDistanceMeters.ts"
click node_normalize_enum "https://github.com/finditem/fi-fe-core/blob/develop/src/utils/normalizeEnumValue/normalizeEnumValue.ts"
click node_parse_number "https://github.com/finditem/fi-fe-core/blob/develop/src/utils/parseNumber/parseNumber.ts"
click node_parse_ymd "https://github.com/finditem/fi-fe-core/blob/develop/src/utils/parseYmd/parseYmd.ts"
click node_retry_controller "https://github.com/finditem/fi-fe-core/blob/develop/src/utils/retryBackoffController/retryBackoffController.ts"
click node_react_entry "https://github.com/finditem/fi-fe-core/blob/develop/src/react/index.ts"
click node_store_entry "https://github.com/finditem/fi-fe-core/blob/develop/src/store/index.ts"
click node_api_entry "https://github.com/finditem/fi-fe-core/blob/develop/src/api/index.ts"
click node_next_entry "https://github.com/finditem/fi-fe-core/blob/develop/src/next/index.ts"
click node_mocks_entry "https://github.com/finditem/fi-fe-core/blob/develop/src/mocks/index.ts"

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_finditem,node_format_views toneBlue
class node_utils_entry,node_format_capped,node_format_ymd,node_format_ymd_label,node_distance,node_normalize_enum,node_parse_number,node_parse_ymd,node_react_entry,node_store_entry,node_next_entry,node_mocks_entry toneTeal
class node_retry_controller toneRose
class node_api_entry toneMint
```

## Components

### Other components

- **Finditem frontend**
- [Utility exports](https://github.com/finditem/fi-fe-core/blob/develop/src/utils/index.ts): `src/utils/index.ts`
- [Capped number](https://github.com/finditem/fi-fe-core/blob/develop/src/utils/formatCappedNumber/formatCappedNumber.ts): `src/utils/formatCappedNumber/formatCappedNumber.ts`
- [View count](https://github.com/finditem/fi-fe-core/blob/develop/src/utils/formatViewCount/formatViewCount.ts): `src/utils/formatViewCount/formatViewCount.ts`
- [Date string](https://github.com/finditem/fi-fe-core/blob/develop/src/utils/formatYmd/formatYmd.ts): `src/utils/formatYmd/formatYmd.ts`
- [Date label](https://github.com/finditem/fi-fe-core/blob/develop/src/utils/formatYmdLabel/formatYmdLabel.ts): `src/utils/formatYmdLabel/formatYmdLabel.ts`
- [Geo distance](https://github.com/finditem/fi-fe-core/blob/develop/src/utils/getDistanceMeters/getDistanceMeters.ts): `src/utils/getDistanceMeters/getDistanceMeters.ts`
- [Enum normalizer](https://github.com/finditem/fi-fe-core/blob/develop/src/utils/normalizeEnumValue/normalizeEnumValue.ts): `src/utils/normalizeEnumValue/normalizeEnumValue.ts`
- [Number parser](https://github.com/finditem/fi-fe-core/blob/develop/src/utils/parseNumber/parseNumber.ts): `src/utils/parseNumber/parseNumber.ts`
- [Date parser](https://github.com/finditem/fi-fe-core/blob/develop/src/utils/parseYmd/parseYmd.ts): `src/utils/parseYmd/parseYmd.ts`
- [Retry scheduler](https://github.com/finditem/fi-fe-core/blob/develop/src/utils/retryBackoffController/retryBackoffController.ts): `src/utils/retryBackoffController/retryBackoffController.ts`
- [React entry](https://github.com/finditem/fi-fe-core/blob/develop/src/react/index.ts): `src/react/index.ts`
- [Store entry](https://github.com/finditem/fi-fe-core/blob/develop/src/store/index.ts): `src/store/index.ts`
- [API entry](https://github.com/finditem/fi-fe-core/blob/develop/src/api/index.ts): `src/api/index.ts`
- [Next entry](https://github.com/finditem/fi-fe-core/blob/develop/src/next/index.ts): `src/next/index.ts`
- [Mocks entry](https://github.com/finditem/fi-fe-core/blob/develop/src/mocks/index.ts): `src/mocks/index.ts`

## Connections

- Utility exports → Capped number: re-exports (evidence: `src/utils/index.ts`)
- Utility exports → View count: re-exports (evidence: `src/utils/index.ts`)
- Utility exports → Date string: re-exports (evidence: `src/utils/index.ts`)
- Utility exports → Date label: re-exports (evidence: `src/utils/index.ts`)
- Utility exports → Geo distance: re-exports (evidence: `src/utils/index.ts`)
- Utility exports → Enum normalizer: re-exports (evidence: `src/utils/index.ts`)
- Utility exports → Number parser: re-exports (evidence: `src/utils/index.ts`)
- Utility exports → Date parser: re-exports (evidence: `src/utils/index.ts`)
- Utility exports → Retry scheduler: re-exports (evidence: `src/utils/index.ts`)
