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/mastra

v0.1.1

Published

Keenable web search and page-fetch tools for Mastra agents. Keyless by default.

Readme

@keenable/mastra

Keenable web search and page-fetch tools for Mastra agents.

Keyless by default. The tools work with no account or API key against Keenable's public endpoints (rate-limited). An optional KEENABLE_API_KEY lifts the hourly cap; it is never a prerequisite.

Installation

npm install @keenable/mastra

@mastra/core and zod are peer dependencies (you already have them in a Mastra project). No provider SDK is required; the package talks to the Keenable HTTP API directly.

Quick Start

Use createKeenableTools() to get both tools with a shared configuration:

import { Agent } from '@mastra/core/agent';
import { createKeenableTools } from '@keenable/mastra';

const tools = createKeenableTools();
// Keyless by default. To lift the rate limit, set KEENABLE_API_KEY
// or pass an explicit key:
// const tools = createKeenableTools({ apiKey: 'keen_...' });

const agent = new Agent({
  id: 'web-research-agent',
  name: 'Web Research Agent',
  instructions: 'You research topics on the web: search for sources, then read the most relevant pages.',
  model: 'anthropic/claude-sonnet-4-6',
  tools,
});

By default the tools read KEENABLE_API_KEY from the environment when present; with no key they call the keyless public endpoints. Set KEENABLE_API_URL to point at a different base URL.

Individual Tools

Each tool can be created independently:

import { createKeenableSearchTool, createKeenableFetchTool } from '@keenable/mastra';

const searchTool = createKeenableSearchTool(); // keyless
const fetchTool = createKeenableFetchTool({ apiKey: 'keen_...' });

Search (keenable-search)

Queries the Keenable web index. Accepts:

  • query (required)
  • site: restrict to a single domain, e.g. 'techcrunch.com'
  • publishedAfter / publishedBefore: filter by publication date (YYYY-MM-DD)
  • acquiredAfter / acquiredBefore: filter by index date (YYYY-MM-DD)
  • maxResults: cap results (1-20)

Returns { query, results: [{ title, url, description?, publishedAt?, acquiredAt? }] }.

Fetch (keenable-fetch)

Fetches a single URL and returns its main content as markdown:

  • url (required)

Returns { url, title?, content?, description?, author?, publishedAt? }.

Configuration

createKeenable*Tool and createKeenableTools accept:

  • apiKey: optional, falls back to KEENABLE_API_KEY. Keyless when unset.
  • baseUrl: optional, falls back to KEENABLE_API_URL, then https://api.keenable.ai.
  • clientSource: attribution tag Keenable segments integration traffic by (defaults to 'Mastra').

Get a key at keenable.ai/console.

License

MIT