@hugex/shared

v1.0.1

Published

@hugex/shared — published from hx-base

Readme

@hx/shared

Shared constants, types, stores, and i18n configuration for the hx-base monorepo.

Overview

The shared package provides common data structures, state management, and internationalization settings used across the different applications (hx-admin, hx-ai, hx-auth, hx-dash). It ensures consistency in data representation and user experience.

Structure

  • constants/: Shared constants, such as AI model definitions (ai-models.ts).
  • i18n/: Internationalization configuration and locales (locales.ts, index.tsx).
  • stores/: Shared state management using Zustand or similar libraries (cookieStorage.ts, nav.ts, theme.ts).
  • types/: Shared TypeScript definitions for AI models, flow design, nodes, and events (ai-models-types.ts, flow-design-types.ts, flow-types.ts, node-types.ts, ora-event-types.ts).

Usage

This package is intended to be imported by both the frontend React applications and the Cloudflare Workers backend of the various applications in the monorepo.

License

Included with your HugeX deployment — install and use this package as documented in this README. Full terms are in the LICENSE file included in this npm package (also listed under License on this page).