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

pbidriver

v0.3.1

Published

WebDriver for Power BI Desktop: let AI agents build, see and drive Power BI reports (PBIP authoring, screenshots, visual data, dialogs, slicers, DAX). CLI and MCP server, run from Node.

Readme

pbidriver

WebDriver for Power BI Desktop. Let AI agents see and drive Power BI Desktop: screenshots of pages, visuals and every view, the data behind visuals, blocking dialogs, slicers, tooltips, menus, bookmarks, DAX and Performance Analyzer. Everything runs locally; nothing is published to the Power BI service.

This npm package runs the pbidriver command-line tool from Node, so it fits JavaScript projects and agents that prefer npx.

⚠️ pbidriver is a new tool. It edits Power BI project files and drives Power BI Desktop. Work on a copy of your report, or keep it in git and commit before letting an agent change it. Report bugs with npx pbidriver bug-report or at GitHub.

npx pbidriver launch "C:\reports\Sales.pbix"
npx pbidriver shot --page "Overview" --annotate
npx pbidriver read --page "Overview"
npx pbidriver slicer --visual "Region" --select "West" --shot
npx pbidriver dax "EVALUATE TOPN(5, Sales)"

Every command prints one JSON object: {"ok": true, ...} or {"ok": false, "error": "..."}.

MCP server: npx -y pbidriver mcp runs pbidriver as an MCP server over stdio: every command is a pbi_* tool, and screenshots come back as images. In an MCP client config on Windows: {"command": "cmd", "args": ["/c", "npx", "-y", "pbidriver@latest", "mcp"]}. npx pbidriver setup configures it, together with Microsoft's Power BI Modeling MCP, for Claude Code, VS Code, Cursor and Codex; see Build reports with agents.

Requirements

  • Windows 10 or 11 with Power BI Desktop.
  • Node.js 18 or later.
  • Either uv or Python 3.9+. pbidriver drives Power BI through Windows APIs that only Python reaches well, so this package starts the same Python CLI rather than reimplementing it.

How the Python side is found

  1. PBIDRIVER_PYTHON set to a Python interpreter: that interpreter runs -m pbidriver.
  2. uvx on PATH: uvx --from pbidriver==<this version> pbidriver .... No Python setup needed; uv downloads and caches it on first use.
  3. Python 3.9+ on PATH: runs -m pbidriver. If the matching version isn't installed, it is installed once with pip (--user). Set PBIDRIVER_NO_INSTALL=1 to never install.

Installer output goes to stderr, so stdout stays a single JSON object.

JavaScript API

const { run } = require('pbidriver');

const shot = await run(['shot', '--page', 'Overview', '--annotate']);
if (shot.ok) console.log('PNG at', shot.file);

const data = await run(['read', '--visual', '3']);
if (data.alerts?.blocked) {
  await run(['dialog', '--click', 'Cancel']);
}

run(args, { cwd, env, timeout }) resolves with the command's JSON object (check ok). It rejects only when no JSON comes back, for example for --help. Types are included.

Documentation

MIT licence. Author: Jerome Eliezer, Zynxtech ([email protected], GitHub speak2jerome). pbidriver is part of Zynxtech open source: project page.