Data utilities
The data utilities enable you to manage data stores, focusing on an in-memory database implementation. This module supports basic CRUD operations and offers seamless integration with TypeScript, providing strong type safety and event-driven features for enhanced interaction.
Data-mapping utilities
These utilities enable you to convert from one data representation to another within an application, with a particular focus on transforming server row data. They offer a systematic approach to managing data conversion between Data Transfer Objects (DTOs) and entities, ensuring consistency and maintainability.
Decorators utilities
You can use the decorator utilities to enhance component behaviour and development efficiency within TypeScript projects. Specifically, the renderOnChange decorator automates the re-rendering process of components upon property changes, using the Genesis framework for web development.
Environment utilities
The environment utilities enable you to manage and access environment-specific settings and variables. This enables you to configure application behaviour based on the current environment. This category includes utilities for identifying the development environment and securely accessing environment variables.
Error utilities
Error utilities provide a sophisticated system for managing errors within your application. Using TypeScript interfaces and types, they provide a structured approach to recording, accessing, and logging errors.
Formatting utilities
Formatting utilities provide functions for parsing and formatting numbers and dates, ensuring that your application can accurately process and display data in user-friendly formats.
Logger utility
These advanced logging functionalities extend the capabilities of the Consola logger. Together, this gives you structured and versatile logging options suitable for various development needs, from debugging to production monitoring.
Mixin utilities
The mixins category provides specialized functionality that can be mixed into Genesis elements to enhance their capabilities and facilitate common patterns used within applications.
Observer utilities
There are utilities for creating event observers and handling element visibility changes, facilitating the subscription to and publication of custom events, and responding to changes in element visibility.
Resource utilities
Resource utilities facilitate the classification of resources into two distinct types: local and remote. This distinction is essential for handling resources differently based on their origin. It can be used to enhance the flexibility and robustness of resource management within your application.
Serializer utilities
This contains a comprehensive JSON serialization and deserialization solution, designed to support complex data structures, including those involving big integers and custom object types, ensuring robust and flexible handling of JSON data.
Styles utilities
The platform provides a comprehensive suite of utilities and components for dynamic style management, including CSS rule insertion, font-face loading, and the application of styles to custom elements.
Utilities
The Genesis Framework includes various utility functions to facilitate common operations within web applications. These utilities are designed to enhance the development process, making it more efficient and streamlined.
Utility methods
The @genesislcap/foundation-utils package provides a collection of utility services and helpers designed to simplify common development tasks within Genesis applications. It aims to enhance productivity by offering reusable solutions for patterns and problems encountered across different projects.
UUID utilities
UUID utilities provide a robust solution for generating UUIDs within your application, offering both immediate and remote generation methods, with an optional logging feature for development and debugging purposes.
Window utilities
These utilities enable you to control interaction with the browser window and to ascertain the application's runtime environment, enhancing the adaptability and user experience of web applications.