@captra-ai/server
v0.13.0
Published
Framework-neutral HTTP handler for Captra applications.
Readme
@captra-ai/server
Framework-neutral HTTP transport for Captra runtimes, including typed execution, SSE streaming, approvals, cancellation, replay, CORS, authentication, and rate limiting.
npm install @captra-ai/server @captra-ai/coreimport { createCaptraHandler } from '@captra-ai/server'
const handler = createCaptraHandler(runtime, {
auth: async request => authenticate(request),
onError: ({ requestId, error }) => logger.error({ requestId, error }),
})Public responses and SSE events use sanitized messages and correlation IDs. Original exceptions are sent only to the optional server-side onError observer.
Adapters are available from @captra-ai/server/node and @captra-ai/server/express. Keep provider keys and database credentials on the server.
Server documentation · GitHub · MIT
