Skip to content

loomantix/platform-oss

platform-oss

Reusable @loomantix/* infrastructure packages, published to public npm under Apache 2.0 with npm Trusted Publishing and provenance.

Packages

Package Purpose Install
@loomantix/mobile-crypto At-rest AES-256-GCM helpers for React Native + Expo. Wraps react-native-quick-crypto (cipher) and expo-secure-store (per-install master key). pnpm add @loomantix/mobile-crypto
@loomantix/web-crypto At-rest AES-256-GCM helpers for browsers. Native WebCrypto (cipher) + non-extractable CryptoKey in IndexedDB. Zero runtime dependencies. pnpm add @loomantix/web-crypto
@loomantix/logging Structured logging for NestJS backends. Pino + OpenTelemetry trace context, PHI-safe redaction + detector, pluggable event sink. pnpm add @loomantix/logging

API-compatibility note: @loomantix/mobile-crypto and @loomantix/web-crypto share the same surface (encryptString / decryptString / hasMagic / deleteKey) and the same wire format, so consumers can dispatch between the two at build time without rewriting call sites.

Install

pnpm add @loomantix/mobile-crypto
pnpm add @loomantix/web-crypto
pnpm add @loomantix/logging

Each package README documents package-specific peer dependencies and runtime assumptions.

Releases

Each package is independently versioned and tagged:

  • mobile-crypto-v<semver> → publishes @loomantix/mobile-crypto
  • web-crypto-v<semver> → publishes @loomantix/web-crypto
  • logging-v<semver> → publishes @loomantix/logging

Tags trigger package-specific publish workflows. Publishing uses npm Trusted Publishing (OIDC), so there is no long-lived NPM_TOKEN secret. Publish commands include --provenance to attach SLSA build attestations.

Development

pnpm install
pnpm typecheck
pnpm lint
pnpm test
pnpm build

Each package has its own tsconfig.json, tsup.config.ts, and vitest.config.ts. The root provides the workspace, the prettier/eslint/commitlint setup, and the shared tsconfig.base.json.

Contributing

See CONTRIBUTING.md. Every commit must be signed off (DCO).

Agent sessions should also read AGENTS.md before making changes.

License

Apache 2.0 — see LICENSE and NOTICE.

Reporting security vulnerabilities: see SECURITY.md.

About

Reusable @loomantix/* infrastructure packages: mobile-crypto, web-crypto, logging

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors