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

@orient-bot/core

v1.1.0

Published

Shared utilities, types, and configuration for Orient

Downloads

258

Readme

@orient-bot/core

Shared utilities, types, and configuration for the Orient.

Features

  • Configuration: Zod-validated configuration with environment variable substitution
  • Logger: Structured logging with Winston, log rotation, and sensitive data redaction
  • Types: Common type definitions used across all packages
  • Utils: Utility functions for common operations

Installation

pnpm add @orient-bot/core

Usage

Configuration

import { loadConfig, getConfig } from '@orient-bot/core';

// Load configuration from file and environment
const config = loadConfig();

// Access configuration values
console.log(config.organization.name);
console.log(config.integrations.jira.host);

Logger

import { createServiceLogger, logger } from '@orient-bot/core';

// Use the main logger
logger.info('Application started');

// Create a service-specific logger
const serviceLog = createServiceLogger('my-service');
serviceLog.info('Service initialized');

// Track operations with timing
const op = serviceLog.startOperation('fetchData');
try {
  await fetchData();
  op.success('Data fetched');
} catch (error) {
  op.failure(error);
}

Types

import type { JiraIssue, ChatPermission, WhatsAppMessage } from '@orient-bot/core';

const issue: JiraIssue = {
  id: '10001',
  key: 'PROJ-123',
  summary: 'Example issue',
  // ...
};

Utils

import { sleep, retryWithBackoff, formatDuration, isProduction } from '@orient-bot/core';

// Wait for a duration
await sleep(1000);

// Retry with exponential backoff
const result = await retryWithBackoff(
  () => fetchWithRetry(),
  3, // max retries
  1000 // initial delay
);

// Format duration
console.log(formatDuration(125000)); // "2m 5s"

// Environment checks
if (isProduction()) {
  // Production-specific code
}

Configuration File

The config loader looks for configuration in this order:

  1. .mcp.config.local.json
  2. .mcp.config.json
  3. mcp-config.json
  4. config.json
  5. config/app.json

Environment variables can be substituted using ${VAR_NAME} syntax:

{
  "integrations": {
    "jira": {
      "apiToken": "${JIRA_API_TOKEN}"
    }
  }
}

Development

# Build
pnpm build

# Run tests
pnpm test

# Type check
pnpm typecheck