Barrel export file that re-exports all public API symbols from the NATS messaging module's submodules into a single entry point. ## Key Components | Export Source | Description | |---|---| | `./nats` | Core NATS client utilities and types | | `./shared-connection` | Shared/singleton NATS connection management | | `./nats-provider` | NATS provider setup and configuration | | `./use-nats-subscription` | Composable for subscribing to NATS subjects | ## Usage Example ```typescript // Import everything from a single entry point import { createNatsConnection, sharedConnection, NatsProvider, useNatsSubscription, } from '@openframe/nats' // Subscribe to a subject using the composable const { messages, unsubscribe } = useNatsSubscription('msp.tickets.>') // Use the shared connection directly const nc = await sharedConnection() await nc.publish('msp.events.created', JSON.stringify({ id: 42 })) ``` ## Notes - Import from this index rather than individual submodules to avoid internal path coupling. - Tree-shaking remains effective — bundlers resolve each `export *` to its originating module. ## Source [`index.ts`](https://github.com/flamingo-stack/openframe-oss-lib/blob/main/index.ts)