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

logry

v2.1.6

Published

🌌 Logging built for humans, everywhere JavaScript runs.

Readme

Console-first, native, and universal logging for JavaScript.
A modular pipeline for structured and extensible log flows.

NPM version Bundle size Coverage Status TypeScript License

Built for human-readable logs first, not added later.

Features

  • 🌐 Runtime-agnostic β€” consistent logging across all JavaScript runtimes, built on the native console.
  • 🌊 Hook-based pipeline β€” a composable logging flow, fully customizable with hooks and plugins.
  • 🎨 Render & styling β€” fine-grained control over layout and visual presentation.

Installation

# npm
npm install logry

# yarn
yarn add logry

# pnpm
pnpm add logry

Or load it directly from a CDN:

import { logry } from "https://cdn.jsdelivr.net/npm/logry/+esm";

Quick Start

The examples below work wherever JavaScript runs.

Create a logger

  • Create a logger instance for consistent configuration across your application.
import { logry } from "logry";

const logger = logry();

logger.error("Authentication failed.");

Standalone logging

  • Use standalone methods for simple, one-off logs.
import { error } from "logry";

error("Unexpected error.");

Configuration

Configure a logger when creating it, or adjust behavior for a single log entry.

  • Create-time configuration
const logger = logry({
  id: "my-logger", // Logger identity
  level: "trace", // Minimum log level
  scope: ["api", "auth"], // Default scope
  context: { ver: "1.2.1" }, // Shared context for all logs
  preset: "pretty", // Preset for default behavior

  // Pipeline configurations
  normalizeConfig: { meta: { errorStackLines: 5 } },
  formatConfig: { timestamp: { format: "iso" } },
  renderConfig: { message: { prefix: "⚑️ ", marginAfter: 1 } },
  printConfig: { consoleMode: "log", lineBreaksAfter: 1 },
});
  • Runtime options
logger.warn("A msg.", { scope: "login", printConfig: { lineBreaksBefore: 2 } });

Method overloads

Log methods support flexible argument patterns:

// log(message, options?)
log("Message", options);

// log(meta, options?)
log({ key: "value" }, options);

// log(message, meta, options?)
log("Message", { key: "value" }, options);

Hooks & Plugins

Logry is built around a hook-based pipeline,
making it easy to customize behavior or build plugins.

Official Plugins

  1. Discord plugin β€” send logs to Discord via webhooks
import { discordPlugin } from "logry/plugins";

logger.use(discordPlugin("https://discord.com/api/webhooks/13869..."));

More official plugins are under development.