Reference
Every export across all six entry points, generated from source.
Generated straight from @cosmoops/connect-sdk's TypeScript source and its
own doc comments — this can't drift from what actually ships, the way
hand-written prose can. Regenerated on every deploy.
Core
Types, ConnectError, and pure helpers. Isomorphic — no React, no
Node-only code.
Server
ConnectClient and createConnectHandler. Holds the API key — never
import this from browser code.
Next.js
The plug-and-play bridge: GET/POST, getConnectSession, the cookie
session store.
Client
React components and hooks. Holds no credential — calls your own origin.
UI
Page-composition primitives — shell, section, empty state. Presentational
and not "use client", so they render in a Server Component.
MCP
Your store declaration, derived into MCP tools. Holds the API key — never import this from browser code.
New to the SDK? Getting started is the faster way in — this section is for looking up a specific type or method once you're already integrating.