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

@softnoesis/shakebug-js

v1.0.12

Published

Shakebug JS - bug reporting and screenshot capture library

Readme

@softnoesis/shakebug-js

Shakebug JS is a powerful bug reporting and feedback collection library for React and Next.js applications. It allows users to capture screenshots, record screens, and submit detailed bug reports with ease.

Features

  • 📸 Screenshot Capture: Automatically capture the current screen state.
  • 🎥 Screen Recording: Record user interactions to demonstrate bugs.
  • ✍️ Annotation Tools: Draw, highlight, and add text to screenshots.
  • 📱 Shake to Report: Detect device shaking to trigger the bug reporting flow.
  • ⌨️ Keyboard Shortcuts: Global shortcuts (Cmd+Alt+K or Ctrl+Alt+K) for power users.
  • 🎨 Customizable Theme: Match the SDK's look and feel to your application.
  • 🛠️ Event Tracking: Log custom events and metadata for better debugging.

Installation

npm install @softnoesis/shakebug-js
# or
yarn add @softnoesis/shakebug-js

Peer Dependencies

Ensure you have the following peer dependencies installed in your project:

npm install react react-dom

Usage

1. Import CSS

Import the global styles in your main entry file (e.g., App.tsx or main.tsx):

import '@softnoesis/shakebug-js/dist/index.css';

2. Add the Shakebug Component

Place the Shakebug component at the root of your application:

import { Shakebug } from '@softnoesis/shakebug-js';

function App() {
  return (
    <div>
      <Shakebug 
        appKey="YOUR_APP_KEY" 
        bundleId="YOUR_BUNDLE_ID" 
        showFloatingButton={true}
      />
      {/* Your app content */}
    </div>
  );
}

Component Properties (ShakebugProps)

The <Shakebug /> component accepts the following props:

| Prop | Type | Default | Description | |------|------|---------|-------------| | appKey | string | - | Required. Your Shakebug application key. | | bundleId | string | - | Required. Your application bundle ID/Package name. | | showFloatingButton | boolean | true | Whether to show the floating trigger button. | | ShakebugThemeColor | string | - | Primary color for the SDK (e.g., #ff0000). | | screenTitle | string | 'Shakebug' | Title displayed in the feedback modal. | | changeSDKScreenTitle | string[] | - | Custom titles for different steps in the modal. | | allowToReportBugByShakingMobile | boolean | true | Enable/Disable shake detection on mobile. | | allowToReportBugByScreenCapture | boolean | false | Enable/Disable report trigger by native screenshot. | | allowCrashReport | boolean | true | Automatically report unhandled errors and crashes. | | appVersion | string | '1.0.0' | Your application version. | | ShakebugLanguage | string | - | Force a specific language (e.g., 'en', 'es'). | | onSend | function | - | Callback triggered after a report is successfully sent. |

Example with full Props

<Shakebug 
  appKey="your-key"
  bundleId="your.bundle.id"
  ShakebugThemeColor="#4f46e5"
  screenTitle="Report an Issue"
  allowCrashReport={true}
  onSend={(data) => console.log('Report sent:', data)}
/>

Public Methods

You can import and use these methods anywhere in your application after the <Shakebug /> component is mounted.

setcustomUser(userData)

Identifies the user for all subsequent reports in the session.

import { setcustomUser } from '@softnoesis/shakebug-js';

setcustomUser({
  id: "user_123",
  name: "John Doe",
  email: "[email protected]",
  country: "USA"
});

addEventKey(name, value)

Logs a custom event that will be attached to the next bug report.

import { addEventKey } from '@softnoesis/shakebug-js';

addEventKey("User Action", "Click Checkout");

Support

For any issues or feature requests, visit shakebug.com or reach out to support.

License

ISC © Softnoesis