@ywfe/carys-x-chat-core
v1.3.5
Published
Headless chat logic SDK for x-coder / Carys X
Keywords
Readme
@ywfe/carys-x-chat-core
Headless chat logic SDK for x-coder / Carys X.
Provides SSE streaming, message stores, tool-call tracking, sub-agent state, and React hooks for building custom chat UIs.
Compatible with: xcoder server >= 1.3.0
Install
pnpm add @ywfe/carys-x-chat-coreQuick start
import { useCarysXChat } from '@ywfe/carys-x-chat-core'
function MyChat() {
const { messages, sendMessage, isStreaming } = useCarysXChat({
endpoint: 'https://api.xcoder.example.com',
token: '...',
})
// render your own UI
}See @ywfe/carys-x-chat-widget for a drop-in React UI.
