Socket
Book a DemoInstallSign in
Socket

ai.matey.frontend

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ai.matey.frontend

Frontend adapters for AI Matey - Universal AI Adapter System

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

ai.matey.frontend

Frontend adapters for AI Matey - Universal AI Adapter System.

Part of the ai.matey monorepo.

Installation

npm install ai.matey.frontend

Overview

Frontend adapters convert provider-specific request formats to the Universal IR (Intermediate Representation) format used internally by AI Matey. This allows your application to accept requests in any provider's format and route them to any backend.

Included Adapters

  • OpenAI - OpenAI Chat Completions API format
  • Anthropic - Anthropic Messages API format
  • Gemini - Google Gemini API format
  • Mistral - Mistral API format
  • Ollama - Ollama API format
  • Chrome AI - Chrome AI format
  • Generic - Passthrough adapter for IR format

Usage

import { OpenAIFrontendAdapter, AnthropicFrontendAdapter } from 'ai.matey.frontend';
import { Bridge } from 'ai.matey.core';

// Accept OpenAI-formatted requests
const openAIFrontend = new OpenAIFrontendAdapter();

// Accept Anthropic-formatted requests
const anthropicFrontend = new AnthropicFrontendAdapter();

// Create a bridge that accepts OpenAI format
const bridge = new Bridge({
  frontend: openAIFrontend,
  backend: yourBackend,
});

Generic Adapter

The Generic adapter passes IR format directly without conversion:

import { GenericFrontendAdapter, createGenericFrontend } from 'ai.matey.frontend';

const frontend = createGenericFrontend();

API Reference

See the TypeScript definitions for detailed API documentation.

License

MIT - see LICENSE for details.

Keywords

ai

FAQs

Package last updated on 29 Nov 2025

Did you know?

Socket

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.

Install

Related posts