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

cascadia-gateway

v0.1.0

Published

One-command launcher for Cascadia — the self-hostable LLM cascade gateway. `npx cascadia-gateway demo` brings up a keyless, zero-cost demo of the live cost/quality closed loop.

Readme

cascadia — one-command launcher

The friendly front door to Cascadia, the self-hostable LLM cascade gateway. Wraps Docker Compose so you don't have to.

npx cascadia-gateway demo      # keyless, zero-cost demo of the live closed loop
npx cascadia-gateway up        # self-host against real providers (BYO keys)
npx cascadia-gateway down      # stop + wipe        (--live | --all)
npx cascadia-gateway logs      # tail logs          (--live)
npx cascadia-gateway doctor    # preflight checks

demo — see the product in one command

Only needs Docker (and Node, for npx). Brings up the whole stack — proxy, dashboard, judge, controller, Postgres — pointed at an in-process mock upstream, so there are no API keys and no cost. It then drives a little traffic and opens a dashboard at http://localhost:3000. Log in with the demo account [email protected] / admin123 (seeded only in the demo — gated behind CASCADIA_DEMO=true, so it can never exist in a real deployment).

The closed loop is real: the judge scores shadow pairs and the policy controller refits per-cluster thresholds every ~30s, which the proxy hot-reloads via its Postgres policy store. Watch the Pareto chart and thresholds move on their own.

First run pulls six prebuilt images from ghcr.io/cxk280 (no git, no compile), then starts instantly; cached after. Override the source with CASCADIA_REGISTRY (registry prefix, trailing slash) and CASCADIA_TAG.

Flags:

  • --build — build images from source instead of pulling (needs git + a checkout).
  • --traffic N / --no-traffic — drive (or skip) live mock traffic.

up — self-host for real

Prompts for an OpenAI key (cascade tiers) and an Anthropic key (cross-family judge), or reads them from the environment, and runs the same stack against real providers. This spends real API budget. Keys are passed to the containers in memory, not written to disk.

How it finds the compose file

The default demo runs the demo compose file bundled inside this package and pulls prebuilt images — no source tree required. The build-from-source paths (demo --build, up) need the Cascadia repo, resolved in order: $CASCADIA_HOME → a checkout it's running inside → a shallow git clone into ~/.cascadia/checkout (override the URL with $CASCADIA_REPO).

Requirements

  • Docker (with the Compose v2 plugin) and a running daemon
  • Node ≥ 18
  • git — only for demo --build and up (building from source); not for the default pull-based demo

Run npx cascadia-gateway doctor to verify all of the above.