Skip to Content
PackagesOverview

Packages

All shared packages live under packages/ and use the @loop/* namespace. This section provides reference documentation for each package.

Package Index

Foundational

PackagePurpose
@loop/coreResult monad, error types, logging, distributed locks, rate limiting, circuit breaker, caching
@loop/sharedZod schemas, Drizzle ORM, RBAC, SSO, types, constants, config
@loop/databaseSupabase client, repositories, knowledge base

Infrastructure

PackagePurpose
@loop/cmsPayload CMS collections, access rules, hooks, Clerk auth
@loop/honoHono middleware, response helpers, checkout tokens
@loop/authClerk authentication for Next.js apps
@loop/eventsTrigger.dev event definitions and emitter

Health & Clinical

PackagePurpose
@loop/health-dataBiomarker ranges, peptide catalog, panels, synonyms
@loop/protocol-enginePeptide dosing, reconstitution, cycle management
@loop/contraindicationsPeptide safety validation

Commerce & Payments

PackagePurpose
@loop/commerceCart, checkout, payment engine, subscription lifecycle, dunning
@loop/bigcommerceBigCommerce API client, webhooks, product catalog mapping
@loop/notificationsEmail templates (React Email), Resend + Klaviyo clients

AI & Integrations

PackagePurpose
@loop/aiAI provider abstraction (OpenAI, Anthropic)
@loop/streamGetStream activity feeds and chat
@loop/rimoRimo Health SSO and webhook integration

Apps Using These Packages

Loop apps consume these packages to build customer-facing applications, admin tools, and backend services. See the Applications section for detailed app documentation and architecture guides.

Quick links:

See Also

These packages are documented in their own sections: