Skip to content

@privateaim/kit

Core utilities package providing cryptography, domain events, error handling, and shared TypeScript types for the entire PrivateAIM ecosystem.

Installation

bash
npm install @privateaim/kit

Usage

Crypto

typescript
import { createNanoID } from '@privateaim/kit';

const id = createNanoID();

Domain Events

typescript
import { DomainEventName } from '@privateaim/kit';

Error Handling

typescript
import { isClientError } from '@privateaim/kit';

API

Exports

ModuleDescription
cryptoCryptographic utilities (ID generation)
domainsShared domain type definitions
errorError types and helpers
domain-eventDomain event names and types
utilsGeneral utility functions
constantsShared constants
typesCore TypeScript types

Dependencies

  • @authup/kit — Authup base types
  • @authup/core-kit — Authup core types
  • @ebec/http — HTTP error types
  • nanoid — ID generation
  • validup — Validation utilities

Released under the Apache-2.0 License.