🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@fetchmux/sdk

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

@fetchmux/sdk

Typed TypeScript client for the FetchMux retrieval router: one search contract, budget and deadline inputs, route receipts.

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
18
-81.44%
Maintainers
1
Weekly downloads
 
Created
Source

@fetchmux/sdk

Typed TypeScript client for FetchMux, the self-hosted retrieval router for AI agents. One request shape for web search and page retrieval; hard per-request cost and deadline limits; a route receipt on every response.

import { FetchMux } from "@fetchmux/sdk";

const client = new FetchMux({
  baseUrl: "http://127.0.0.1:8787/",
  apiKey: process.env.FETCHMUX_API_KEY,
  fetch: globalThis.fetch.bind(globalThis),
});

const response = await client.search({
  query: "latest stable Node.js release",
  task: "fresh_facts",
  maxCostUsd: 0.02,
  maxLatencyMs: 8000,
});

console.log(response.route.selectedProvider, response.route.reasonCodes);

Requires a running FetchMux gateway. Full documentation, the OpenAPI contract, and the gateway source are at github.com/krutftw/fetchmux.

Apache-2.0.

Keywords

fetchmux

FAQs

Package last updated on 23 Jul 2026

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