@morphism-systems/shared

v0.1.2

Published

Shared TypeScript utilities for the Morphism Systems monorepo.

Readme

@morphism-systems/shared

Shared TypeScript utilities for the Morphism Systems monorepo.

Install

npm install @morphism-systems/shared

Exports

| Path | Module | Purpose | |------|--------|---------| | . | index.ts | Re-exports | | ./ai | ai.ts | AI/LLM integration helpers | | ./csrf | csrf.ts | CSRF protection utilities | | ./encryption | encryption.ts | Encryption helpers | | ./rate-limit | rate-limit.ts | Rate limiting | | ./schemas | schemas.ts | Zod validation schemas | | ./storage | storage.ts | Storage provider recommendations, upload validation, and object-key helpers | | ./stripe | stripe.ts | Stripe payment integration | | ./supabase/server | supabase/server.ts | Supabase SSR client factory | | ./types | types.ts | Shared TypeScript types | | ./utils | utils.ts | General utilities (clsx, tailwind-merge) |

Usage

import { cn } from "@morphism-systems/shared/utils";
import { createClient } from "@morphism-systems/shared/supabase/server";

Development

npm run typecheck   # type-check
npm run test        # run tests

License

BUSL-1.1 — see LICENSE for details.