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

@webz.io/ai-sdk

v0.1.2

Published

Vercel AI SDK tools for Webz.io News Search - global news in natural language with semantic ranking and rich filters

Readme

@webz.io/ai-sdk

Search global news with Webz.io from the Vercel AI SDK - in natural language, with the most relevant articles first.

Webz.io News Search covers news and current events from sources worldwide. Ask a question in plain language, narrow results with filters (language, country, date, sentiment, domain, ticker, and more), and get back focused article excerpts with titles, URLs, and metadata.

Use this package with generateText / streamText, or call the hosted MCP tool directly.

What you get

  • Natural-language search - no keyword hacking. Example: "EU AI Act enforcement updates" or "How is Tesla stock reacting to earnings?"
  • Worldwide coverage - semantic search over Webz.io's global news index.
  • Rich filters - language, country, days, sentiment, domain, ticker, person, organization, topic, and more. See the MCP tool reference.
  • Live schema - filters are loaded from the hosted MCP server (tools/list). New Webz filters appear automatically, without republishing this package.

Install

npm install @webz.io/ai-sdk
export WEBZ_API_TOKEN="your-webz-api-token"

Get a token from your Webz.io dashboard (same token as the News Search API).

Full setup and client options: MCP Server docs.

With the Vercel AI SDK

import { generateText, isStepCount } from "ai";
import { getWebzTools } from "@webz.io/ai-sdk";

const { tools, close } = await getWebzTools();

try {
  const { text } = await generateText({
    model: "openai/gpt-4.1-mini",
    prompt: "Find recent articles about Nvidia supply-chain risks",
    tools,
    stopWhen: isStepCount(5),
  });
  console.log(text);
} finally {
  await close();
}

Direct search (no LLM)

import { flattenToolResult, webzNewsSearch } from "@webz.io/ai-sdk";

const session = await webzNewsSearch(); // reads WEBZ_API_TOKEN
try {
  const result = await session.client.callTool({
    name: session.toolName,
    arguments: {
      query: "recent developments on EU AI regulation",
      k: 10,
      days: 30,
    },
  });
  console.log(flattenToolResult(result));
} finally {
  await session.close();
}

To see every tool your connection supports:

const { tools, close } = await getWebzTools();
console.log(Object.keys(tools).sort());
await close();

How it works

This package connects to the hosted Webz News Search MCP server at https://news-search-mcp.webz.io/mcp via @ai-sdk/mcp. Each call runs a regular News Search API request with your token (same credits and rate limits). It does not hardcode filter fields - the tool schema comes from the live server.

Configuration

| Name | Default | Purpose | | --- | --- | --- | | WEBZ_API_TOKEN | required | Webz API token from the dashboard | | WEBZ_MCP_URL | https://news-search-mcp.webz.io/mcp | Override for local MCP testing |

You can also pass apiToken and mcpUrl to the helpers.

Links