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

@agentsmarket/pipeline-runtime

v0.5.0

Published

Runtime for executing PIPELINE.md workflows (multi-skill orchestration). Provider-agnostic (MiniMax, Claude, OpenAI).

Readme

@agentsmarket/pipeline-runtime

Executes PIPELINE.md files — multi-stage AI workflows.

Note (Phase 2): The production executor lives in @agentsmarket/server (Cloudflare Worker), which runs pipelines server-side at POST /v1/pipelines/:id/invoke with provenance signing. The bin/webhook.mjs HTTP server in this package is a local dev tool + self-hosting reference. Use it when you want to run pipelines outside the marketplace (e.g. for testing, custom deployments, or before publishing your pipeline to agentsmarket.world).

Quick start

import { MiniMaxProvider, runPipeline, runPipelineV2 } from '@agentsmarket/pipeline-runtime';

const provider = new MiniMaxProvider(); // reads MINIMAX_API_KEY env

const pipeline = {
  name: 'code-refactor',
  version: '1.0.0',
  stages: [
    {
      id: 'analyze',
      provider: 'minimax',        // R6: explicit provider declaration
      model: 'MiniMax-M3',
      system: 'You are a code analyzer.',
      prompt: 'Analyze this code: {{code}}. List 3 improvement opportunities.',
    },
    {
      id: 'refactor',
      provider: 'minimax',
      model: 'MiniMax-M3',
      depends_on: ['analyze'],
      system: 'You are a senior engineer.',
      prompt: 'Refactor the code based on: {{analyze}}. Original: {{code}}. Return only the refactored code.',
    },
  ],
};

const result = await runPipeline(pipeline, { code: '...' }, { provider });
console.log(result.refactor);

Provider ≠ Model (R6, v0.3)

As of R6 every LLM stage must declare both provider: and model:. Auto-dispatch by model name was removed. See docs/R6-PROVIDER-MODEL.md for the full design; quick reference:

stages:
  - id: analyze
    provider: minimax        # required — one of openai|anthropic|minimax|openrouter|replicate
    model: MiniMax-M3        # required — must be in PROVIDER_REGISTRY[provider].supportedModels
    prompt: ...

Use validateR6Spec(spec) (CLI / server) to fail-fast on invalid pairs:

import { validateR6Spec } from '@agentsmarket/pipeline-runtime';

const { errors } = validateR6Spec({
  stages: [{ id: 's0', provider: 'replicate', model: 'gpt-4o', prompt: 'x' }],
});
// errors[0]: "Stage 's0': Provider 'replicate' does not support model 'gpt-4o'.
//            Supported models for replicate: [...]"

For automated migration of legacy v0.2 pipelines:

import { migrateProviderField } from '@agentsmarket/pipeline-runtime';

const migrated = migrateProviderField(legacySpec); // adds provider: minimax to LLM stages

Provider abstraction

Pipelines reference models by name. The runtime picks a provider that knows that model:

  • minimax — MiniMax (default). Models: MiniMax-M3, MiniMax-M2.7, MiniMax-M1. Env: MINIMAX_API_KEY.
  • openai — OpenAI. Models: gpt-4o, gpt-4o-mini, o1-preview, o1-mini, gpt-3.5-turbo. Env: OPENAI_API_KEY.
  • anthropic — Anthropic. Models: claude-3-5-sonnet-20241022, claude-3-5-haiku-20241022, claude-3-opus-20240229. Env: ANTHROPIC_API_KEY.
  • openrouter — Multi-model gateway (supportedModels: ['*']). Env: OPENROUTER_API_KEY.
  • replicate — Replicate (image gen). Models: black-forest-labs/flux-pro, black-forest-labs/flux-schnell, stability-ai/sdxl. Env: REPLICATE_API_TOKEN.

Single source of truth: PROVIDER_REGISTRY in src/provider-registry.ts.

Status

v0.3 — R6 (Provider ≠ Model) shipped. Linear + DAG stage execution. Retry, parallel branches, checkpoint.