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

multiview-devtools

v0.1.1

Published

Electron multi-webContents DevTools manager package with a bundled Vue-based manager UI.

Readme

multiview-devtools

Tabbed DevTools manager for Electron apps that work with multiple WebContents and WebContentsView targets.

Requirements

  • Node >=20
  • Electron 41.x currently tested

Install

npm install multiview-devtools electron@41

Usage

Call initDevToolsManager() from the Electron main process:

import { app, BrowserWindow, WebContentsView } from 'electron';
import { initDevToolsManager } from 'multiview-devtools';

async function main() {
  await app.whenReady();

  const window = new BrowserWindow({
    width: 1280,
    height: 800,
  });

  const view = new WebContentsView();
  window.contentView.addChildView(view);
  view.setBounds({ x: 0, y: 0, width: 1280, height: 800 });

  await view.webContents.loadURL('https://example.com');

  const manager = initDevToolsManager({
    autoDetect: true,
    autoShow: false,
    resolveTargetMeta({ webContents }) {
      return {
        title: webContents.getTitle() || `wc:${webContents.id}`,
      };
    },
  });

  manager.show();
}

void main();

API

initDevToolsManager(options?)

Options:

  • autoDetect: automatically discover app webContents. Default: true.
  • autoShow: open the manager window on startup. Default: true.
  • includeSelf: include the manager's own internal views for package development. Default: false.
  • shouldManageWebContents(ctx): filter autodetected targets.
  • resolveTargetMeta(ctx): provide custom labels and metadata.
  • persistence: custom adapter for loading and saving simple UI state.

Returned manager methods:

  • show(), hide(), toggle()
  • refreshTargets()
  • listTargets(), listTabs()
  • registerWebContents(target, meta?)
  • unregisterWebContents(target)
  • openTab(target), activateTab(target), unloadTab(target), closeTab(target)
  • closeTabsLeftOf(target), closeTabsRightOf(target), closeOtherTabs(target)
  • focusSource(target)
  • setMeta(target, meta)

Notes

  • The package is main-process-first. Its renderer UI is bundled internally.
  • The manager is designed around WebContentsView-based workflows and Electron's modern multi-view APIs.
  • Internally it depends on WebContentsView, BaseWindow, and webContents.setDevToolsWebContents(...).

Compatibility

  • Currently tested against Electron 41.x only.
  • Broader compatibility may exist, but it is not guaranteed yet.
  • The package exposes CommonJS plus an ESM compatibility entrypoint; it does not currently ship a separate native ESM build.

Packaging

Published tarballs include built runtime artifacts from dist/, plus this README.md and LICENSE. Source maps are excluded from the npm package to keep the tarball smaller.