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

@ellie-ai/agent-web-tools-plugin

v0.2.0

Published

Web search and fetch tools for Ellie agents

Readme

@ellie-ai/agent-web-tools-plugin

Web search and fetch tools for Ellie agents.

Overview

This plugin provides agents with the ability to:

  • Search the web - Query search engines for current information
  • Fetch web pages - Download and parse web page content

Installation

bun add @ellie-ai/agent-web-tools-plugin

Usage

import { createRuntime } from "@ellie-ai/runtime";
import { agentPlugin } from "@ellie-ai/agent-plugin";
import { webToolsPlugin } from "@ellie-ai/agent-web-tools-plugin";
import { openAI } from "@ellie-ai/model-providers";

const runtime = createRuntime({
  plugins: [
    agentPlugin({
      model: openAI(),
      toolPlugins: [
        webToolsPlugin({
          search: {
            provider: "brave",
            apiKey: process.env.BRAVE_API_KEY,
          },
        }),
      ],
    }),
  ],
});

Tools

web_search

Search the web for current information.

Parameters:

  • query (string, required): Search query
  • num_results (number, optional): Number of results (default: 5)

Example:

{
  "query": "Ellie agent framework",
  "num_results": 10
}

Returns: Markdown-formatted search results with titles, URLs, and snippets

Note: Requires API key configuration (see Configuration section)

web_fetch

Fetch and parse web page content.

Parameters:

  • url (string, required): URL to fetch
  • format (string, optional): "text" (markdown), "html" (raw), or "json" (parsed)

Example:

{
  "url": "https://example.com/page",
  "format": "text"
}

Returns: Page content in the requested format (defaults to markdown for HTML pages)

Configuration

Enable/Disable Tools

webToolsPlugin({
  tools: {
    webSearch: true,
    webFetch: true,
  },
});

Search Provider Configuration

The web_search tool requires an API key from a supported provider.

Brave Search

webToolsPlugin({
  search: {
    provider: "brave",
    apiKey: process.env.BRAVE_API_KEY,
  },
});

Get your Brave Search API key at: https://brave.com/search/api/

Serper (Google Search)

webToolsPlugin({
  search: {
    provider: "serper",
    apiKey: process.env.SERPER_API_KEY,
  },
});

Get your Serper API key at: https://serper.dev/

Web Fetch Configuration

Restrict which domains agents can access:

webToolsPlugin({
  fetch: {
    // Allow only specific domains
    allowedDomains: ["example.com", "docs.example.com"],

    // Block specific domains (takes precedence)
    deniedDomains: ["127.0.0.1", "localhost", "internal.company.com"],

    // Request timeout in milliseconds
    timeout: 10000,

    // Maximum response size in bytes
    maxSize: 1024 * 1024, // 1MB
  },
});

Configuration Examples

Block internal networks:

webToolsPlugin({
  fetch: {
    deniedDomains: [
      "127.0.0.1",
      "localhost",
      "0.0.0.0",
      "10.*.*.*",
      "192.168.*.*",
      "172.16.*.*",
    ],
  },
});

Allow only documentation sites:

webToolsPlugin({
  fetch: {
    allowedDomains: [
      "docs.anthropic.com",
      "developer.mozilla.org",
      "nodejs.org",
      "bun.sh",
    ],
  },
});

Strict timeout and size limits:

webToolsPlugin({
  fetch: {
    timeout: 5000, // 5 seconds
    maxSize: 512 * 1024, // 512KB
  },
});

Security Considerations

⚠️ SSRF Attacks: Without domain restrictions, agents can make requests to internal networks. Always configure deniedDomains in production.

⚠️ API Costs: Web search requires API calls that cost money. Monitor usage and consider rate limiting.

⚠️ Response Size: Large responses can consume memory. Use maxSize to limit download size.

⚠️ Timeout: Set appropriate timeouts to prevent agents from hanging on slow requests.

Recommended Production Config

webToolsPlugin({
  search: {
    provider: "brave",
    apiKey: process.env.BRAVE_API_KEY,
  },
  fetch: {
    // Block private networks
    deniedDomains: [
      "127.0.0.1",
      "localhost",
      "0.0.0.0",
      "10.*.*.*",
      "192.168.*.*",
      "172.16.*.*",
      "169.254.*.*", // Link-local
      "*.local",
    ],
    timeout: 10000, // 10 seconds
    maxSize: 2 * 1024 * 1024, // 2MB
  },
});

Supported Search Providers

| Provider | API Docs | Pricing | |----------|----------|---------| | Brave Search | https://brave.com/search/api/ | $5/1000 queries (free tier: 2000/month) | | Serper | https://serper.dev/ | $50/1000 queries (free tier: 2500/month) |

License

MIT