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

checks-your-actions

v0.0.3

Published

Know what CI will do before you push.

Readme

cya (checks-your-actions)

Know what CI will do before you push.

cya reads your .github/workflows/ directory, looks at your current branch and changed files, and tells you exactly which GitHub Actions workflows and jobs would trigger — without pushing, without waiting, without guessing.

$ cya --event push

publish.yml (Publish to npm):
  publish:
    - actions/checkout@v4
    - oven-sh/setup-bun@v2
    - bun install --frozen-lockfile
    - bun run lint
    - bun run typecheck
    - bun run test
    - actions/setup-node@v4
    - npm publish --provenance --access public

Why

CI feedback loops are slow. You push, wait for GitHub to pick up the event, wait for runners, then find out you forgot to run lint. Or you're on a branch that doesn't even trigger the workflow you're worried about.

cya gives you that information instantly, locally. It evaluates the same trigger rules GitHub uses — branch filters, path filters, event types — against your actual git state right now.

It's also built to be consumed by AI coding tools like Claude Code, so your assistant can know what CI expects before suggesting a push.

Install

bun add -g checks-your-actions

Requires Bun.

Usage

# What would trigger if I opened a PR into main? (default)
cya

# What would trigger on push?
cya --event push

# Compare against a different base branch
cya --base develop

# Check workflow_dispatch triggers
cya --event workflow_dispatch

Options

| Flag | Default | Description | |------|---------|-------------| | --event | pull_request | Event type to simulate: push, pull_request, workflow_dispatch | | --base | main | Base branch for comparison (used for diff and PR branch filters) | | --help | | Show usage | | --version | | Show version |

What it evaluates

cya parses your workflow YAML and evaluates these trigger rules against your current git state:

  • push triggers with branches, branches-ignore, paths, paths-ignore filters
  • pull_request triggers with the same filters (branch filters check the base branch, matching GitHub's behavior)
  • workflow_dispatch triggers (shown only with --event workflow_dispatch)
  • Shorthand trigger syntax (on: push, on: [push, pull_request])

It also detects and skips:

  • Tag-only push triggers (warns instead of false-positive matching)
  • Mutually exclusive filters (branches + branches-ignore on the same trigger)

Changed files are determined by git diff against your base branch, plus any staged, unstaged, and untracked files.

What it doesn't evaluate

  • Job-level if: conditions (shown in output but not evaluated — they often depend on GitHub context not available locally)
  • Matrix strategies (jobs shown once, not expanded per matrix combination)
  • workflow_run, schedule, release, and other non-push/PR triggers
  • Reusable workflow contents (the uses: reference is shown, but the called workflow isn't parsed)
  • GitHub expression syntax (${{ }}) in any context

Output

For each matched workflow, cya shows:

  • Workflow filename and name
  • Each job (with name, dependency chain, and if: condition if present)
  • Each step's run command or uses action reference
  • Reusable workflow references for jobs that call other workflows

If no workflows match, it tells you why.

Programmatic use

The layers are independently importable:

import { parseWorkflowsFromDir } from 'checks-your-actions/parse'
import { getGitState } from 'checks-your-actions/git-state'
import { evaluate } from 'checks-your-actions/evaluate'
import { renderResult } from 'checks-your-actions/render'

const workflows = await parseWorkflowsFromDir('.github/workflows')
const gitState = await getGitState({ baseBranch: 'main', event: 'push' })
const result = evaluate(workflows, gitState)
console.log(renderResult(result))

License

MIT