npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@retinue/tools-search

v0.3.0

Published

Web-search provider adapters for a Retinue agent: Brave, Tavily, Serper and SearXNG behind one contract.

Readme

@retinue/tools-search

npm licence

Web-search providers for a Retinue agent. Brave, Tavily, Serper and self-hosted SearXNG — behind the one web_search tool the runtime already has.

This package exports no tools

That is the point. web_search exists in @retinue/agentkit and takes its provider as configuration, so five search vendors are five values of one parameter, not five tools. A model shown tavily_search, brave_search and serper_search would be choosing a vendor — which is your decision, not its.

Install

npm i @retinue/tools-search

Use

The provider is configuration. Hand it to the standard tool provider and web_search appears; hand it nothing and there is no web_search at all, rather than one that always answers "not configured".

import { createStandardToolProvider } from "@retinue/agentkit/tools";
import type { DelegatingToolDeps } from "@retinue/agentkit/tools";
import { tavilySearch } from "@retinue/tools-search";

// Your authorization policy, idempotency store and approval gate — see the getting-started guide.
declare const deps: DelegatingToolDeps;

const tools = createStandardToolProvider({
  deps,
  http: {},
  search: tavilySearch({ apiKey: process.env.TAVILY_API_KEY ?? "" }),
});

Switching provider is one import. Nothing else changes — not the tool, not the prompt, not the agent.

Providers

| Provider | Transport | Key goes | Notes | |---|---|---|---| | braveSearch | GET | X-Subscription-Token header | | | tavilySearch | POST | request body | depth: "advanced" costs more per query | | serperSearch | POST | X-API-KEY header | Google results | | searxngSearch | GET | no key | Self-hosted; baseUrl is required, because there is no public instance this package should send your queries to |

Why these keys are plain configuration, not a credentialRef

A distinction worth knowing, because getting it wrong either way is a real bug.

A per-tenant credential — a customer's GitHub token, their Slack workspace — must be resolved per call, or one tenant's request goes out with another's token. A platform credential — a search key the vendor bills you for — is one key for the whole deployment, and resolving it per call is overhead that buys nothing.

Search keys are the second kind. If you ever need per-tenant search billing, that becomes a credentialRef, and this paragraph is why it would be a change rather than an oversight.

Behaviour worth knowing

No provider means "I did not search." Not "I found nothing" — the runtime returns searched: false with a reason, and the tool's description tells the model to say so rather than answer from memory. A stubbed search returning plausible results is a tool the model trusts and cannot verify.

An unexpected response shape yields no hits, not an exception. A provider changing its JSON should degrade to "found nothing", not fail the run.

Licence

MIT — see LICENSE.

Copyright (c) 2026 Azeem Sarwar and Rise Experts.