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

tell-node

v0.1.1

Published

Tell SDK for Node.js — analytics events and structured logging

Readme

tell-node

Tell SDK for Node.js — analytics events and structured logging.

Install

# npm
npm install tell-node

# yarn
yarn add tell-node

# pnpm
pnpm add tell-node

# bun
bun add tell-node

Quick Start

import { Tell } from "tell-node";

const tell = new Tell({ apiKey: "your-api-key" });

// Track an event
tell.track("user_123", "Sign Up", { plan: "pro" });

// Identify a user
tell.identify("user_123", { name: "Alice", email: "[email protected]" });

// Structured logging
tell.logInfo("User signed up", "auth", { userId: "user_123" });

// Flush and close before process exit
await tell.close();

API

new Tell(config)

Creates a new Tell instance. Each instance manages its own batching, transport, and lifecycle.

const tell = new Tell({
  apiKey: "your-api-key",
  // All options below are optional:
  endpoint: "https://collect.tell.app",  // default
  batchSize: 100,                         // events per batch
  flushInterval: 10_000,                  // ms between auto-flushes
  maxRetries: 3,                          // retry attempts on failure
  closeTimeout: 5_000,                    // ms to wait on close()
  networkTimeout: 30_000,                 // ms per HTTP request
  logLevel: "info",                       // "error" | "warn" | "info" | "debug"
  source: os.hostname(),                  // source identifier
  disabled: false,                        // disable all tracking
  maxQueueSize: 1000,                     // max queued items
  gzip: false,                            // gzip request bodies
  onError: (err) => console.error(err),   // error callback
  beforeSend: (event) => event,           // transform/filter events
  beforeSendLog: (log) => log,            // transform/filter logs
});

Events

tell.track(userId, eventName, properties?)
tell.identify(userId, traits?)
tell.group(userId, groupId, properties?)
tell.revenue(userId, amount, currency, orderId, properties?)
tell.alias(previousId, userId)

Logging

tell.log(level, message, service?, data?)

// Convenience methods
tell.logEmergency(message, service?, data?)
tell.logAlert(message, service?, data?)
tell.logCritical(message, service?, data?)
tell.logError(message, service?, data?)
tell.logWarning(message, service?, data?)
tell.logNotice(message, service?, data?)
tell.logInfo(message, service?, data?)
tell.logDebug(message, service?, data?)
tell.logTrace(message, service?, data?)

Lifecycle

await tell.flush()    // flush all pending events and logs
await tell.close()    // flush + shut down (call before process exit)

Config Presets

import { Tell, development, production } from "tell-node";

// Development: localhost:8080, small batches, debug logging
const dev = new Tell(development("your-api-key"));

// Production: default endpoint, error-only logging
const prod = new Tell(production("your-api-key"));

License

MIT