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

@flowwright/core

v0.2.0

Published

FlowWright SDK and execution-plan IR — typed pipeline composition.

Readme

@flowwright/core

@flowwright/core is FlowWright’s dependency-free authoring SDK and execution-plan contract. Pipeline closures record intent into a serializable, versioned IR that can be validated before any command executes.

FlowWright · CLI · Authoring guide

Use it

import {
  pipeline,
  stage,
  sh,
  onBranch,
  compilePipeline,
} from "@flowwright/core";

const definition = pipeline({
  name: "web-app",
  stages: [
    stage("Test", async () => {
      await sh`pnpm test`;
    }),
    stage("Deploy", {
      needs: ["test"],
      when: onBranch("main"),
      run: async () => void (await sh`pnpm deploy`),
    }),
  ],
});

const result = await compilePipeline(definition);
if (!result.ok) throw new Error(result.errors[0]?.message);

console.log(result.plan); // serializable ExecutionPlan

sh, artifact, and cache record during compilation; they do not execute commands in this package. The runtime consumes the resulting plan later.

Public surface

| Area | Main exports | |---|---| | Authoring | pipeline, stage, matrix, sh, artifact, cache, hashFiles | | Conditions | onBranch, onTag, and typed WhenDescriptor values | | Recording | buildExecutionPlan, compilePipeline | | Validation | validateExecutionPlan, validation result and error types | | Policy | policy, evaluatePolicy, Policy | | Contracts | ExecutionPlan, stage and step types, ExecEvent, status types, IR_VERSION |

The @flowwright/core/ir subpath exposes the IR contract directly.

Design boundary

pipeline closures ──record──▶ ExecutionPlan ──validate──▶ runtime
  • Closures build the plan but never cross the definition-to-execution boundary.
  • Stage bodies run once in recording mode with effect primitives replaced by recorders.
  • A body that cannot be fully recorded is marked dynamic rather than silently executed.
  • The IR remains plain serializable data suitable for validation, policy, storage, and transport.
  • This package does not schedule stages, spawn processes, persist runs, or serve HTTP.

Development

$ pnpm --filter @flowwright/core typecheck
$ pnpm --filter @flowwright/core test
$ pnpm --filter @flowwright/core build

Tests cover pipeline recording, stable stage IDs, matrices, command forms, file hashing, IR validation, and policy evaluation.

Requires Node.js 24+. Licensed under MIT.