
Product
Introducing the Alert Details Page: A Better Way to Explore Alerts
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.
ai.matey.wrapper
Advanced tools
SDK wrappers for AI Matey - Use familiar SDK patterns with any provider
SDK wrappers and utilities for AI Matey - Universal AI Adapter System.
Part of the ai.matey monorepo.
npm install ai.matey.wrapper
This package provides SDK-compatible wrappers that let you use familiar SDK patterns (like OpenAI's or Anthropic's) with any AI Matey backend. It also includes IR-native chat utilities for direct usage.
import { OpenAI } from 'ai.matey.wrapper';
const client = new OpenAI({ backend: yourBackend });
const response = await client.chat.completions.create({
model: 'gpt-4',
messages: [{ role: 'user', content: 'Hello!' }],
});
import { Anthropic } from 'ai.matey.wrapper';
const client = new Anthropic({ backend: yourBackend });
const response = await client.messages.create({
model: 'claude-3-opus',
messages: [{ role: 'user', content: 'Hello!' }],
max_tokens: 1024,
});
import { Chat, createChat } from 'ai.matey.wrapper';
const chat = createChat({ backend: yourBackend });
// Send a message
const response = await chat.send('Hello!');
// Stream a response
for await (const chunk of chat.stream('Tell me a story')) {
process.stdout.write(chunk.delta);
}
import { collectStream, streamToText } from 'ai.matey.wrapper';
// Collect all chunks from a stream
const collected = await collectStream(stream);
// Convert stream to text
const text = await streamToText(stream);
See the TypeScript definitions for detailed API documentation.
MIT - see LICENSE for details.
FAQs
SDK wrappers for AI Matey - Use familiar SDK patterns with any provider
We found that ai.matey.wrapper 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's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.

Research
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.