@xemahq/platform-common
v0.2.21
Published
Shared NestJS building blocks for Xema services — auth guards, response redaction, CORS configuration, and crypto helpers.
Readme
@xemahq/platform-common
Foundation utilities shared across services.
Overview
A grab-bag of cross-cutting framework utilities and NestJS decorators that many unrelated services need — encryption, event envelopes, request context, advisory locks, write policy, redaction, payload normalization, and more. It is domain-agnostic by design; pipeline and workflow types live in their own contracts packages, not here.
When to use it
- Use it when a service needs a shared, domain-agnostic helper or decorator rather than reinventing one.
Installation
pnpm add @xemahq/platform-commonUsage
import { omitUndefined } from '@xemahq/platform-common';
const clean = omitUndefined({ a: 1, b: undefined });Peer requirements
@nestjs/common,@nestjs/core,@nestjs/platform-express>= 10@nestjs/swagger>= 7rxjs>= 7
License
Apache-2.0 © Xema — xema.dev
