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

@brutalsystems/dray

v0.1.7

Published

Convention-driven multi-repo deploy orchestrator (forge for shipping)

Readme

dray

Convention-driven multi-repo deploy orchestrator — "forge, but for shipping."

dray builds/pushes container images to ECR, renders + applies k8s manifests (pinning a git SHA into image references), rolls out workloads, publishes Piral pilets, and syncs secrets — driven by a .dray/config.json committed in each repo. One entry point, interactive or scripted; no daemon.

Install

npm i -g @brutalsystems/dray

Setup (per machine)

  1. Global defaults — ~/.dray/config.json:
    {
      "defaults": {
        "profile": "<aws-profile>", "region": "<region>", "account": "<acct-id>",
        "platform": "linux/arm64", "context": "<kube-context>", "namespace": "<namespace>"
      }
    }
  2. Register each repo: dray add /path/to/repo (reads its .dray/config.json; registry is stored at ~/.dray/registry.json).

Requires docker buildx, kubectl, git, aws, and (for pilets/secrets) sops.

Commands

dray                        # interactive menu
dray list                   # registered repos + targets
dray ship <repo>:<target>   # deps?→build→push(SHA)→render+apply→rollout
dray ship <repo>            # all enabled workloads in the repo
dray apply  <repo>:<target> # render + apply manifests only
dray rollout <repo>:<target>
dray status <repo>          # running image SHA vs HEAD
dray rollback <repo>:<target> <sha>
dray publish <repo>[:<pilet>]   # publish pilet(s) via sops exec-env
dray secrets sync <repo>

Global flags: --dry-run (print the plan, run nothing), --allow-dirty (build a dirty tree, tags :<sha>-dirty), --all (every registered repo).

.dray/config.json (per repo)

{
  "name": "myrepo",
  "images": [
    { "name": "app", "ecr": "app", "source": { "local": true },
      "dockerfile": "Dockerfile", "context": ".",
      // optional: rebuild a cached deps layer when lockfiles change
      "depsImage": { "dockerfile": "Dockerfile.deps", "tag": "app:deps", "rebuildOn": ["uv.lock"] },
      // optional: inject --build-arg from an env file (e.g. VITE_* from .env.production),
      // or from a sops-encrypted file decrypted in memory at build time (no plaintext on disk):
      //   "buildArgs": { "sopsEnvFile": "secrets.env", "prefix": "VITE_" }
      "buildArgs": { "envFile": ".env.production", "prefix": "VITE_" },
      // optional: also move a mutable <ecr>:latest tag onto every (non-dirty)
      // push, so workloads that reference <ecr>:latest track the newest build
      // without being re-shipped (e.g. rarely-shipped cronjobs sharing an image).
      "latest": true },
    // image from another repo (cloned to a tmp dir, built, pushed):
    { "name": "svc", "ecr": "svc", "source": { "git": "https://github.com/org/svc", "ref": "main" } }
  ],
  "workloads": [
    // kind: deployment (rolled out) or cronjob (applied only)
    { "name": "app", "kind": "deployment", "image": "app",
      "manifests": [".k8s/deployment.yaml", ".k8s/service.yaml"], "stampImages": ["app"] },
    // disabled: kept in config but skipped (e.g. served elsewhere)
    { "name": "legacy", "kind": "deployment", "image": "app", "manifests": ["..."], "disabled": true },
    // image-less: apply-only (third-party image lives literally in the manifest)
    { "name": "searxng", "kind": "deployment", "manifests": [".k8s/searxng.yaml"] }
  ],
  "secrets": [
    { "name": "app-secrets", "kind": "sops-manifest", "file": ".k8s/secrets.enc.yaml" }
  ],
  "pilets": {
    "secretsFile": "secrets.env",
    "command": ["npm", "run", "publish:feed", "--", "--pilet", "{name}"],
    "names": ["foo", "bar"]
  }
}

Image pinning

Manifests reference managed images by a placeholder var — ${APP_IMAGE} (derived <UPPER_SNAKE(name)>_IMAGE, or set templateVar). On apply, dray substitutes <ecr>:<gitSHA> for that var across the listed files (container image, env-var image refs, cronjob images — uniformly). A raw kubectl apply of an unrendered manifest fails loud, so applies always go through dray.

An image with "latest": true additionally gets a mutable <ecr>:latest tag moved onto each non-dirty push. This is for the opposite need: a workload that should track the newest build of a shared image without being re-shipped (e.g. a low-frequency cronjob sharing an image with a frequently-shipped service). Reference <ecr>:latest literally in that manifest (with imagePullPolicy: Always) instead of the ${..._IMAGE} placeholder. You trade away per-commit reproducibility/rollback for that workload — use it only where that's the point.