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

@specs-feup/onnx-flow

v1.0.7

Published

Tool to convert an ONNX graph into a data-flow graph (DFG), decomposing its high-level operations into low-level operations and performing a set of optimizations.

Readme

@specs-feup/onnx-flow

A high-performance tool for decomposing and optimizing ONNX models into hardware-aware data-flow representations.

onnx-flow transforms high-level neural network operations (like AveragePool, Conv, or Softmax) into lower-level operations (suitable for offloading). It enables decompositions, explicit loop-lowering, optimizations (such as loop fusion), and graph partitioning for distributed workloads. Outputs can be generated in ONNX, JSON and DOT formats with multiple visualization options.


Key Features

  • Operation Decomposition: Transforms high-level neural network operations (like AveragePool, Conv, or Softmax) into lower-level primitives suitable for offloading.
  • Optimizations: Applies advanced optimizations, such as loop fusion, to streamline execution.
  • Graph Partitioning: Supports splitting graphs into partitions to facilitate distributed workloads, automatically managing boundary tensors.
  • Multi-Format Output: Generates processed graphs in ONNX, JSON, and DOT formats to suit various integration needs.
  • Visualization: Provides multiple visualization options, including static SVG rendering and interactive Graphviz Online links.

Installation

To install the package via npm:

npm install @specs-feup/onnx-flow

CLI Usage

The CLI is the primary way to transform models. It supports both .onnx binaries and .json flow-graph exports.

onnx-flow <input_file> [options]

1. Partitioning Options

Overrides transformation options to ensure split-point stability.

  • --partition, --pt <nodeId | OpType Instance>: Partition the graph into head/tail at a specific node (e.g., --pt 12 or --pt MatMul 2).

2. Transformation & Optimization

  • -f, --fuse: Fuse supported operators into a single Loop (Default: true).
  • -c, --coalesce: Use coalesced scalar MAC for MatMul inside Loop bodies (Default: true).
  • -r, --recurse: Recursively decompose generated loop bodies (Default: false).
  • --ll, --loopLowering: Enable explicit Loop node generation (Default: true).
  • --dgc, --decomposeForCgra: Apply CGRA-specific decomposition logic.

3. Output & Visualization

  • -o, --output <path>: Save the resulting graph to a specific file.
  • --fm, --format <json|dot>: Choose output format, besides reconverted ONNX (Default: json).
  • --vz, --visualization <0|1|2>: 0 = None, 1 = Graphviz Online link, 2 = Local server.
  • --fmtr, --formatter <default|cgra>: Choose the DOT styling engine.

4. Other

  • --version: Show version number.
  • --help: Show detailed usage.

License

Licensed under the Apache 2.0 License.