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

@observability-os/sdk

v0.1.1

Published

**Zero-dependency TypeScript logger SDK** for [ObservabilityOS](https://github.com/Vaibhav-Singh2/ObservabilityOS) — an AI-native DevOps intelligence and log analytics platform.

Readme

@observability-os/sdk

Zero-dependency TypeScript logger SDK for ObservabilityOS — an AI-native DevOps intelligence and log analytics platform.

Features

  • Zero runtime dependencies — uses only built-in fetch, setInterval, clearInterval
  • Batch-and-flush architecture — logs are queued in memory and flushed when the batch size or flush interval is reached
  • Automatic retry — failed API calls re-queue logs for the next flush attempt
  • Timer safety — flush interval uses .unref() so it doesn't block Node.js process exit
  • TypeScript first — full type definitions included

Installation

npm install @observability-os/sdk
# or
yarn add @observability-os/sdk
# or
pnpm add @observability-os/sdk

Quick Start

import { Logger } from "@observability-os/sdk";

const logger = new Logger({
  apiKey: "your-api-key",
  defaultService: "my-app",
  defaultEnvironment: "prod",
});

logger.info("Application started");
logger.warn("High memory usage", { metadata: { memoryMb: 2048 } });
logger.error("Failed to connect to database", {
  service: "db-worker",
  traceId: "abc-123",
});

API

LoggerConfig

| Option | Type | Default | Description | |---|---|---|---| | apiKey | string | — | API key for the ingestion endpoint | | endpoint | string | http://localhost:3000/api/ingest | Ingestion API URL | | defaultService | string | — | Default service name for logs | | defaultEnvironment | "prod" \| "staging" \| "dev" | "dev" | Default deployment environment | | batchSize | number | 20 | Logs queued before automatic flush | | flushIntervalMs | number | 1000 | Interval in ms between automatic flushes (set to 0 to disable) |

LogOptions

| Option | Type | Description | |---|---|---| | service | string | Override the service name for this log | | environment | "prod" \| "staging" \| "dev" | Override the environment for this log | | timestamp | Date | Custom timestamp (defaults to new Date()) | | traceId | string | Trace identifier for distributed tracing | | metadata | Record<string, any> | Arbitrary key-value metadata |

Logger methods

| Method | Description | |---|---| | log(level, message, options?) | Log at any severity level | | info(message, options?) | Log at info level | | warn(message, options?) | Log at warn level | | error(message, options?) | Log at error level | | debug(message, options?) | Log at debug level | | flush() | Immediately flush all queued logs | | destroy() | Clear the flush interval timer for cleanup |

Architecture

Logs are queued in memory and flushed to the ObservabilityOS ingestion API in batches. If the API is unreachable or returns an error, logs are automatically re-queued and retried on the next flush cycle.

Your App → Logger.log() → In-memory Queue → /api/ingest → ObservabilityOS
                          (flush on batch  │
                           size or timer)  └→ Re-queue on failure

License

MIT