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

@tuned-tensor/pipeline-contract

v1.0.0

Published

Portable ordered Pipeline v1 contract for Tuned Tensor local and cloud runtimes

Downloads

253

Readme

@tuned-tensor/pipeline-contract

Portable, versioned Pipeline v1 contract intended to be shared by Tuned Tensor's local and hosted execution boundaries.

The package is the migration target for tuned-tensor-cli, tuned-tensor, and tuned-tensor-runs; those consumers have not yet been switched to this dependency.

This repository is deliberately contract-only. It defines parsing, normalization, dependency validation, canonical hashing, a JSON Schema, and golden fixtures. It does not contain local execution, AWS Step Functions states, Lambda ARNs, billing behavior, artifact transfer, or arbitrary plugin loading.

Pipeline v1

{
  "version": 1,
  "name": "default-cloud",
  "target": "cloud",
  "steps": [
    {
      "id": "baseline",
      "uses": "evaluate",
      "with": { "model": "base", "evaluator": "behavior" }
    },
    { "id": "train", "uses": "train" },
    {
      "id": "candidate",
      "uses": "evaluate",
      "with": { "model": { "from": "train.model" }, "evaluator": "behavior" }
    },
    {
      "id": "compare",
      "uses": "compare",
      "with": {
        "before": { "from": "baseline.report" },
        "after": { "from": "candidate.report" }
      }
    }
  ]
}

Bounded vocabulary

  • train produces model.
  • evaluate consumes "base" or a prior model reference and produces report.
  • compare consumes two distinct prior report references and produces comparison.
  • The only v1 evaluator is "behavior".
  • Documents contain 1–16 ordered steps.
  • V1 permits at most one training step because current model artifacts are run-scoped.
  • References must point backward to a compatible producer output.
  • Steps resolve to local or cloud placement during normalization.

The portable contract permits mixed placement so the CLI can plan explicit boundaries. validateCloudPipeline() rejects every local step; hosted execution must never silently reinterpret placement.

API

import {
  canonicalJson,
  canonicalPipeline,
  parsePipeline,
  PIPELINE_STEP_CAPABILITIES,
  pipelineHash,
  validateCloudPipeline,
} from "@tuned-tensor/pipeline-contract";

const plan = parsePipeline(input);
const identity = pipelineHash(plan);
const hostedPlan = validateCloudPipeline(input);
const defaultPlan = canonicalPipeline("cloud");

parsePipeline() is pure: it performs no network, storage, billing, quota, or execution actions.

Executor compatibility remains separate from document validity. A valid Pipeline v1 document may still be unsupported by a particular deployed executor, which must reject it before side effects.

Published artifacts

  • Runtime and TypeScript exports: package root
  • JSON Schema: @tuned-tensor/pipeline-contract/schema
  • Golden test vectors: @tuned-tensor/pipeline-contract/fixtures/*
  • Stable expected hashes: fixtures/hashes.json

The package is present on GitHub but has not yet been published to npm. Consumer migrations should pin the first reviewed release exactly rather than depending on the moving main branch.

Development

npm ci
npm run typecheck
npm test
npm run build
npm run package:lint
npm run pack:check
npm run pack:test

Release discipline

  • The document's version field tracks breaking schema semantics.
  • Package SemVer tracks implementation, fixture, and additive API changes.
  • Golden normalized documents and SHA-256 hashes must remain stable within Pipeline v1.
  • Execution-specific policies stay in the owning CLI, app, or hosted runner.

Licensed under Apache-2.0.