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

@xec-sh/ops

v0.9.0

Published

DevOps operations library — deploy, health checks, pipelines, discovery, workflows

Readme

@xec-sh/ops

DevOps operations library for deployments, pipelines, health checks, discovery, and configuration management.

Install

pnpm add @xec-sh/ops

Quick Start

import { Deployer, HealthChecker, Pipeline } from '@xec-sh/ops';

// Rolling deployment with health checks
const deployer = new Deployer({
  strategy: 'rolling',
  targets: ['web-1', 'web-2', 'web-3'],
  healthCheck: { type: 'http', url: '/health', interval: 5000 },
  hooks: {
    beforeDeploy: async (ctx) => console.log(`Deploying to ${ctx.target}`),
    afterDeploy: async (ctx) => console.log(`Done: ${ctx.target}`),
  },
});
const result = await deployer.deploy();
// Pipeline with DAG dependencies and matrix builds
const pipeline = new Pipeline({
  steps: [
    { name: 'lint', command: 'npm run lint' },
    { name: 'test', command: 'npm test', dependsOn: ['lint'], retry: 2 },
    { name: 'build', command: 'npm run build', dependsOn: ['test'],
      matrix: { node: ['18', '20'] },
      condition: () => process.env.CI === 'true',
      continueOnError: false },
  ],
});
const pipelineResult = await pipeline.run();
import { Workflow, Discovery, ConfigurationManager, SecretManager } from '@xec-sh/ops';

// Workflow with data passing between tasks
const workflow = new Workflow();
workflow.task('fetch', async (ctx) => {
  ctx.set('data', await fetchData());
});
workflow.task('process', async (ctx) => {
  const data = ctx.get('data');
  return transform(data);
}, { dependsOn: ['fetch'], onFailure: 'skip' });
await workflow.run();

// Service discovery across Docker, K8s, and SSH
const discovery = new Discovery();
const targets = await discovery.discover({ source: 'docker', filter: { label: 'app=web' } });

// Configuration with profiles and variable interpolation
const config = new ConfigurationManager({ paths: ['.xec/config.yaml'] });
const value = config.get('database.host');

// Secret management
const secrets = new SecretManager();
await secrets.set('API_KEY', 'secret-value');
const key = await secrets.get('API_KEY');

API

| Export | Description | |--------|-------------| | Deployer | Rolling, blue-green, canary, and all-at-once deployments | | Pipeline | DAG-based pipeline with matrix builds and conditions | | Workflow | Task workflow with data passing and failure handlers | | HealthChecker | HTTP, TCP, command, and custom health checks | | Discovery | Target discovery from Docker, K8s, SSH, custom sources | | RetryPolicy / retry | Exponential, linear, and fixed backoff with jitter | | ConfigurationManager | Config files, profiles, variable interpolation | | ConfigValidator | Configuration validation | | VariableInterpolator | Variable interpolation in config values | | TaskManager / TaskExecutor | Task definitions and execution | | TargetResolver | Resolve target configurations | | SecretManager | Secret storage and retrieval | | generateSecret / encrypt / decrypt | Cryptographic utilities | | generateCompletion | Shell completion generator (bash/zsh/fish) | | OutputFormatter | Formatted CLI output | | FileHelpers | File selection and discovery utilities | | executeScript / evaluateCode / startRepl | Script execution wrappers |

Features

  • Deployer with rolling, blue-green, canary, and all-at-once strategies
  • Deploy hooks (before/after), health checks, and automatic rollback
  • Pipeline with DAG dependencies, matrix builds, conditions, retry, and continueOnError
  • Workflow with data passing between tasks, parallel execution, and failure handlers
  • HealthChecker supporting HTTP, TCP, command, and custom checks with waitUntilHealthy
  • Discovery of targets from Docker, Kubernetes, SSH, and custom sources
  • RetryPolicy with exponential, linear, and fixed backoff plus jitter
  • ConfigurationManager with customizable paths, profiles, variable interpolation, and secrets
  • SecretManager for secure secret storage
  • Shell completion generator for bash, zsh, and fish
  • Script utilities: $, cd, pwd, env, echo, sleep, glob, fs, os, path, yaml, csv, diff, template, parseArgs, loadEnv, ps, which, fetch, quote, within, tmpdir, tmpfile, kit, log, prism, spinner

License

MIT