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

@wiktorekdev/logsy

v0.2.3

Published

Zero-config, pretty terminal logger for Node.js

Readme

logsy

Zero-config, pretty terminal logger for Node.js. Works in Express APIs, Discord bots, CLI tools, or anything else you're building.

12:34:56 › ℹ info     Server listening on port 3000
12:34:56 › ✔ success  Database connected
12:34:57 › ⚠ warning  Rate limit approaching  { requests: 980, limit: 1000 }
12:34:58 › ✖ error    Connection refused

Install

npm install @wiktorekdev/logsy

Usage

import { logger } from "@wiktorekdev/logsy";

logger.info("Server started", { port: 3000 });
logger.success("Database connected");
logger.warn("High memory usage", { used: "1.2gb" });
logger.error("Unhandled error", new Error("Something broke"));
logger.debug("Incoming request", { method: "GET", path: "/" });

Per-module loggers

import { Logger } from "@wiktorekdev/logsy";

const db  = new Logger({ prefix: "db" });
const bot = new Logger({ prefix: "bot" });

db.info("Running migrations");
bot.info("Logged in as MyBot#1234");

Output:

12:34:56 [db] › ℹ info     Running migrations
12:34:56 [bot] › ℹ info     Logged in as MyBot#1234

Options

const log = new Logger({
  level: "warn",       // minimum level to output, or "silent" (default: "debug")
  prefix: "api",       // shown before every message
  timestamps: true,    // include timestamps (default: true)
  noColor: false,      // strip ANSI colors (auto-detected when not a TTY)
  json: false,         // use newline-delimited JSON output for production
  context: { id: 1 },  // key-value pairs merged into all log data
});

Log levels

| Method | Icon | When to use | |---|---|---| | debug | ● | Internal state, request details | | info | ℹ | Normal operational events | | success | ✔ | Something completed successfully | | warn | ⚠ | Something unexpected but recoverable | | error | ✖ | Something failed | | fatal | ✖ | Something fatally failed; also calls process.exit(1) |

Passing data

Any second argument gets pretty-printed below the message:

logger.info("User created", { id: 42, email: "[email protected]" });
logger.error("Query failed", new Error("Connection timeout"));

Errors print the full stack trace. Objects are formatted as indented JSON.

Production

Set level: "warn" to silence debug and info logs:

const log = new Logger({
  level: process.env.NODE_ENV === "production" ? "warn" : "debug",
});

Colors

Color output is automatically disabled when stdout isn't a TTY (e.g. when piping to a file or running in CI). You can also disable manually with noColor: true.

Why choose logsy?

The Node.js logging ecosystem is huge, but it's largely divided into two camps: massive enterprise loggers (Winston, Pino) that require tons of boilerplate/plugins, and beautiful UI loggers (Signale, Consola) that are packed with excessive features that bloat your project.

logsy sits perfectly in the middle.

  • 0 dependencies: Extremely lightweight. Doesn't bloat your node_modules or bundle size.
  • Signale-tier aesthetics: Gorgeous, modern terminal output with correct alignments, truecolor/Hex support, and smart fallbacks for older terminals.
  • Production-ready: Ships with a built-in json: true toggle. Locally, it's beautiful. On your server, it's structured NDJSON.
  • Zero-config: Works perfectly out of the box. No formatting functions to compose, no transports to wire up.

Comparisons

  • winston – needs 20+ lines of config and plugins just to look decent.
  • pino – incredibly fast, but raw JSON isn't readable during development without running a separate pino-pretty process (which is massive and annoying to pipe).
  • signale – virtually abandoned, has 13+ transitive dependencies, and lacks first-class NDJSON support for log aggregators like Datadog.
  • consola – excellent, but ships with prompt systems, reporters, and utility features that you likely don't need if you just want to log things.

License

MIT