⚠️ DEPRECATED: This package is deprecated and no longer maintained. All functionality has been migrated to use@objectstack/specdirectly. Please remove this dependency from your projects.
If you are using @hotcrm/core, please migrate to @objectstack/spec:
- Remove
@hotcrm/corefrom your dependencies - Update imports to use
@objectstack/specdirectly - Use ObjectStack's built-in validation and type system
import { VERSION } from '@hotcrm/core';// Use @objectstack/spec for all type definitions and utilities
import { ObjectSchema } from '@objectstack/spec';This package was deprecated in favor of:
- Using
@objectstack/specdirectly for all type definitions - Removing unnecessary abstraction layers
- Simplifying the dependency tree
All HotCRM business packages now depend directly on @objectstack/spec and @objectstack/cli.
Original Documentation (Archived)
Shared core utilities and type helpers for HotCRM packages.
This package provides common utilities, type helpers, and shared dependencies used across all HotCRM business packages. It acts as a lightweight foundation layer for the HotCRM ecosystem.
Package Purpose: Shared utilities and type system integration
- zod-helper.ts: Zod schema utilities and type helpers for validation
- VERSION: Package version constant
This package provides shared dependencies:
@objectstack/spec- ObjectStack protocol specificationszod- TypeScript-first schema validation
import { VERSION } from '@hotcrm/core';
import { /* zod helpers */ } from '@hotcrm/core';
console.log('HotCRM Core Version:', VERSION);// The core package provides zod helpers for schema validation
// used across all HotCRM business packages
import { z } from 'zod';
// Core zod helpers available for validationThe @hotcrm/core package serves as:
- Shared Type System: Common TypeScript types and interfaces
- Utility Functions: Helper functions used across packages
- Dependency Management: Centralized version management of shared dependencies
- Validation Helpers: Zod schema utilities for data validation
All HotCRM business packages (@hotcrm/crm, @hotcrm/finance, @hotcrm/hr, @hotcrm/marketing, @hotcrm/products, @hotcrm/support) depend on @hotcrm/core for shared utilities and type definitions.
# Build the package
pnpm --filter @hotcrm/core build
# This package has no tests (utilities only)@hotcrm/core is intentionally kept minimal and lightweight. It provides only essential shared utilities without business logic. Business-specific functionality belongs in the respective business packages.
For the runtime engine and server infrastructure, see @hotcrm/server and @objectstack/runtime.