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

@orkestrel/browser

v0.0.8

Published

Chrome DevTools Protocol browser automation with an environment-agnostic core. Part of the @orkestrel line.

Readme

@orkestrel/browser

A typed Chrome DevTools Protocol browser automation library for the @orkestrel line. The environment-agnostic core (src/coreCDPClient speaking the CDP wire protocol over an injected CDPTransportInterface, plus BrowserContext, BrowserPage, and BrowserFrame, semantic locators, trusted input, network/HAR controls, diagnostics, structured DOM snapshots, content distillation that selects a document's article rather than its whole body text, and BrowserCodegen) never touches node:* or the DOM; the Node runtime (src/server) adapts it with a WebSocketCDPTransport, browser process launch/discovery (node:child_process + fetch), a filesystem screenshot writer, and the Browser façade that ties launch → context → page together. Part of the @orkestrel line.

Install

npm install @orkestrel/browser

Requirements

  • Node.js >= 22 for the server surface (the core surface is environment-agnostic)
  • ESM and CommonJS builds ship for both the core and server entry points

Usage

Launch or connect to a browser and drive a page from Node:

import { createBrowser } from '@orkestrel/browser/server'

const browser = createBrowser()
await browser.connect()
const page = await browser.create({ url: 'https://example.com' })
await page.click('#submit')
const frame = await page.frame('checkout')
await frame?.fill('[name=email]', '[email protected]')
const snapshot = await page.snapshot({ styles: ['display'] })
const article = await page.article() // reader-facing prose, boilerplate pruned
await page.screenshot({ path: 'example.png' })
await browser.destroy()

Drive the same protocol from any environment by injecting your own transport over the environment-agnostic core:

import { CDPClient } from '@orkestrel/browser'
import type { CDPTransportInterface } from '@orkestrel/browser'

const transport: CDPTransportInterface = /* your injected transport */
const client = new CDPClient({ transport })
await client.connect()
const result = await client.send('Page.navigate', { url: 'https://example.com' })

Guide

For the full surface — the CDP dispatch core, the BrowserContext / BrowserPage / BrowserCodegen entities, the server transports, and usage patterns — see guides/src/browser.md.

Package

Published with two entry points per the exports field in package.json: the environment-agnostic core (.) — CDPClient, BrowserContext, BrowserPage, BrowserFrame, DOM snapshot traversal helpers, BrowserCodegen, createCDPClient, CDPTransportInterface — and the Node-only server surface (./server) — Browser, createBrowser, createCDPTransport, createScreenshotWriter, WebSocketCDPTransport.

License

MIT © Orkestrel — see LICENSE.