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

@intentic/browser

v1.360.0

Published

Drive a Chromium browser from Node over CDP — open pages, read them as structured text, click and type by element reference. No dependencies.

Readme

browser

Drives a Chromium-family browser from Node over the DevTools protocol: opens pages, lists what can be clicked as numbered refs, and clicks and types by ref.

flowchart LR
    tools["intentic-machine<br/>browser_* tools"] --> browser(["browser()"])
    browser -->|"ensureBrowser"| binary["Brave, Chrome or Edge<br/>own profile, debugging port"]
    browser -->|"CDP over WebSocket"| tab["The agent's tab"]
    page["./page<br/>refs and rendering"] --> browser
    page --> webext["webext<br/>same vocabulary"]
  • Runs on the user's device inside intentic-machine. It never touches the user's own profile, and never drives a browser it did not start: ensureBrowser starts the OS default Chromium-family browser with a profile of its own under ~/.intentic/browser/<browser> and --remote-debugging-port=0, so the browser picks a free port and writes it into that profile's DevToolsActivePort with the path of its own debugging target, new every start. A browser is reused only when the endpoint on that port answers with that very target (ownEndpoint); whatever else answers on a debugging port, 9222 included, may be somebody's own Chrome and is never adopted. Edge ranks below any Chromium browser someone installed by choice (pickBrowser).
  • A snapshot (SNAPSHOT_SCRIPT) lists visible interactive elements as refs e0, e1, … A ref lives until the next snapshot, and a stale one fails with a message instead of clicking whatever sits there now.
  • Clicks and fills run as DOM calls inside the page and fire input and change, so they survive scrolling and reach a framework's state. Key presses go through Input.dispatchKeyEvent, since pages ignore synthetic keyboard events.
  • The ./page entry point has no DOM or Node imports, so the browser extension renders pages with the same renderPage.

Key files

  • src/index.ts — browser(): one CDP session per object, and every page action.
  • src/launch.ts — which binary to start, its flags, its profile directory and how its endpoint is recognised.
  • src/snapshot.ts — the in-page script that numbers the elements.
  • src/page.ts — PageState, renderPage and ref parsing, shared with the extension.
  • src/cdp.ts — the DevTools protocol subset: find tabs, attach, send.