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

@cotal-ai/delivery

v0.192.0

Published

Cotal delivery daemon: the server-side Plane-3 durable backstop (fan-out writer + trusted reader + membership/ACL authority), a scoped least-privilege NATS client co-located with the broker.

Readme

@cotal-ai/delivery

The server-side Plane-3 delivery daemon: the durable backstop (fan-out writer, trusted reader, and membership/ACL authority) as a scoped, least-privilege NATS client co-located with the broker. Importing it registers the pending command and the delivery and feedback-intake service presets. The deliver and feedback-intake commands are still accepted as deprecated entries.

Tier: implementations/ (a self-contained surface over core). Depends on core and workspace. Implementations never import each other; they meet at runtime over NATS.

See docs/delivery-daemon.mdx and the root AGENTS.md for the tier rules.

Native transport regression

After pnpm build, run pnpm smoke:delivery-transport-health with nats-server on PATH. The suite owns its broker and temporary state. Its 15 checks exercise the transport-health class directly, including failed credential adoption, reconnect recovery and sustained broker loss. The CI smoke registry runs it alongside the daemon-level native-health suite.

Load-harness delivery checks

pnpm -C implementations/delivery smoke:fanout-load --members 50 --rate 10 --seconds 30 reports aggregate delivery counts by default. Add --verify-delivery to compare acknowledged publish IDs against durable IDs observed by each configured recipient, including a check that the poster receives no durable self-copy. The final rows report distinct, expected, missing, unconfirmed and repeated copies per member. Repeats are allowed by at-least-once delivery.

Verification exits nonzero for incomplete coverage, unconfirmed IDs, startup or publish failures, endpoint errors at the sample, or an empty workload. A publish timeout has unknown outcome, so an unconfirmed ID does not prove foreign traffic. Missing means not observed at the final sample, not permanent loss. This mode does not verify live copies, payload integrity or ordering.

ID tracking costs O(posts × members) memory and extra callback work. Use it as a separate correctness workload; do not compare its CPU or memory numbers with ordinary load runs. pnpm smoke:delivery-coverage runs the accounting controls without starting a broker.

Active multi-space measurement

COTAL_MSD_SECONDS=30 COTAL_MSD_RATE=2 pnpm smoke:delivery-multi-space --measure --measure-shape host16 --sublist-cache off runs the built delivery CLI against one native broker with 16 separate accounts and three members per space. It reads every account's ready delivery lease before starting members; the host-up message alone can describe partial startup. Use --sublist-cache on for the cache-enabled arm. --measure-shape single16 selects 16 delivery processes; the default all runs the historical 1/4/16/shared/single comparison on reused stores. Select one shape per invocation for fresh-state comparisons. The broker comes from PATH; pin its binary there when comparing runs. Duration and rate must be positive finite numbers whose rounded-up product is a positive safe integer; validation precedes broker setup.

MSD_RESULT reports broker and delivery CPU seconds and RSS in MiB, elapsed window and per-space accepted publishes, copies and endpoint errors. Measurements include a five-second allowance and up to 30 more seconds for receiver completion. Counts and errors affect the exit status. Add --verify-delivery for the same per-recipient acknowledged-ID checks as fanout-load; its tracking has overhead, so use a separate correctness run. Repeated copies remain allowed. Receiver completion is not proof of empty broker queues. The test does not model hosted agents, connect auth callouts, subject churn or message ordering, and process RSS values are not additive.

For a separate host16 diagnostic, add --cpu-profile-dir /absolute/new/private-directory. The directory must not exist; its parent must exist. The actual delivery CLI child writes delivery.cpuprofile using Node's standard CPU profiler, covering startup through graceful exit. broker.pprof is a native CPU profile requested as posting begins for the smaller of 60 seconds and the rounded-up configured posting duration (at least one second). broker-window.json records request/response timestamps. The broker profiler listens only on loopback. No heap profile, forced GC or memory limit is enabled. Output remains outside fixture teardown.

Both profiles add overhead and cover different intervals; do not compare diagnostic throughput with ordinary runs or treat full-child delivery samples as measured-window-only samples. Missing or failed profile output fails the diagnostic. Profile paths and stack metadata are private operator evidence, not production tenant telemetry.