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

@weaveintel/tools-browser

v0.1.1

Published

**Browser and web tools — fetch pages, extract clean content, and drive a real browser — for your agent.**

Readme

@weaveintel/tools-browser

Browser and web tools — fetch pages, extract clean content, and drive a real browser — for your agent.

Why it exists

Much of what an agent needs lives on the open web, but a raw web page is a cluttered room: ads, menus, scripts, and the one paragraph you actually wanted. These tools tidy that room. They fetch a page, strip it down to readable content, follow a sitemap, or — when a task really needs clicking and typing — open a real Playwright browser and act like a person would. It sits on top of @weaveintel/tools, adding a web-shaped toolbelt to the standard one.

This is a separate, install-it-yourself package on purpose: driving a real browser drags in playwright-core, which is heavy. Keeping it apart means agents that only need lightweight tools don't pay for a browser they'll never launch.

When to reach for it

Reach for it when your agent needs to read the web or automate a page (log in, click, fill a form). If you only need general-purpose tools (files, math, HTTP), stay with @weaveintel/tools and skip the Playwright weight. Automation needs a browser present — check isBrowserAutomationAvailable() first.

How to use it

import { fetchPage, readability, createBrowserTools } from '@weaveintel/tools-browser';

// One-off: fetch and clean a page
const page = await fetchPage('https://example.com');
const article = readability(page.html ?? '', 'https://example.com');
console.log(article.title, article.textContent);

// Or hand the whole browser toolbelt to your agent
const tools = createBrowserTools();   // Tool[] ready for a ToolRegistry

What's in the box

| Export | What it does | | --- | --- | | fetchPage(url, opts?) | Fetch a page's HTML/text | | readability(html, url) | Strip a page down to its readable article | | extractContent, scrape, parseSitemap | Structured extraction, scraping, sitemap parsing | | createBrowserTools() | Fetch/extract/read tools as a Tool[] | | createAutomationTools() | Real-browser click/type/navigate tools (Playwright) | | createBrowserAuthTools(), BrowserAuthProvider | Logged-in browsing (form/cookie/OAuth/SSO hand-off) | | BrowserPool, BrowserSession, captureSnapshot | Lower-level session pooling and page snapshots | | isBrowserAutomationAvailable() | Check whether Playwright is installed before automating |

License

MIT.