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

@keenable/ai-sdk

v0.1.0

Published

Keenable web search and page-fetch tools for the Vercel AI SDK. Keyless by default.

Readme

@keenable/ai-sdk

Keenable web search and page-fetch tools for the Vercel AI SDK.

Keyless by default. The tools work with no account and no API key against Keenable's public endpoints. An optional KEENABLE_API_KEY lifts the hourly rate limit; it is never a prerequisite, so an example using these tools runs for whoever copies it.

Installation

npm install @keenable/ai-sdk

ai and zod are peer dependencies, and you already have both in an AI SDK project. There is no provider SDK to install: the package talks to the Keenable HTTP API through the official keenable client. Node 18 or newer.

Quick start

import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";
import { keenableTools } from "@keenable/ai-sdk";

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: keenableTools(),
  stopWhen: stepCountIs(6),
  prompt: "What changed in the latest Bun release? Cite the pages you used.",
});

keenableTools() returns both tools keyed by the names the model sees, keenable_search and keenable_fetch, sharing one client. Pass a key to lift the rate limit, or leave it out entirely:

const tools = keenableTools({ apiKey: process.env.KEENABLE_API_KEY });

The tools

keenable_search

Searches the web and returns ranked pages, each with the page text already extracted, so a typical question is answered without a second round trip.

import { keenableSearch } from "@keenable/ai-sdk";

const tools = {
  keenable_search: keenableSearch({
    site: "arxiv.org", // pin every search to one domain
    maxResults: 5,
    snippetMaxLength: 2000,
  }),
};

Returns { query, results: [{ title, url, snippet, publishedAt }] }. The page text is in snippet; description is the page's meta description and is absent for most pages, so it is not returned at all.

The model can also set site, publishedAfter and publishedBefore per call. Anything you configure on the tool is the default when the model leaves it out.

| Option | Default | What it does | |---|---|---| | site | unset | Restrict every search to one domain | | publishedAfter / publishedBefore | unset | Publication-date window (YYYY-MM-DD) | | maxResults | all | Keep at most this many results | | snippetMaxLength | 1000 | Characters of page text kept per result |

snippetMaxLength matters more here than with other search APIs: Keenable returns whole-page text on every result, an order of magnitude more than a typical snippet, so an uncapped result set would spend the context window on pages the model never chose to read. keenable_fetch is how it opts into one.

keenable_fetch

Reads one URL and returns its main content as markdown, boilerplate stripped.

import { keenableFetch } from "@keenable/ai-sdk";

const tools = { keenable_fetch: keenableFetch({ contentMaxLength: 20_000 }) };

Returns { url, title, content, publishedAt }. Longer pages are truncated and marked with [truncated], and the marker counts against contentMaxLength, so the tool never returns more than the budget it was given.

Configuration

Every client option of the keenable SDK is accepted by all three factories:

| Option | Environment | Purpose | |---|---|---| | apiKey | KEENABLE_API_KEY | Lifts the hourly rate limit. Optional | | baseUrl | KEENABLE_API_URL | Point at a different Keenable deployment | | timeoutMs | | Request timeout, default 30000 | | fetch | | Custom fetch, for a proxy or a test | | client | | A Keenable instance to use as-is |

License

MIT