Headless chat SDK · TypeScript
Build the chat experience. We'll handle the wiring.
Framework-neutral runtime for streaming, tools, auth, transport, and typed message parts — designed so your team owns every pixel while agents and developers build against the same contracts.
Install in your project
Prototype tarball · zero credentialscurl -L -O https://gecx-sdk-portal.vercel.app/downloads/gecx-chat-0.1.0-prototype.tgzpnpm add ./gecx-chat-0.1.0-prototype.tgzThe tarball is npm-format and works with pnpm, npm, yarn, or bun. Download gecx-chat-0.1.0-prototype.tgz.
Send your first message
Mock transport · No serverimport { createChatClient } from 'gecx-chat';
import { createMockTransport } from 'gecx-chat/testing';
const client = createChatClient({
transport: createMockTransport(),
});
const session = await client.createSession();
const { messages } = await session.send('Hello!');
console.log(messages);The mental model
Concepts worth ten minutes
Skim these before writing custom transports, tools, renderers, or agent workflows.
Concept
Architecture
concepts / architecture
Concept
Messages & Parts
concepts / messages and parts
Concept
Sessions & Lifecycle
concepts / sessions and lifecycle
Concept
Transports
concepts / transports
Concept
Auth & Security
concepts / auth and security
Concept
Permissions
concepts / permissions
Concept
Voice and multimodal
concepts / voice
Concept
Agent Graphs
concepts / agents
Concept
A2UI Catalog
concepts / a2ui catalog
How-to guides
Task-oriented walkthroughs
Practical paths for the flows teams ask for first: React UI, tools, A2UI, and governance.
Machine-readable contracts
JSON Schemas
Hand these 21 JSON Schemas to AI coding agents, validators, or contract tests when you need the public surface to stay precise.
a2ui
a2ui.schema.json
agent-graph
agent-graph.schema.json
computer-use
computer-use.schema.json
config
config.schema.json
errors
errors.schema.json
eval-config
eval-config.schema.json
eval-report
eval-report.schema.json
eval-scenario
eval-scenario.schema.json
events
events.schema.json
governance
governance.schema.json
identity
identity.schema.json
memory
memory.schema.json
messages
messages.schema.json
permissions
permissions.schema.json
product-analytics
product-analytics.schema.json
rich-content
rich-content.schema.json
tools
tools.schema.json
transport
transport.schema.json
ui-catalog-manifest
ui-catalog-manifest.schema.json
ui-catalog-registry
ui-catalog-registry.schema.json
walkthrough
walkthrough.schema.json
Drop-in modules
Recipes
Pre-built components and integrations you can copy into your project with pnpm exec gecx add <id>.
ux
Streaming indicators
Typing, progress, and stop affordances for streaming chat.
ux
Tool call cards
Inline status cards for tool execution and approval states.
rich content
Citation previews
Accessible citation preview renderer.
rich content
Product carousel
Swipe-friendly product carousel renderer for commerce chats.
ux
Suggestion chips
Tappable follow-up suggestion chips.
behavior
Accessibility controls
Focus return, reduced-motion, and keyboard control helpers.
One paste, and your agent is up to speed.
The portal serves llms.txt (short summary) and llms-full.txt (complete context bundle) tailored for Claude Code, Codex, Cursor, and Antigravity. Pair them with the JSON Schemas and the SDK tarball so an agent can build a mock-first integration without guessing at the API.