
Security News
npm v12 Ships With Install Scripts Off by Default, Begins Deprecating 2FA-Bypass Tokens
npm v12 is generally available, turning install scripts off by default and beginning the deprecation of 2FA-bypass publishing tokens.
@ixo/oracles-client-sdk
Advanced tools
Client SDK for interacting with IXO Oracles, designed for React applications
Production-ready React SDK for building AI-powered applications with IXO Oracles
npm install @ixo/oracles-client-sdk
# or
pnpm add @ixo/oracles-client-sdk
# or
yarn add @ixo/oracles-client-sdk
import {
OraclesProvider,
useChat,
useOracleSessions,
renderMessageContent,
} from '@ixo/oracles-client-sdk';
function App() {
return (
<OraclesProvider
initialWallet={{
address: 'ixo1...',
did: 'did:ixo:entity:...',
matrix: { accessToken: 'syt_...' },
}}
transactSignX={async (messages, memo) => {
// Handle blockchain transactions
return undefined;
}}
>
<ChatInterface />
</OraclesProvider>
);
}
function ChatInterface() {
const oracleDid = 'did:ixo:entity:oracle-id';
// Create or get session
const { createSession, sessions } = useOracleSessions(oracleDid);
const sessionId = sessions?.[0]?.sessionId;
// Chat functionality
const { messages, sendMessage, isSending } = useChat({
oracleDid,
sessionId: sessionId || '',
onPaymentRequiredError: (claimIds) => {
console.log('Payment required:', claimIds);
},
});
return (
<div className="chat-container">
{/* Create session button */}
<button onClick={() => createSession()}>New Chat</button>
{/* Messages */}
<div className="messages">
{messages.map((msg) => (
<div key={msg.id} className={msg.type}>
{/* Render message content (handles text and components) */}
{renderMessageContent(msg.content)}
</div>
))}
</div>
{/* Input */}
<form
onSubmit={(e) => {
e.preventDefault();
const input = e.currentTarget.message;
sendMessage(input.value);
input.value = '';
}}
>
<input name="message" placeholder="Ask anything..." />
<button type="submit" disabled={isSending}>
{isSending ? 'Sending...' : 'Send'}
</button>
</form>
</div>
);
}
The SDK stores messages as plain data (not React elements) for optimal performance. Use renderMessageContent to transform messages into UI:
import { renderMessageContent } from '@ixo/oracles-client-sdk';
// Handles strings, custom components, and mixed content
{
messages.map((msg) => (
<div key={msg.id}>{renderMessageContent(msg.content, uiComponents)}</div>
));
}
Register custom components for rich interactions:
const uiComponents = {
WeatherWidget: (props) => (
<div>
<h3>Weather in {props.city}</h3>
<p>{props.temperature}°C</p>
</div>
),
PriceChart: (props) => <Chart data={props.data} />,
};
const { messages } = useChat({
oracleDid,
sessionId,
uiComponents, // Pass to useChat
onPaymentRequiredError: () => {},
});
Messages stream in real-time with optimized performance:
requestAnimationFrame to batch multiple rapid updates into single render cycles, preventing UI stuttering during high-frequency streamingLive agent calls are lazy loaded to keep your bundle small:
// Import separately to avoid loading ~500KB unless needed
import { useLiveAgent } from '@ixo/oracles-client-sdk/live-agent';
useChat - Real-time chat with streaminguseOracleSessions - Session managementuseContractOracle - Payment and authorizationuseMemoryEngine - Matrix room management and memory engine setupuseLiveAgent - Voice/video calls (separate bundle)OraclesProvider - Required context providerrenderMessageContent - Message renderer utilityIMessage - Message structureMessageContent - Content types (string | metadata | array)IComponentMetadata - Custom component metadataIChatSession - Session infoFully typed with comprehensive interfaces:
import type {
IMessage,
MessageContent,
IChatSession,
UIComponentProps,
} from '@ixo/oracles-client-sdk';
Licensed under the terms specified in License.txt
Built with ❤️ by the IXO team
FAQs
Client SDK for interacting with QiForge oracles, designed for React applications
The npm package @ixo/oracles-client-sdk receives a total of 156 weekly downloads. As such, @ixo/oracles-client-sdk popularity was classified as not popular.
We found that @ixo/oracles-client-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.

Security News
npm v12 is generally available, turning install scripts off by default and beginning the deprecation of 2FA-bypass publishing tokens.

Research
/Security News
Socket tracks the activity as Operation “Muck and Load”: a threat actor uses commit-farming workflows, public dead drops, and protected archives to stage Windows RAT and infostealer malware.

Security News
pnpm 11.10 hardens registry auth to block token redirection, tightens pack-app and deploy, and makes the Rust port (v12) installable.