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

@owll/debug-widget

v1.0.10

Published

`@owll/debug-widget` is a lightweight and customizable debug widget designed for web applications. It allows developers to capture and download logs (both console and network), take screenshots, and gain insights into the application's behavior. It can be

Downloads

0

Readme

@owll/debug-widget

@owll/debug-widget is a lightweight and customizable debug widget designed for web applications. It allows developers to capture and download logs (both console and network), take screenshots, and gain insights into the application's behavior. It can be used in both development and production environments to streamline the debugging process.

Features

  • Capture Console Logs: Capture and download console logs in JSON format for structured review.
  • Capture Network Logs: Capture and download network request logs in JSON format, offering valuable information on network activities, including those made with native fetch and XMLHttpRequest.
  • Take Screenshot: Take a screenshot of the page (without the debug button) and download it as a PNG file.
  • Customizable Position and Theme: Adjust the widget's button position on the screen and modify its theme to suit your app's design or match system settings (dark/light mode).

Installation

You can install the widget using either npm or yarn:

npm install @owll/debug-widget
# or
yarn add @owll/debug-widget

Implementation

To integrate and start the debug widget in your web application, follow these steps:

  1. Import the startOwllDebugWidget function:

    import startOwllDebugWidget from '@owll/debug-widget';
  2. Call the startOwllDebugWidget function:

    You can initialize the widget with default settings by simply calling the function:

    startOwllDebugWidget();

    Alternatively, you can provide a configuration object of type DebugOptions to customize its behavior:

    interface DebugOptions {
      position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
      theme?: 'light' | 'dark' | 'auto';
    }
    
    const options: DebugOptions = {
      position: 'bottom-left', // Optional: 'top-left', 'top-right', 'bottom-left' (default: 'bottom-left')
      theme: 'auto'         // Optional: 'light', 'dark' (default: 'light')
    };
    
    startOwllDebugWidget(options);

    The available configuration options within the DebugOptions interface are:

    • position: Controls the position of the debug button on the screen. Possible values are 'top-left', 'top-right', 'bottom-left', and 'bottom-right'. Defaults to 'bottom-left'.
    • theme: Sets the visual theme of the widget. Possible values are 'light', 'dark', and 'auto'. When set to 'auto', the theme will typically follow the user's system preference. Defaults to 'light'.

    Refer to the official documentation for any other available configuration options.

This demonstrates how to use the DebugOptions interface to configure the widget with specific position and theme values.

Support

For support, you can reach out via Buy Me A Coffee.

License

This project is licensed under the MIT License.