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

@unbrowse/mastra

v0.1.0

Published

Native Unbrowse tools for Mastra agents. Exposes resolve/execute/search as Mastra createTool()-compatible tools (JSON-Schema input, no zod). Each tool routes through Unbrowse's resolved-route marketplace cache ($0 on hit).

Readme

@unbrowse/mastra

Native Unbrowse tools for Mastra agents. Drop three ready-made tools into any @mastra/core agent so it can resolve an intent to a ranked API shortlist, execute a chosen endpoint, and search the web — each routed through Unbrowse's resolved-route marketplace cache ($0 on a cache hit).

npm install @unbrowse/mastra

Tools

| tool id | input (JSON Schema) | does | | ------------------ | ------------------------------ | ----------------------------------------------------------- | | unbrowse_resolve | { url, intent } | Resolve intent + URL to a ranked shortlist of API endpoints | | unbrowse_execute | { endpoint_id, params? } | Execute a resolved endpoint and return its body | | unbrowse_search | { query, url? } | Resolve + execute the best route for a search query |

Each tool uses a plain JSON-Schema inputSchema (no zod dependency) and follows Mastra's createTool() runtime shape: { id, description, inputSchema, execute }. execute accepts Mastra's { context } envelope or the args object directly.

Registration

Register the tools on a Mastra Agent. unbrowseTools is a record keyed by tool id, which is exactly the shape @mastra/core's Agent expects for tools:

import { Agent } from '@mastra/core/agent';
import { unbrowseTools } from '@unbrowse/mastra';

const agent = new Agent({
  name: 'web',
  instructions: 'Use the Unbrowse tools to resolve, execute, and search.',
  model,
  tools: unbrowseTools,
});

If you want tools constructed by Mastra's own createTool() (carrying Mastra's validation/branding), use the factory and pass createTool in:

import { createTool } from '@mastra/core/tools';
import { createUnbrowseTools } from '@unbrowse/mastra';

const tools = createUnbrowseTools({ createTool });
// new Agent({ ..., tools });

You can also import each tool individually: unbrowse_resolve, unbrowse_execute, unbrowse_search.

Configuration

| env var | default | purpose | | --------------------- | ------------------------------ | ---------------------------------------- | | UNBROWSE_API_URL / UNBROWSE_BASE | https://beta-api.unbrowse.ai | Unbrowse API base | | UNBROWSE_API_KEY | — | Bearer token (optional) | | UNBROWSE_X_PAYMENT | — | x402 payment header (optional) | | UNBROWSE_DRYRUN=1 | — | Offline: synthesize a result, no network |

Honest scope (v0.1)

  • unbrowse_resolve and unbrowse_execute map directly onto Unbrowse's /v1/resolve and /v1/execute.
  • unbrowse_search resolves the query against a target URL (defaults to a search-engine URL) and executes the top cached route; it is not a dedicated search index — quality depends on what the marketplace has captured for that target. On a miss it returns { ok: false, error: 'no_cached_match' } rather than fabricating results.
  • This package only wraps Unbrowse's HTTP surface as @mastra/core tools; it does not bundle or require @mastra/core at runtime (the factory takes createTool as a dependency), so there is no upstream version lock-in.

MIT licensed. @mastra/core is the trademark of its respective owners; this is an independent integration.