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

@flowscripter/pluggable-io-framework-api

v1.0.7

Published

API for the https://github.com/flowscripter/pluggable-io-framework

Readme

pluggable-io-framework-api

version build docs license: MIT

API for the https://github.com/flowscripter/pluggable-io-framework

Key Features

  • Defines the IOProviderFactory/IOProvider contract that source/sink plugins (e.g. local filesystem, object storage) implement which are then discovered and loaded via dynamic-plugin-framework.
  • IOProvider, StreamHandle and Part are tagged with the single ChunkKind ("js" or "native") a provider natively produces/consumes - streams are homogeneous, so consumers never test each chunk's kind. A mismatch between two linked streams is decided once per link via adaptReadableStream, not once per chunk.
  • JsChunk/NativeChunk: a tagged-union stream payload that carries memory ownership/origin with it, enabling zero-copy handoff to/from Rust-FFI-backed providers and decorators, with a small adapter to the standard Web Streams ReadableStream<Uint8Array>/WritableStream<Uint8Array> for interop (fetch, pipeTo, etc.).
  • Capabilities beyond plain streaming (e.g. seekable) are modeled as small interfaces (Seekable, RangeReadable) with co-located type guards (isSeekable, isRangeReadable).
  • Well-known item properties (size, lastModified, isFolder, contentType) are default for every provider.
  • A provider-specific properties extension bag supports other properties (e.g. etag, storage class, custom tags).
  • Provider config and per-item property schemas are defined with Zod.
  • Multipart transfers are modeled as a stream of independently readable/writable Part handles allowing parts to be processed concurrently.
  • A global TelemetryHooks object is supplied once at initialisation and every operation reports through it tagged with a correlation ID.
  • Disposal is Symbol.asyncDispose (TC39 explicit resource management) - await using provider = await factory.createProvider(config) disposes deterministically, including on thrown errors.
  • See pluggable-io-framework for orchestration and io-plugin-filesystem for a reference implementation.

Development

Install dependencies:

bun install

Build (produces dist/ for Node.js and TypeScript consumers; Bun uses raw source directly):

bun run build

Test:

bun test

Format:

bunx oxfmt

Lint:

bunx oxlint index.ts src/ tests/

Generate HTML API Documentation:

bunx typedoc index.ts

Documentation

Overview

classDiagram
    IOProviderFactory --> IOProvider : creates
    IOProvider --> StreamHandle : returns (kind K)
    IOProvider --> Part : returns (multipart, kind K)
    StreamHandle --> JsChunk : streams (kind "js")
    StreamHandle --> NativeChunk : streams (kind "native")
    IOProvider --> ItemProperties : returns

    class IOProviderFactory {
      +configSchema
      +propertySchema
      +createProvider(config)
    }
    class IOProvider {
      +kind: K
      +[Symbol.asyncDispose]()
      +list(path, options)
      +getProperties(path)
      +setProperties(path, properties)
      +delete(path)
      +getReadableStream(path)
      +getWritableStream(path)
      +getMultipartReader(path)
      +getMultipartWriter(path)
      +canDirectTransfer(other)
      +directCopy(sourcePath, destPath)
      +directMove(sourcePath, destPath)
    }

API

Link to auto-generated API docs:

API Documentation

License

MIT © Flowscripter