DEV Community

Cover image for Crash reports and usage metrics for JavaScript libraries
Sophia
Sophia

Posted on

Crash reports and usage metrics for JavaScript libraries

At Bugout.dev (https://bugout.dev/) we've built a product that helps maintainers of APIs, libraries, and command line tools understand:

  1. Who their users are
  2. How exactly they use their software
  3. What issues their users have

If you have built a developer tool and integrate with Bugout, it runs on your user's machines only with their consent. This provides you with rich information about your users. For example, operating system, CPU architecture, version of your tool they are using, and even their email in case they are having an issue and would like your help resolving it.

This week, we released the Javascript version of our usage and crash reporting library, Humbug:

GitHub logo bugout-dev / humbug

Get usage metrics and crash reports for your API, library, or command line tool.

humbug

Humbug helps you understand what keeps users coming back to your developer tool as well as any friction they experience.

Humbug lets you collect basic system information and crash reports while respecting your users' privacy. In addition to getting reports, you get to be GDPR-compliant from day one.

Humbug is currently available in the following programming languages:

  1. Python

    • System information report
    • Error traceback report
    • Packages available in the current Python process report
    • Logs report
    • Environment variables report
    • Custom report with full content control
  2. Go

    • System information report
    • Panic report
    • Custom report with full content control
  3. Javascript

    • System information report
    • Error traceback report

If you would like support for another programming language, please create an issue.


Using Humbug

Setup

Follow the instructions in the Getting started with usage and crash reporting guide.

From development to production

We recommend generating one token for development and testing and using different…

We currently support Node.js as the Javascript runtime, although we plan to add browser support soon.

Our package is available on npm:

npm install @bugout/humbug
Enter fullscreen mode Exit fullscreen mode

If you have a tool in which you'd like to try Bugout, you can start for free by signing up for an account at https://bugout.dev.

If you need any help getting started, please leave a comment and we'll help you as soon as we can. We also appreciate any feedback.

Thank you!

Top comments (0)