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

lumberjack-js-sdk

v0.1.0

Published

Monorepo for Lumberjack JavaScript/TypeScript SDK packages

Readme

Lumberjack JavaScript/TypeScript SDK

A comprehensive logging and tracing SDK for JavaScript and TypeScript applications, with built-in support for Next.js and other modern frameworks.

Features

  • 🚀 Zero-configuration setup - Works out of the box with sensible defaults
  • 🔍 Automatic tracing - Uses AsyncLocalStorage for request-scoped trace context
  • 🐛 Global exception handling - Captures unhandled errors and promise rejections
  • 📝 Console capture - Optional monkey-patching of console methods
  • Next.js integration - Purpose-built middleware for Next.js applications
  • 📦 TypeScript support - Full type safety with declaration files
  • 🎯 Lightweight - Minimal dependencies and optimized for performance

Installation

For Next.js Applications

npm install @lumberjack-sdk/core@alpha @lumberjack-sdk/nextjs@alpha

For Other Applications

npm install @lumberjack-sdk/core

Quick Start

Basic Setup

import { init, log } from "@lumberjack-sdk/core";

// Initialize the SDK
init({
  apiKey: "your-api-key",
  projectName: "my-app",
  captureConsole: true,
  captureUnhandled: true,
});

// Start logging
log.info("Application started", { version: "1.0.0" });
log.error("Something went wrong", { error: new Error("Example error") });

API Reference

Core SDK

Initialization

import { init } from "@lumberjack-sdk/core";

const sdk = init({
  apiKey: "your-api-key",
  projectName: "my-app",
});

Logging

import { log } from "@lumberjack-sdk/core";

log.trace("Detailed debug info");
log.debug("Debug information");
log.info("General information");
log.warn("Warning message");
log.error("Error message", { error: new Error("Something failed") });
log.fatal("Critical error");

Manual Tracing

import { trace } from "@lumberjack-sdk/core";

// Start a trace
const traceId = trace.start("user-registration", { userId: "123" });

try {
  // Your business logic
  await registerUser();

  // Mark success
  trace.end(true, { success: true });
} catch (error) {
  // Mark failure
  trace.end(false, { error: error.message });
}

Context Access

import { LumberjackContext } from "@lumberjack-sdk/core";

// Get current trace ID
const traceId = LumberjackContext.getTraceId();

// Get current span ID
const spanId = LumberjackContext.getSpanId();

// Set custom context data
LumberjackContext.set("userId", "123");
const userId = LumberjackContext.get("userId");