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

node-huntglitch

v1.0.5

Published

A lightweight utility to send error logs to the HuntGlitch logging service.

Downloads

20

Readme

npm downloads license

HuntGlitch is a developer-first app monitoring platform that helps you instantly detect and fix bugs, broken code, crashes, and false API calls with ease. It gives you answers—not vague hints—so you can move faster and build with confidence.

Built to streamline error tracking across services, HuntGlitch automatically captures HTTP context, request headers, and classifies issues intelligently—all with minimal setup.


🚀 Motivation

Manually managing error logging across microservices is repetitive, time-consuming, and prone to mistakes. This package streamlines the process into a single function call using environment-specific keys—perfect for debugging APIs, tracking failed requests, and enhancing overall observability.


📦 Installation

npm install node-huntglitch

🔐 Environment Setup

Create a .env file in your project root:

PROJECT_KEY=your_project_key
DELIVERABLE_KEY=your_deliverable_key

You can obtain these from the HuntGlitch Portal.


🛠️ Usage

const { Log } = require("node-huntglitch");

exports.controller = async () => {
  try {
    // Your business logic here
  } catch (error) {
    await Log({
      error,
      logType: 5, 
      headers: {
        "Content-Type": "application/json"
      },
      method: "GET",
      endPoint: "https://api.huntglitch.com/add-log",
      requestIp: "User's IP goes here"
    });
  }
};

📋 Props Reference

| Prop | Type | Description | Example | |-------------|----------|-----------------------------------------------------------------|------------------------------------------------------| | error | object | JavaScript error object to log | error | | logType | number | Log level: 1=debug, 2=warning, 3=notice, 4=info, 5=error (default) | 5 | | method | string | HTTP method used in the request | GET, POST, PUT | | endPoint | string | Full API endpoint where the error occurred | https://api.huntglitch.com/add-log | | requestIp | string | IP address from which the request originated | User's IP goes here | | headers | object | Optional headers sent with the request | { "Content-Type": "application/json" } |

📊 Example Use Cases

  • Log failed API requests with trace context
  • Track errors by endpoint and client IP
  • Attach request headers and log level
  • Enable observability in serverless, monolith, or microservices

🛠 Support

We are committed to ensuring your experience with this package is seamless and productive.

📧 Email: [email protected]

If you require assistance with integration, need guidance on specific features, or encounter any issues, our support team will be happy to help. We strive to provide timely and effective solutions so you can continue your work without interruption.


�� Acknowledgements

Thanks to the HuntGlitch team and community for helping improve API logging visibility across development teams.