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

bug-reporter-lib

v1.0.1

Published

Bug Reporter is a component of bug-reporter-lib that can be attached to any app to take screenshots and report bugs

Readme

Bug Reporter Library

A react library for reporting a bug from your application.

🎁 Features

  1. Take a snapshot of the webpage's screen or part of the screen and report a bug.

  2. Along with snapshot, it stores and sends details such as Image URL, Description, IP-Address, Email, Browser's Name and Path.

  3. Compatible with any webpage. Easy to use.

🔧 Install

bug-reporter-lib is available on npm. It can be installed with the following command:

npm install bug-reporter-lib --save

bug-reporter-lib is available on yarn as well. It can be installed with the following command:

yarn add bug-reporter-lib

💡 Usage

  1. Add this library to your application :
import BugReporter from 'bug-reporter-lib' 
  1. If your project dosen't have antd Modal then, add the following line :
import 'antd/dist/antd.css';
  1. Save the buttonStyle into library to style the button, else it takes default style as -

{ position: "fixed", bottom: 90, right: 100 }

  1. It collects the name and email of the person sending the report.

  2. Provide an API end-point which will send a URL as a post request call, that will return an object with keys -

{ image: , description: , ipAddress: , email: , browserName: , path: }, where image will store the image's url of final marked image, description will store the bug's description provided, path will store the address of the page url where bug is been reported, email will store email address of the user who is reporting that bug, ipAddress will store the IP Address and browserName will store current browser's name where application is been executed.

  1. Above mentioned informations can be used to report and track the type of bug along with the bug reporting person's details.

🧰 How to use Bug Reporter Library

Include these in your common component's script :

<BugReporter
          buttonStyle={{ position: "fixed", bottom: 90, right: 100, zIndex:2000 }}
          url={"http://localhost:8000/add"}
          name="Bob"
          email="[email protected]"
          appName="bugTracker"
          getStatus={getStatus}
/>
// Shows Message Response

 const getStatus = (message, message_type)=>{
    message_type ? message.success(message) : message.error(message)
    }

🐛 How Bug Reporter Library works

  • Once this library is added, user will get a button in their application. On clicking, it will hold the screen where they can take the screenshot.

  • It takes you into a Modal where a option is displayed to choose different colours and sizes. Using that one can mark multiple bugs and put a description on each.

  • User will have a reset button to reset the Modal screen and a close button to close that model.

  • Also, the user gets one description box below the Modal where one can provide additional information. Submit button will do a POST HTTP request and all the useful information will be sent onto that given URL end-point and will be stored into the database.

  • By performing the above mentioned steps, one can report a bug and keep track of that bug along with the details of the person reporting the bug.

❗ Issues

If you think any of the bug-reporter-lib can be improved, please do open a PR with any updates and submit any issues. Also, we will continue to improve this, so you might want to watch/star this repository to revisit.

🤝 Contribution

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

How to contribute:

  • Open pull request with improvements
  • Discuss ideas in issues
  • Spread the word
  • Reach out with any feedback

🗄️ External Libraries used

  1. @ant-design/icons

  2. antd

  3. html-to-image

  4. react-screen-capture

  5. react-zoom-pan-pinch