
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@cxai/stream
Advanced tools
## Overview `@cxai/stream` is a powerful TypeScript streaming library designed for advanced streaming capabilities, with a focus on AI-driven applications, state management, and real-time data processing.
@cxai/stream is a powerful TypeScript streaming library designed for advanced streaming capabilities, with a focus on AI-driven applications, state management, and real-time data processing.
npm install @cxai/stream
yjsopenaiStream text and objects from AI models with advanced configuration options.
import { streamText } from '@cxai/stream/ai';
const result = await streamText({
model: openaiGP4o(),
prompt: "Generate a creative idea"
});
Create observable actors and manage complex state transitions.
import { fromAIEventStream } from '@cxai/stream/xstate';
const machine = createMachine({
// Machine configuration with streaming support
});
Advanced async iterator manipulation and cloning.
import { cloneable } from '@cxai/stream/iterator';
const clonableStream = cloneable(originalStream);
Convert async iterators to SSE-compatible streams.
import { sseReadableStream } from '@cxai/stream/iterator/sse';
const sseStream = sseReadableStream(asyncIterator);
# Install dependencies
pnpm install
# Build the library
pnpm run build
# Run tests
pnpm test
ISC License
yjs: Collaborative editing support (optional)openai: AI model streaming (optional)FAQs
## Overview `@cxai/stream` is a powerful TypeScript streaming library designed for advanced streaming capabilities, with a focus on AI-driven applications, state management, and real-time data processing.
We found that @cxai/stream demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.