This directory is for scripts that are either front-end scripts called by HTML interfaces, or are simple string manipulators called by the backend.

Re: /controllers and /utils

In this application, we have different directories for /controllers and /utils:

AspectControllerUtil
PurposeOrchestrates business logic and workflowsProvides small, stateless helper functions
ScopeHigh-level, often involves services or side effectsLow-level, narrow in focus (e.g., string, date ops)
StateWorks with application or user-specific dataStateless – input in, output out
OutputOften returns domain-specific result objectsReturns generic, context-agnostic values
Example NamessyncDataToNotion, generateUserReportformatDate, slugify, chunkArray, debounce
Depends OnServices, repositories, other controllersPure logic, no external dependencies (ideally)