Libraries Overview
The LSSM ecosystem provides a comprehensive set of TypeScript libraries for building modern web and mobile applications. All libraries are designed to work together seamlessly while remaining modular and independently useful.
Core Libraries
AI-Native OperationsFeatured
@lssm/lib.ai-agent
Agent specs, runner, memory, and approval workflow for safe AI copilots.
@lssm/lib.support-bot
Classification, RAG resolver, auto-responder, and performance loop for L1 automation.
@lssm/lib.content-gen
Blog, landing, email, social, and SEO generators powered by ContentBriefs.
@lssm/lib.analytics
Funnels, cohorts, churn scoring, and hypothesis generation without a warehouse.
@lssm/lib.growth
Experiment registry, runner, tracker, and stats engine for deterministic A/B tests.
@lssm/lib.design-system
Now includes ApprovalQueue + AgentMonitor for human-in-the-loop decisions.
Personalization & CustomizationFeatured
@lssm/lib.personalization
Track behavior, analyze unused UI, and feed overlay/workflow adapters.
@lssm/lib.overlay-engine
Signed overlays with validator, registry, runtime engine, and React hooks.
@lssm/lib.workflow-composer
Tenant-aware workflow extensions with step injection helpers.
UI Libraries
@lssm/lib.ui-kit
Universal UI components for React Native and Web, built on NativeWind and @rn-primitives.
@lssm/lib.design-system
High-level design system components, patterns, and layouts. Built on top of ui-kit.
@lssm/lib.accessibility
Accessibility primitives for WCAG compliance: skip links, live regions, focus management, and more.
Data & Backend
@lssm/app.cli-database
Prisma wrapper and CLI for schema management
@lssm/lib.bus
Type-safe event bus for in-memory and distributed events
@lssm/lib.logger
Structured logging optimized for Bun with Elysia integration
GraphQL
@lssm/lib.graphql-core
Shared Pothos builder with plugins
@lssm/lib.graphql-prisma
Prisma integration for Pothos schemas
@lssm/lib.graphql-federation
Apollo Federation support for Pothos
Philosophy
All LSSM libraries follow these principles:
- Type Safety First: Full TypeScript support with strict types.
- Modular: Use only what you need, tree-shake the rest.
- Platform Aware: Optimized for both Web and Native where applicable.
- Single Source of Truth: Avoid duplication between layers (REST, GraphQL, Zod).
- Developer Experience: Clear APIs, comprehensive docs, and helpful error messages.