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

@oxog/devinspector

v1.2.0

Published

Professional developer inspector tool for real-time debugging of web applications

Readme

DevInspector 🔍

A professional developer inspector tool for real-time debugging of web applications. Zero dependencies, framework-agnostic, and production-ready.

✨ Features

  • 🌐 Network Monitoring - Intercept and analyze all network requests (fetch, XHR, WebSocket)
  • 📝 Console Enhancement - Enhanced console with search, filtering, and export
  • Performance Profiling - FPS monitoring, memory tracking, and performance metrics
  • 🐛 Error Tracking - Catch and analyze errors with source maps support
  • 🔄 State Management - Integrate with Redux, Vuex, MobX, and other state managers
  • 🎨 DOM Analysis - Inspect DOM mutations and element properties
  • 💾 Storage Inspector - Monitor localStorage, cookies, and IndexedDB
  • 🔌 Plugin System - Extend functionality with custom plugins

📦 Installation

NPM

npm install @oxog/devinspector --save-dev

Yarn

yarn add @oxog/devinspector -D

CDN

<script src="https://unpkg.com/@oxog/devinspector/dist/devinspector.umd.min.js"></script>

🚀 Quick Start

ES Modules

import DevInspector from '@oxog/devinspector';

const inspector = new DevInspector({
  enabled: process.env.NODE_ENV !== 'production'
});

// Show the inspector
inspector.show();

CommonJS

const DevInspector = require('@oxog/devinspector').default;

const inspector = new DevInspector();

Script Tag

<script src="https://unpkg.com/@oxog/devinspector"></script>
<script>
  const inspector = new DevInspector();
  inspector.show();
</script>

⚙️ Configuration

const inspector = new DevInspector({
  // Enable/disable the inspector
  enabled: true,
  
  // Position on screen
  position: 'bottom-right', // 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'
  
  // Theme
  theme: 'auto', // 'dark' | 'light' | 'auto'
  
  // Keyboard shortcuts
  hotkeys: {
    toggle: 'ctrl+shift+d',
    minimize: 'ctrl+shift+m'
  },
  
  // Features to enable
  features: {
    network: true,
    console: true,
    performance: true,
    errors: true,
    state: true,
    dom: true,
    storage: true
  },
  
  // Storage limits
  maxNetworkEntries: 1000,
  maxConsoleEntries: 500,
  
  // Stack traces
  captureStackTraces: true,
  
  // Network filters
  networkFilters: {
    hideAssets: false,
    hideCached: false
  },
  
  // Callbacks
  onError: (error) => console.error(error),
  onPerformanceIssue: (issue) => console.warn(issue)
});

🔧 API

Core Methods

// Show/hide inspector
inspector.show();
inspector.hide();
inspector.toggle();
inspector.minimize();

// Destroy inspector
inspector.destroy();

// Manual tracking
inspector.track('custom-metric', { value: 123 });
inspector.markStart('operation');
inspector.markEnd('operation');

// Export/import data
const data = inspector.export();
inspector.import(data);

Events

// Listen to events
inspector.on('network:request', (request) => {
  console.log('Network request:', request);
});

inspector.on('error:uncaught', (error) => {
  console.log('Uncaught error:', error);
});

// Remove listeners
const unsubscribe = inspector.on('console:log', handler);
unsubscribe(); // or inspector.off('console:log', handler);

🔌 Plugins

Using Plugins

import { MyPlugin } from './my-plugin';

inspector.use(new MyPlugin());

Creating Plugins

import { BasePlugin } from '@oxog/devinspector';

export class MyPlugin extends BasePlugin {
  name = 'my-plugin';
  version = '1.0.0';
  description = 'My custom plugin';
  
  async onInstall() {
    // Setup plugin
    this.events.on('network:request', this.handleRequest.bind(this));
  }
  
  onUninstall() {
    // Cleanup
  }
  
  handleRequest(request) {
    console.log('Plugin handling request:', request);
  }
}

🎯 Framework Integration

React

import { useEffect } from 'react';
import DevInspector from '@oxog/devinspector';

function App() {
  useEffect(() => {
    const inspector = new DevInspector();
    return () => inspector.destroy();
  }, []);
  
  return <div>Your App</div>;
}

Vue

import DevInspector from '@oxog/devinspector';

export default {
  mounted() {
    this.inspector = new DevInspector();
  },
  beforeDestroy() {
    this.inspector.destroy();
  }
}

Angular

import { Component, OnInit, OnDestroy } from '@angular/core';
import DevInspector from '@oxog/devinspector';

@Component({...})
export class AppComponent implements OnInit, OnDestroy {
  private inspector: DevInspector;
  
  ngOnInit() {
    this.inspector = new DevInspector();
  }
  
  ngOnDestroy() {
    this.inspector.destroy();
  }
}

🔒 Security

  • All inputs are sanitized to prevent XSS
  • Sensitive data can be filtered
  • Content Security Policy compliant
  • No eval() or Function() usage

🌐 Browser Support

  • Chrome/Edge 80+
  • Firefox 75+
  • Safari 13+
  • Mobile browsers supported

📈 Performance

  • < 1ms overhead for interceptors
  • < 16KB initial bundle (gzipped)
  • Lazy loading for UI components
  • Automatic memory management

🤝 Contributing

Contributions are welcome! Please read our Contributing Guide for details.

📄 License

MIT © Ersin Koc

🔗 Links