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

electron-dev-tools-plus

v0.1.1

Published

Um conjunto de ferramentas de desenvolvimento e depuração aprimoradas para o ambiente multi-processo do Electron.

Readme

Electron DevTools

NPM Version
License: MIT

TypeScript

electron-dev-tools is an advanced development and debugging toolkit designed specifically for the multi-process environment of Electron. It provides a unified interface to monitor, profile, and debug your application, helping you build more robust and performant Electron apps, faster.


🚀 Why electron-dev-tools?

Debugging Electron applications can be challenging. Logs are scattered between the main process terminal and the renderer's DevTools, IPC messages are invisible, and performance bottlenecks are hard to pinpoint.

This toolkit solves these problems by providing a single, powerful window with deep insights into your application's behavior.


✨ Features

  • Unified Console: View logs from the main process and all renderer processes in a single, real-time, color-coded console.
  • Live IPC Monitor: Visualize all Inter-Process Communication (IPC) messages (ipcMain, ipcRenderer) as they happen. See the channel, direction, payload, and communication type (send, invoke).
  • Performance Profiler (Coming Soon): Real-time CPU and memory usage charts, distinguishing between main and renderer processes.
  • System Simulator (Coming Soon): Tools to simulate adverse conditions like network loss, high latency, or system power states.

📦 Installation

Install the package as a development dependency in your Electron project:

npm install --save-dev electron-dev-tools

⚡ Usage

Integrating electron-dev-tools is designed to be as simple as possible.

  1. Import the toolkit in your main process file (e.g., main.js or main.ts).
  2. Call initializeDevTools() after your application is ready and you have created your main window.
  3. It's best to call it only during development.

Example (main.js)

const { app, BrowserWindow } = require('electron');

// 1. Import the toolkit
const { initializeDevTools } = require('electron-dev-tools');

function createWindow() {
  const mainWindow = new BrowserWindow({
    // ... your window options
  });
  mainWindow.loadFile('index.html');
}

app.whenReady().then(() => {
  createWindow();

  // 2. Initialize the dev tools
  if (process.env.NODE_ENV !== 'production') {
    initializeDevTools();
  }
});

When you run your Electron app in development mode, a new Electron DevTools window will automatically open alongside your application, ready to capture logs and IPC messages.


🛠️ How It Works

  • The toolkit works by securely monkey-patching standard Electron and Node.js modules like console and ipcMain.
  • When you call initializeDevTools(), it spawns a new BrowserWindow.
  • It overrides console.log, ipcMain.on, etc., with custom versions.
  • These custom versions forward calls to the original methods and send a structured copy of the event data to the DevTools window via a dedicated IPC channel.
  • The DevTools window (built with React) receives this data and renders it in a user-friendly interface.

This process is designed to be safe and have a minimal performance impact during development.


🧑‍💻 Development & Contribution

We’d love your contributions!

📂 Project Structure

  • src/main/: Main process logic (hijacking console and ipcMain).
  • src/renderer/: React-based UI for the DevTools window.
  • src/renderer/components/: UI panels (Console, IPC, etc.).
  • src/preload/: Preload script bridging main ↔ renderer.
  • src/shared/: Shared TypeScript types and interfaces.
  • example/: Minimal Electron app for testing/demonstration.

🔧 Running Locally

Clone the repository:

git clone https://github.com/fmartini23/electron-dev-tools.git
cd electron-dev-tools

Install dependencies:

npm install

Start the development server:

npm run dev

This will:

  • Compile the TypeScript code
  • Launch the example Electron app with DevTools attached
  • Watch for file changes and reload automatically

📜 License

This project is licensed under the MIT License. See the LICENSE file for details.