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

taskwire

v0.5.5

Published

Progress reporting and awaitable dialogs for long-running server-side operations.

Readme

taskwire

Progress reporting and awaitable dialogs for long-running operations, in Python and TypeScript.

A long-running job — an import, a report, a batch — needs to tell whoever started it what it is doing while it is doing it, and sometimes needs to ask them something before it can continue. taskwire provides:

  • progress, with nested subtasks whose percentages compose rather than overwrite each other, and commits coalesced to one per interval;
  • awaitable dialogs — the worker asks a question mid-job and blocks until the answer arrives, with the first answer winning across every open tab;
  • cancellation, cooperative and sticky, which raises in the worker at its next progress call;
  • collectable results — the job parks a file or a value for later collection and exits, holding no worker while the record waits.

The store holds the state

Every state change is written to the store before anything is pushed, so a dropped, coalesced or suppressed push never changes what the next read returns. There is no event log, no sequence numbers and no replay: a client reads current state.

One protocol, three implementations

| Implementation | Carries the protocol over | Adapter | Needs | | --- | --- | --- | --- | | local | the process itself, no serialisation | none | nothing | | REST | request/response polling | contrib.viewsets, contrib.fastapi, contrib.asgi | nothing in core | | WS | one push per envelope down, the six calls up | contrib.muxws | muxws |

Swapping one for another changes latency only. Both languages ship the protocol and the operating half, so a browser-only application runs operations as well as watching them; the adapters, the Redis store and the Celery entry are Python's, and the polling client and the register are TypeScript's. See Transports.

Install

pip install taskwire                 # core: no runtime dependencies
pip install "taskwire[redis]"        # cross-process store and backplane
pip install "taskwire[fastapi]"      # the REST adapter
pip install "taskwire[viewsets]"     # the REST API as a fastapi-viewsets viewset
pip install "taskwire[celery]"       # the worker entry point
pip install "taskwire[muxws]"        # the WebSocket transport
npm install taskwire

The demo

A night batch over one book: four back-office jobs that between them exercise progress, nested progress, awaitable dialogs, cancellation and collectable results. See demo/README.md.

Open in GitHub Codespaces

Run locally

Requirements: Python 3.10+, uv, Node 22+.

git clone https://github.com/velis74/taskwire.git && cd taskwire
uv sync && npm ci
uv run python demo.py                # then open http://127.0.0.1:5174

Status

Pre-1.0. The wire format is versioned independently of the package (Envelope.v), so package semver says nothing about it.

Links

License

MIT. Copyright (c) 2026 Jure Erznožnik.