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

healcode-client

v1.0.10

Published

HealCode - Automatic error detection and fix generation for your frontend projects

Readme

@healcode/client

🩺 HealCode - Automatic error detection and fix generation for your frontend projects.

Installation

npm install @healcode/client

Quick Start

1. Initialize in your project

npx healcode init

This will prompt you for your HealCode token and create a healcode.config.json file.

2. Import in your app

// main.ts or index.js
import { initFromConfig } from '@healcode/client';

initFromConfig();

Or with manual configuration:

import { HealCode } from '@healcode/client';

const healcode = new HealCode({
  token: 'hc_your_token_here',
  endpoint: 'https://api.healcode.io', // optional
  enabled: true,
  captureConsoleErrors: true,
  captureUnhandledRejections: true,
  maxBreadcrumbs: 20,
});

Features

  • 🔍 Automatic Error Capture - Catches window errors, console.error, and unhandled rejections
  • 🍞 Breadcrumbs - Tracks user interactions leading up to errors
  • 🔧 Auto-Fix - Generates and creates PRs with fixes automatically
  • 🔒 Secure - Your repository tokens are encrypted
  • 📊 Dashboard - View all errors and fixes at healcode.io

CLI Commands

npx healcode init      # Initialize HealCode in your project
npx healcode status    # Check configuration status
npx healcode enable    # Enable error tracking
npx healcode disable   # Disable error tracking

Manual Error Capture

import { captureError, addBreadcrumb } from '@healcode/client';

// Add custom breadcrumb
addBreadcrumb('user.action', 'User clicked checkout button', { cartItems: 3 });

// Manually capture an error
try {
  riskyOperation();
} catch (error) {
  captureError(error.message, error.stack);
}

Configuration Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | token | string | required | Your HealCode integration token | | endpoint | string | https://api.healcode.io | API endpoint | | enabled | boolean | true | Enable/disable tracking | | captureConsoleErrors | boolean | true | Capture console.error calls | | captureUnhandledRejections | boolean | true | Capture unhandled promise rejections | | maxBreadcrumbs | number | 20 | Maximum breadcrumbs to store | | beforeSend | function | - | Modify or filter errors before sending |

beforeSend Hook

const healcode = new HealCode({
  token: 'hc_...',
  beforeSend: (payload) => {
    // Filter out specific errors
    if (payload.message.includes('ResizeObserver')) {
      return null; // Don't send
    }
    
    // Modify payload
    payload.message = payload.message.replace(/secret/gi, '[REDACTED]');
    return payload;
  },
});

License

MIT