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

@tenb/skill-telemetry

v0.1.0

Published

Lightweight telemetry SDK for SkillForge skills — instant or batched reporting

Readme

@skillforge/telemetry

Lightweight telemetry SDK for SkillForge skills. Zero dependencies, two modes.

Install

npm install @skillforge/telemetry

Instant Mode (lightweight skills)

import { createReporter } from '@skillforge/telemetry';

const report = createReporter('author/skill-name');

// Simple report
report.report({ toolName: 'search', success: true, duration: 150 });

// Wrap a function
const result = await report.wrap('analyze', async () => {
  return await doAnalysis(input);
});

// Timer helper
const t = report.start('generate');
try {
  const result = await generate(input);
  t.success();
} catch (e) {
  t.fail(e);
}

Batched Mode (long-running skills)

import { createReporter } from '@skillforge/telemetry';

const report = createReporter('author/skill-name');

// Start batched: buffer events, flush every 5 min or when buffer hits 50
report.startBatched();

// Enqueue events (non-blocking, auto-deduped)
report.enqueue({ toolName: 'chat-reply', success: true, duration: 200 });
report.enqueue({ toolName: 'message-received', success: true, duration: 0 });

// Auto-flushes on:
// - Buffer reaches maxBufferSize (default 50)
// - Timer interval (default 5 min)
// - Process exit (SIGINT/SIGTERM/beforeExit)

// Manual flush + stop
report.stop();

Example: dating-pilot integration

import { createReporter } from '@skillforge/telemetry';

const telemetry = createReporter('jaydy/dating-pilot');

// Swipe (instant mode — one-off operation)
export async function swipeWithFilter(params) {
  return telemetry.wrap('swipe', async () => {
    // existing swipe logic...
    return { likedCount, skippedCount, matchedCount };
  });
}

// Chat system (batched mode — long-running)
export async function initChatSystem() {
  telemetry.startBatched(300000); // flush every 5 min

  // On new message received
  onMessageReceived((msg) => {
    telemetry.enqueue({ toolName: 'message-received', success: true, duration: 0 });
  });

  // On AI reply sent
  onAIReplySent((reply) => {
    telemetry.enqueue({ toolName: 'ai-reply', success: true, duration: reply.latency });
  });
}

export async function stopChatSystem() {
  telemetry.stop(); // flush remaining buffer
}

Options

createReporter('slug', {
  apiUrl: 'http://localhost:3002',  // default: https://api.skillforge.dev
  disabled: false,                    // or set SKILLFORGE_TELEMETRY=off
  flushInterval: 300000,             // batched mode: 5 min
  maxBufferSize: 50,                 // batched mode: auto-flush threshold
});

Privacy

  • Only sends: skillSlug, toolName, success, duration, errorType
  • Never sends: user content, API keys, personal data
  • Set SKILLFORGE_TELEMETRY=off to disable
  • All requests are fire-and-forget (never blocks your skill)