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

@parallelworks/workflow-parser

v0.2.0

Published

Workflow expression parser and pure workflow logic for Parallel Works ACTIVATE: the WASM expression evaluator, workflow-to-form conversion, log segment parsing, and run/matrix helpers

Readme

@parallelworks/workflow-parser

The pure workflow logic behind Parallel Works ACTIVATE: the ${{ }} expression evaluator (compiled to WebAssembly), workflow-to-form conversion, run and matrix status helpers, and log segment parsing. No React, no network calls, no ACTIVATE API client: everything here is a function over workflow YAML, form values, or log text.

Expression evaluation

Workflow YAML may interpolate ${{ inputs.region }}, ${{ org.foo }}, and friends. The evaluator is the same implementation the backend runs, compiled to WASM so the browser resolves expressions identically.

import {
  initializeParseStringsOfObj,
  parseStringsOfObj,
  containsExprJS,
} from '@parallelworks/workflow-parser'

await initializeParseStringsOfObj()

const resolved = parseStringsOfObj({
  inputs: { region: 'us-east-1' },
  obj: workflowSchema,
  orgVars: { bucket: { value: 'my-bucket' } },
})

initializeParseStringsOfObj fetches parseWorkflow.wasm relative to the module URL and instantiates it, so it requires a browser (or any environment with fetch and WebAssembly.instantiateStreaming) and a bundler that emits the binary as an asset. Pass wasmUrl to point it somewhere else, for example a host serving a precompressed copy:

await initializeParseStringsOfObj({ wasmUrl: '/assets/parseWorkflow.wasm' })

Until the runtime is ready parseStringsOfObj returns its input unchanged, so callers can render before initialization completes and re-render after. callWhenParserInitialized subscribes to that transition. containsExprJS is a cheap pre-check that skips the WASM boundary for expression-free values, and extractInputDeps reports which top-level inputs a schema references, so a form can recompute only the fields an edit can affect.

Workflow forms

import {
  convertToDynamicForm,
  prepareSubmittableValues,
  workflowHasUserInputs,
} from '@parallelworks/workflow-parser'

convertToDynamicForm turns a workflow's on.execute.inputs schema into the field tree a dynamic form renders; prepareSubmittableValues runs the reverse trip, dropping fields the schema ignores and shaping the rest into a run submission.

Runs, matrices, and logs

import {
  computeMatrixAggStatus,
  detectMatrixGroups,
  isRunActive,
  canCancelRun,
  parseAnsiSegments,
  parseWorkflowCommand,
} from '@parallelworks/workflow-parser'

detectMatrixGroups groups expanded matrix jobs back under their original job, and computeMatrixAggStatus folds a group's statuses into one status plus a human label. parseAnsiSegments splits a log line into styled segments, and parseWorkflowCommand recognizes the ::error:: and ::group:: annotation lines a workflow emits to structure its own output.