Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@johnhenry/aimatey-backend

Latest version: v0.10.2

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
npm package Publisher: johnhenry
0 Stars
0 Forks
14 Versions
1.7K Downloads
TypeScript Repo language

Scan summary

@johnhenry/aimatey-backend was last scanned on 25 Nov 2026 at version 0.10.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 14 versions; the latest was published on 25 Nov 2026.
  • Findings: No rules fired in version 0.10.2.
  • Downloads: 1,687 downloads.

Versions

14 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.10.2 LATEST 25 Nov 2026 No rules fired
0.10.1 31 Oct 2026 No rules fired
0.10.0 28 Oct 2026 No rules fired
0.9.0 23 Oct 2026 Not shown
0.8.0 23 Oct 2026 Not shown

No rules fired in 0.10.2

Findings

Findings for v0.10.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.10.2; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@johnhenry/aimatey-backend

npm version license

Note: Previously published as aimatey-backend@0.9.0.

Server-side backend provider adapters for Aimatey - Universal AI Adapter System.

Part of the aimatey monorepo.

Installation

npm install @johnhenry/aimatey-backend

Included Providers

This package includes adapters for 30 chat providers, plus 1 typed-decision provider:

Commercial APIs
  • OpenAI - GPT-5.6 family
  • Anthropic - Claude Sonnet 5, Claude Opus 4.7+
  • Google Gemini - Gemini 3.6 Flash and other current-generation Gemini models
  • Mistral AI - Mistral Large, Medium, Small
  • Cohere - Command, Command-Light, Command-R
  • xAI - Grok models
  • AI21 Labs - Jurassic models
  • Moonshot AI - Kimi models with long-context support (up to 128K)
  • Inception Labs - Mercury diffusion language models
  • Alibaba Cloud Model Studio (DashScope) - Qwen model family, OpenAI-compatible mode
Cloud Providers
  • AWS Bedrock - Amazon's managed AI service
  • Azure OpenAI - Microsoft's OpenAI deployment
  • Cloudflare Workers AI - Edge AI deployment
Fast Inference
  • Groq - Ultra-fast LLaMA, Mixtral inference
  • Fireworks AI - Fast inference platform
  • Together AI - Open model hosting
  • Anyscale - Fast endpoints
  • DeepInfra - High-performance inference
  • Cerebras - AI supercomputer inference
  • SambaNova - High-throughput RDU-accelerated inference
Aggregators
  • OpenRouter - Multi-provider routing and fallback
  • Perplexity - Search-augmented models
  • GitHub Models - Free access to OpenAI, Meta, DeepSeek, Mistral & Microsoft models via any GitHub account
Specialized
  • Replicate - ML model deployment
  • NVIDIA NIM - NVIDIA inference microservices
  • Hugging Face - Open model inference
  • DeepSeek - Research models
Local/Development
  • Ollama - Local model hosting; tool calling via /api/chat tools / tool_calls (needs a tool-capable model; toolChoice: 'none' withholds tools, 'required'/forced names warn parameter-unsupported; streamed tool calls arrive whole, not as fragments)
  • LM Studio - Local desktop inference
  • OmniRoute - Self-hosted gateway fronting 290+ providers (90+ free), no API key required by default
Typed-Decision Models

Not chat: given a state and typed questions (choice/score/noul), these answer with calibrated probabilities in a single forward pass -- see decide() on BackendAdapter and Bridge.decide(), not execute()/ chat(). A backend in this category implements only metadata and decide(); fromIR/toIR/execute/executeStream are all optional precisely so it isn't forced to fake a chat capability it doesn't have.

  • TypeSafe (Jev) - "System One" typed decisions, 70-500ms latency, input-token-only pricing
  • Ollama - decide() on the same OllamaBackendAdapter that chats: POST /v1/systemone (Ollama 0.35+) against nimble, tev1, and other decision models; base64 images, parameters.custom.keepAlive; listModels() marks decision models with metadata.kind: 'decision'
  • SystemOne (generic) - SystemOneBackendAdapter, decision-only, for any server that speaks System One: self-hosted Kev, Strands Decider, laya[serve] and Nimble servers, Vercel AI Gateway (baseURL: 'https://ai-gateway.vercel.sh/typesafe/v1'), OpenRouter, Cloudflare Clef. Pick a wire dialect ('systemone' default, 'openrouter', 'vercel-evaluate', and 'cloudflare')
  • Cloudflare (Clef) - CloudflareBackendAdapter.decide() against Workers AI POST .../accounts/<id>/ai/run/@cf/cloudflare/{clef,clef-flash} (derived from accountId / an /ai/v1 baseURL; default clef-flash; @cf/cloudflare/clef aliases accepted, other models rejected). Response is unwrapped from Workers AI's result envelope
  • OpenRouter - OpenRouterBackendAdapter.decide() against /api/alpha/decisions (derived from baseURL; decisionsEndpoint: 'systemone' falls back to /api/v1/systemone). Routes to Jev, Kev and Mercury Decide; parameters.custom.provider / trace / session_id / user pass through; the response carries id, provider and usage.cost
  • OpenAI - OpenAIBackendAdapter.decide() against <baseURL>/decisions (OpenAI's Decisions API, preview; model gpt-6-luna). Not System One: input + a questions array of choice / predicate / score, answers matched by name, probabilities as { value, probability } arrays. Active on api.openai.com or with decisions: true; the OpenAI-compatible adapters (Groq, LM Studio, OmniRoute, ...) leave it off. Images go as data: URLs (a url source throws); an object state is sent as JSON text. The API enforces 2 to 255 choices, 2 to 10 levels, 200 questions
  • Perplexity - PerplexityBackendAdapter.decide() against <baseURL>/v1/decisions with pplx-decider-v1-27b (default) and images (field name and encoding unverified)
  • Inception (Mercury Decide) - InceptionBackendAdapter.decide(); the native endpoint is unverified, so it assumes <baseURL>/systemone; works through OpenRouter today
  • Together AI (Tev1) - TogetherAIBackendAdapter.decide() for together/Tev1-4B-experimental and together/Tev1-0.8B-experimental. Not System One: each question is one chat-completions call and the model answers a single letter A-X, so a request makes one call per question (4 at a time by default; parameters.custom.concurrency). Native for choice only, with 2 to 24 options (more throws), no images, $0.042 per 1M input tokens. noul and score are emulated on the same protocol with neutral option keys and each such answer carries a warning (decisionsEmulatedTypes: ['noul', 'score']). probabilities come from the first token's top_logprobs (softmax over the valid letters; letters outside the top 24 get 0) and confidence is 1 - H(p) / ln(n); if Together returns no logprobs the answer has neither, plus a warning.
Backend Endpoint Types Images Limits
Cloudflare /ai/run/@cf/cloudflare/{clef,clef-flash} choice, score, noul yes, 4 max (data URLs) 64 questions, 255 options, 10 levels, 64k state tokens
OpenRouter /api/alpha/decisions choice, score, noul no Jev's: 255 options, 10 levels, 32k state tokens
OpenAI /v1/decisions (own shape, not System One) choice, score, noul (predicate) yes (data: URLs only) 200 questions, 255 options, 10 levels (verified live)
Perplexity /v1/decisions choice, score, noul yes (unverified encoding) undeclared
Inception /systemone (unverified) choice, score, noul no undeclared
Together AI (Tev1) chat-completions letter protocol (not System One) choice native; noul/score emulated no 2-24 options
import { SystemOneBackendAdapter } from '@johnhenry/aimatey-backend';

const backend = new SystemOneBackendAdapter({
  baseURL: 'http://localhost:11434/v1', // any System One server
  defaultModel: 'tev1:0.8b',
  decisionImages: true,
});

All of these share one request builder / response parser (buildSystemOneRequest, parseSystemOneResponse, postSystemOne, decideViaSystemOne, and the SYSTEMONE_DIALECTS table), exported for adapters that need the same wire format.

Decision backends describe themselves through capabilities: decisionModels, decisionTypes (which of choice/score/noul they answer), decisionImages, and decisionLimits (maxQuestions, maxChoiceOptions, maxScoreLevels, maxStateTokens, maxImages). The TypeSafe adapter declares all three types, 255 options, 10 score levels, 32,000 state tokens and no images (images on a request are dropped with a capability-unsupported warning). A response carries usage.inputTokens, usage.outputTokens and usage.cost, plus id/provider when known, and the adapter throws if the provider leaves a question unanswered. Use validateDecisionResponse() from @johnhenry/aimatey-utils to check any decision response against its request.

For browser-compatible adapters (Chrome AI, Function, Mock), see @johnhenry/aimatey-backend-browser.

Usage

import { OpenAIBackendAdapter, AnthropicBackendAdapter } from '@johnhenry/aimatey-backend';

// Create an OpenAI backend
const openaiBackend = new OpenAIBackendAdapter({
  apiKey: process.env.OPENAI_API_KEY,
});

// Create an Anthropic backend
const anthropicBackend = new AnthropicBackendAdapter({
  apiKey: process.env.ANTHROPIC_API_KEY,
});

Subpath Imports

You can also import specific providers directly:

import { OpenAIBackendAdapter } from '@johnhenry/aimatey-backend/openai';
import { AnthropicBackendAdapter } from '@johnhenry/aimatey-backend/anthropic';

Structured Output

Set responseFormat on an IRChatRequest to get schema-constrained JSON output. OpenAI, Anthropic, and Gemini map it to their native structured-output mechanisms (response_format/output_config/responseSchema); every other backend falls back to prompt injection + best-effort JSON extraction. See docs/IR-FORMAT.md for the full support matrix and a request/response example.

Anthropic Sampling Parameters

Claude Opus 4.7+ and Sonnet 5 return an HTTP 400 if temperature/top_p/top_k are set to non-default values. AnthropicBackendAdapter detects these model families and omits the params automatically - no config needed, but don't rely on sampling-param overrides taking effect against these specific models.

API Reference

See the TypeScript definitions for detailed API documentation.

License

MIT - see LICENSE for details.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @johnhenry/aimatey-backend

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229