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

@kb-labs/adapters-pino

v2.94.0

Published

Pino adapter implementing ILogger interface

Readme

@kb-labs/adapters-pino

Part of KB Labs ecosystem. Works exclusively within KB Labs platform.

Production-ready structured logger based on Pino with streaming and analytics integration.

Overview

| Property | Value | |----------|-------| | Implements | ILogger | | Type | core | | Requires | None (optional: analytics) | | Category | Logging |

Features

  • Structured Logging - JSON-formatted logs with context
  • High Performance - Built on Pino (fastest Node.js logger)
  • Log Levels - trace, debug, info, warn, error, fatal
  • Pretty Printing - Human-readable output for development
  • Streaming Support - Buffered log streaming

Installation

pnpm add @kb-labs/adapters-pino

Configuration

Add to your kb.config.json:

{
  "platform": {
    "adapters": {
      "logger": "@kb-labs/adapters-pino"
    },
    "adapterOptions": {
      "logger": {
        "level": "info",
        "pretty": false,
        "streaming": {
          "enabled": true,
          "bufferSize": 1000,
          "bufferMaxAge": 3600000
        }
      }
    }
  }
}

Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | level | string | "info" | Minimum log level | | pretty | boolean | false | Enable pretty printing for development | | streaming.enabled | boolean | false | Enable log streaming/buffering | | streaming.bufferSize | number | 1000 | Buffer size for streaming | | streaming.bufferMaxAge | number | 3600000 | Max age of buffered logs (1 hour) |

Usage

Via Platform (Recommended)

import { usePlatform } from '@kb-labs/sdk';

const platform = usePlatform();

// Basic logging
platform.logger.info('Server started', { port: 3000 });
platform.logger.error('Request failed', { error, requestId });

// With child logger
const reqLogger = platform.logger.child({ requestId: 'req-123' });
reqLogger.info('Processing request');

Standalone (Testing/Development)

import { createAdapter } from '@kb-labs/adapters-pino';

const logger = createAdapter({
  level: 'debug',
  pretty: true
});

logger.info('Hello, world!');

Adapter Manifest

{
  id: 'pino-logger',
  name: 'Pino Logger',
  version: '1.0.0',
  implements: 'ILogger',
  optional: {
    adapters: ['analytics'],
  },
  capabilities: {
    streaming: true,
  },
}

Log Levels

| Level | When to use | |-------|-------------| | trace | Very detailed debugging info | | debug | Debugging information | | info | General operational events | | warn | Warning conditions | | error | Error conditions | | fatal | System is unusable |

FAQ

Set pretty: true in config or use environment:

KB_LOG_PRETTY=true pnpm dev

Use @kb-labs/adapters-pino-http as a transport to stream logs to REST API.

Related Adapters

| Adapter | Use Case | |---------|----------| | @kb-labs/adapters-pino-http | HTTP transport for remote logging | | @kb-labs/adapters-log-ringbuffer | In-memory log streaming | | @kb-labs/adapters-log-sqlite | Persistent log storage |

License

KB Public License v1.1 - KB Labs Team