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

@fnndsc/stratus

v0.20.0

Published

STRATUS: a mise session over the cloud substrate a Trusted Domain runs on — one backend, clouds as drivers, OCI first

Readme

@fnndsc/stratus

A mise session over the cloud substrate a Trusted Domain runs on. One backend, clouds as drivers; Oracle Cloud Infrastructure is the first driver. The design is docs/stratus.adoc.

A stratus session is outside any ChRIS. It mounts a cloud tenancy under /net/<cloud>/<tenancy>/ and lets the mise shell walk it: compartments nest as the cloud nests them, regions/<region>/ holds each region's zones, limits, shapes and prices as folders of field files, and clusters/ is where Trusted Domains are built. Every row is a folder or a file to the shell; ls -l draws a compartment as a compartment and colours it by state.

Running

The stratus command hosts the session as a calypso daemon on the bastion, the host that holds the cloud credential:

stratus                          # the DEFAULT profile of ~/.oci/config, its home region
stratus --profile BCH --region us-phoenix-1
stratus --fake                   # a session over the fake cloud, for tests
stratus --fake --host-control tasks
                                 # one that may build clusters over the fake cloud

A cluster is made, priced and built with cluster new, cluster plan and cluster build. The build runs as a task (/proc/steps/<name>-build) that outlives every surface and a daemon restart; wait follows it, kill asks it to stop. Starting it needs the tasks tier, and before the first step that bills it asks, with the cost. Over the fake cloud the build moves on a clock (STRATUS_FAKE_TICK_MS, 700 by default). cluster adopt <name> --from <harbor-oci checkout> keeps a cluster built elsewhere and, with the tier, takes its stack and Terraform state into OCI Resource Manager, where cluster plan plans against it; an adopted cluster is never built on. cluster verify runs harbor-oci's ten checks against a cluster's cluster through its kubeconfig (src/cluster/, src/cluster/verify.ts); the block-volume probe, which writes, needs the tier. spend prices each cluster's machines, volumes and load balancers at list price (src/cluster/spend.ts). Over OCI, cluster build runs through Resource Manager and Red Hat's Assisted Installer (src/installer/assisted.ts, a service account from --redhat-account, the nodes' key from --ssh-key), and cluster teardown removes what a cluster built, asking for its name.

Attach with chell --remote, or open the ARGUS address the daemon prints. A credential that does not work still starts the daemon, disconnected, with /net/oci empty.

Shape

  • src/cloud/driver.ts is the CloudDriver interface: identity, containers, regions, zones, limits, shapes, prices, each answered for the region given.
  • src/cloud/oci/ is the OCI driver over Oracle's TypeScript SDK (api.ts wraps the few calls made, prices.ts reads Oracle's public price list), and its build half over Resource Manager (builder.ts, rmApi.ts; planRead.ts reads a plan's JSON, drift apart). Only this folder may import an oci-* package: npm run lint:stratus-deps at the repository root keeps it so.
  • src/cloud/fake/ is an in-memory cloud. It runs the same driver contract (tests/support/driverContract.ts) the OCI driver runs over recorded answers, and it is what the boot proof hosts.
  • src/vfs/tenancy.ts is the tree, a fond provider over the driver; src/vfs/look.ts is how its rows show.
  • src/cluster/ is a cluster built here: its spec (spec.ts, harbor-oci's spec.yaml shape), its state on the host (state.ts, $XDG_STATE_HOME/stratus/clusters/<name>/), its fit and cost (sizing.ts), and its steps (steps.ts), written once over the cloud's build half (src/cloud/builder.ts) and the installer (src/installer/). src/cloud/fake/builder.ts is the fake of both.
  • src/session.ts is who the session is (user@tenancy), where it starts (clusters/) and where it left off; src/backend.ts is the descriptor engine_create takes.

Proving it

npm test                         # the unit suites
npm run test:boot                # boots over the fake cloud with no ChRIS package loaded

The boot proof walks the tree through the engine (ls, cd, cat, a pipe) and fails if cumin, salsa or chili is ever asked for.