Scan your whole stack
From OX Research Newsroom
Are you using @johnhenry/aimatey-backend?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.10.2
@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.
| Version | Published | Status |
|---|---|---|
| 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 |
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.
The publisher’s own README, as collected from the registry.
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.
npm install @johnhenry/aimatey-backend
This package includes adapters for 30 chat providers, plus 1 typed-decision provider:
/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)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.
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'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')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 envelopeOpenRouterBackendAdapter.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.costOpenAIBackendAdapter.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 questionsPerplexityBackendAdapter.decide() against <baseURL>/v1/decisions with pplx-decider-v1-27b (default) and images (field name and encoding unverified)InceptionBackendAdapter.decide(); the native endpoint is unverified, so it assumes <baseURL>/systemone; works through OpenRouter todayTogetherAIBackendAdapter.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.
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,
});
You can also import specific providers directly:
import { OpenAIBackendAdapter } from '@johnhenry/aimatey-backend/openai';
import { AnthropicBackendAdapter } from '@johnhenry/aimatey-backend/anthropic';
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.
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.
See the TypeScript definitions for detailed API documentation.
MIT - see LICENSE for details.
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.