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

plugin-ai-browser

v1.0.0

Published

AI Employee drives browser end-to-end in readonly mode. Manages sessions, profiles, policies, audit logs, artifacts, and cached workflow steps for faster reruns.

Readme

plugin-ai-browser

AI Browser Automation plugin for NocoBase.

Overview

This plugin enables the NocoBase AI Employee to natively control a browser end-to-end, while users watch in readonly mode. Instead of relying on an external autonomous agent (like browser-use), the AI Employee is the "brain", using granular tools (click, type, scroll) via Playwright CDP to control a headless browserless/chromium container.

This guarantees:

  1. 1x LLM Cost: Only NocoBase AI Manager uses LLM tokens (no external agent calling LLM).
  2. Full Context: AI Employee shares session context directly with the user conversation.
  3. True Agentic Control: AI Employee reasons based on DOM and screenshots at every step.

Architecture

plugin-ai-browser
  ├─ server
  │  ├─ services/          — Session, Profile, Policy services
  │  ├─ drivers/           — PlaywrightDriver, IBrowserDriver interface
  │  ├─ actions/           — Config, driver status endpoints
  │  ├─ collections/       — 8 collections (sessions, tasks, profiles, events, caches, config)
  │  └─ tools/             — Granular AI tools (open, click, type, read_page, scroll)
  └─ client
     ├─ AIBrowserBlock     — Readonly iframe viewer (VNC / browserless debug)
     ├─ AIBrowserManager   — Admin settings page
     ├─ AIBrowserSessionCard — Compact card for AI chat
     └─ AIBrowserWorkContext — Chat context provider

AI Tools

| Tool | Description | |------|-------------| | browser_open_url | Open a browser session and navigate to a URL | | browser_click_element | Click on an element using Playwright/CSS selector | | browser_input_text | Type text into an input field | | browser_scroll | Scroll up, down, top, or bottom | | browser_read_page | Get screenshot and simplified DOM | | browser_get_session | Get session details | | browser_stop_session | Stop a running session | | browser_list_sessions | List sessions with filters | | browser_get_artifacts | Get session screenshots and action logs |

Driver Setup (Playwright)

The plugin uses PlaywrightDriver to connect over CDP. In production, it connects to a browserless/chromium container in the NocoBase network.

Environment Variables

| Variable | Default | Description | |----------|---------|-------------| | AI_BROWSER_CDP_URL | ws://browser:3000 | WebSocket endpoint of the headless browser | | AI_BROWSER_LIVE_URL | derived from AI_BROWSER_CDP_URL | Optional readonly viewer URL exposed in session metadata |

Cache Strategy

Workflows are cached as intent → ordered steps → element fingerprints:

  • Cache matching uses a weighted score (URL pattern, intent similarity, success rate, scope)
  • AI Employee will attempt to follow cached step selectors directly to save tokens.

License

Apache-2.0