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

@ludoows/tubby

v1.0.0

Published

Pipeline orchestrator for TypeScript. Lightweight, expressive, fully typed.

Readme

@ludoows/tubby

Pipeline orchestrator for TypeScript — lightweight, expressive, fully typed.

npm install @ludoows/tubby

What it does

Compose async operations as a sequence of typed steps. Each step receives a payload, does its thing, and hands it to the next.

import { pipeline, map, tap, retry, timeout } from '@ludoows/tubby'

const result = await pipeline({ orderId: '123', total: 99 })
  .give({ userId: 'u_42' })
  .ensure((order) => order.total > 0, 'Empty order')
  .through([
    validateStock,
    retry(timeout(chargePayment, 5000), { attempts: 3 }),
    tap((order) => logger.info('charged', order.orderId)),
    sendConfirmation,
  ])
  .thenReturn()

No magic. No decorators. Just functions and objects.


Features

  • Chainable builder API (pipeline().give().through().thenReturn())
  • Typed payload and context throughout the chain
  • Step-level error recovery with onError
  • Guards with ensure(), early exit with stop()
  • Built-in utilities: map, tap, branch, when, unless, retry, timeout, delay, merge, pick, parallel, combine, once, race, fallback, loop
  • Abort support via .withSignal(AbortSignal)
  • Real-time step streaming with .thenStream()
  • Observability: inspect(), measure(), onStep(), collect()

TypeScript

Payload and context types flow end-to-end with no manual casting:

type Order = { id: string; total: number }
type Ctx   = { userId: string }

const result = await pipeline<Order>({ id: '1', total: 50 })
  .give<Ctx>({ userId: 'u_1' })
  .through([myStep]) // Step<Order, Ctx> — fully checked
  .thenReturn()      // Order | null

CDN

<!-- development -->
<script src="https://cdn.jsdelivr.net/npm/@ludoows/tubby/dist/index.global.js"></script>
<!-- production (minified) -->
<script src="https://cdn.jsdelivr.net/npm/@ludoows/tubby/dist/index.global.min.js"></script>
<script>
  const { pipeline, tap, retry } = Tubby
</script>

Documentation

Getting started · Full API · Utilities