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

@rdfc/stream-utils

v0.0.1

Published

Common RDFC stream helping utilities (splitting, converging, buffering, etc.)

Readme

RDF Connect Utility Processors

This package provides a set of stream utility processors for RDF-Connect. They handle common stream control patterns such as duplicating, merging, and buffering messages.

Each processor is described in RDF (SHACL + RDF Connect vocab) and backed by a JavaScript implementation.

🔀 FanOutProcessor

IRI: rdfc:FanOut
Label: Fan Out Streams Processor
Description: Duplicates messages from a single reader into multiple writers.
By default, messages are forwarded to all writers in parallel, but sequential mode is also supported.

Arguments:

  • reader (rdfc:Reader, required): The input stream.
  • writers (rdfc:Writer[]): One or more output streams.
  • parallel (xsd:boolean, optional): If true (default), all writers are called concurrently; if false, writers are called in sequence.

Use case: Broadcasting one stream into multiple downstream consumers.

🔗 ConvergeProcessor

IRI: rdfc:Converge
Label: Stream Converging Processor
Description: Converges messages from multiple readers into a single writer.
Useful when several upstream sources should flow into the same sink.

Arguments:

  • readers (rdfc:Reader[]): One or more input streams.
  • writer (rdfc:Writer, required): The single output stream.

Behavior:

  • Messages from readers are interleaved into the writer.
  • By default, processing is sequential per message to avoid concurrency conflicts.
  • Fairness or strict ordering can be tuned by implementation (e.g., queuing vs. racing).

Use case: Merging multiple producers into one consumer.

📦 BufferProcessor

IRI: rdfc:Buffer
Label: Stream Buffering Processor
Description: Buffers messages so that writers can produce faster than the consumer processes them.
Allows up to n messages to be written in parallel before applying backpressure.

Arguments:

  • reader (rdfc:Reader, required): The input stream.
  • writer (rdfc:Writer, required): The output stream.
  • maxOngoing (xsd:integer, required): Maximum number of chunks being processed concurrently.

Behavior:

  • Reads chunks from the input and writes them to the output.
  • If maxOngoing is reached, the reader waits until one write finishes (Promise.race pattern).
  • Ensures throughput while controlling memory and concurrency.

Use case: Controlling backpressure and concurrency in high-throughput pipelines.