Skip to content

Utility

This section documents shared utilities, algorithms, and services used across the application. Understanding these will help you navigate the codebase and follow established patterns.

Core

Core services provide foundational system checks and algorithms used across the entire application. These are the building blocks that other services depend on.

PageDescription
Identifier SetupCentralized state checks — isSetup(), seeder(), initial()
LocationGeographic location services and country detection
AssistantChatbot and NLP pipeline with intent matching

Transform

Transform utilities handle data conversion and normalization — transforming raw data into standardized formats for storage and display.

PageDescription
AssetFile and media storage abstraction (local disk, ImageKit)
LocalizationMulti-language field handling via HasLocalization trait
ContactEncrypted contact storage via HasContact trait

Generate

Generate services produce output artifacts — codes, tokens, and barcodes used across the system.

PageDescription
OTPOne-time password generation and verification
CodegenBarcode and QR code generation

Audit

Audit utilities provide tracking, logging, and observability — recording who did what and when.

PageDescription
LogAutomatic activity logging via HasLog trait

Each utility follows a consistent interface pattern. Read the individual pages for method signatures and usage examples.