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

@r_masseater/github-workflow

v0.1.1

Published

Helpers for GitHub Actions steps written with Effect: call the repository's GitHub API, write step outputs and warnings, and run commands.

Readme

@r_masseater/github-workflow

Helpers for GitHub Actions steps written with Effect: call the GitHub API of the repository the workflow runs in, write step outputs and annotations, and run commands.

It requires Node.js 26 or later. effect is a peer dependency, so your step and this package share one copy of Effect.

vp add @r_masseater/github-workflow effect

Call the GitHub API

The repository comes from GITHUB_REPOSITORY. The token comes from GH_TOKEN, or from GITHUB_TOKEN when GH_TOKEN is not set. Paths are relative to /repos/<repository>/.

import { getJson, post } from "@r_masseater/github-workflow";
import { Effect, Schema } from "effect";

const Label = Schema.Struct({ name: Schema.String });

const labels = getJson(Schema.Array(Label))("issues/1/labels");
const comment = post({ path: "issues/1/comments", body: { body: "done" } });

export const program = Effect.gen(function* run() {
  const current = yield* labels;
  if (current.length === 0) {
    yield* comment;
  }
});

getJson decodes the response with a schema. postJson does the same for a POST. post, patch and remove ignore the response body.

Write step outputs and annotations

import { fail, mask, setEnv, warn, writeOutputs } from "@r_masseater/github-workflow";

export const finish = writeOutputs({ changed: "true" });
export const hide = mask("a-token");
export const note = warn("The cache was empty.");
export const environment = setEnv({ TARGET: "main" });
export const stop = fail("The check failed.");

writeOutputs appends to the file named by GITHUB_OUTPUT, and setEnv appends to GITHUB_ENV. fail prints an error annotation and fails with WorkflowFailed.

Run commands

succeeds returns whether a command exited with code 0. mustSucceed fails with CommandFailed otherwise. outputOf returns the trimmed standard output of a command that succeeded, and finished returns the output and the exit code without failing. A command that is interrupted gets SIGTERM and then SIGKILL after forceKillAfter, 10 seconds by default, so that an interrupted step such as a timeout never waits for a process that ignores SIGTERM.

import { outputOf } from "@r_masseater/github-workflow";

export const head = outputOf({ command: "git", args: ["rev-parse", "HEAD"] });

sha256Of hashes byte arrays and returns the hex digest.

Agent skills

The package ships agent skills in skills/. Add permissions: { "@r_masseater/github-workflow": { skills: true } } to pnpm-workspace.yaml and vp install links them into the skill directories of your agents.

License

MIT