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

@kevinnitro/nx-cache-action

v0.1.0

Published

A GitHub Actions cache proxy server for [Nx self-hosted remote caching](https://nx.dev/docs/guides/tasks--caching/self-hosted-caching).

Readme

nx-cache-action

A GitHub Actions cache proxy server for Nx self-hosted remote caching.

This package bridges GitHub Actions' built-in cache system with Nx's remote cache API, allowing you to leverage GitHub Actions cache in CI without requiring an external cache server.

Installation

Install along with your project, into dev deps or globally, or use it with npx/pnpm dlx without installing

# pnpm
pnpm add -D -w @kevinnitro/nx-cache-action

# mise
mise use npm:@kevinnitro/nx-cache-action

Usage

Use it as a wrapper around your Nx commands in GitHub Actions:

- name: Run Nx with cache proxy
  run: pnpm dlx @kevinnitro/nx-cache-action -- pnpm exec nx build

The tool automatically:

  1. Starts a local cache server on port 3000
  2. Sets NX_SELF_HOSTED_REMOTE_CACHE_SERVER environment variable
  3. Executes your Nx command
  4. Cleans up and shuts down the server after the command completes

Examples

Basic usage with Nx CLI

pnpm dlx @kevinnitro/nx-cache-action -- nx build

Run multiple targets

pnpm dlx @kevinnitro/nx-cache-action -- pnpm exec nx run-many -t lint build test

GitHub Actions workflow example

name: Build and Test

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: pnpm/action-setup@v2
      - uses: actions/setup-node@v4
        with:
          node-version: '20'
          cache: 'pnpm'

      - run: pnpm install

      - name: Build with Nx cache
        run: pnpm dlx @kevinnitro/nx-cache-action -- pnpm exec nx run-many -t build

      - name: Test with Nx cache
        run: pnpm dlx @kevinnitro/nx-cache-action -- pnpm exec nx run-many -t test

Configuration

Environment Variables

  • NX_CACHE_ACTION_PORT - Cache server port (default: 3000)
  • NX_CACHE_ACTION_SKIP_UPLOAD_CACHE - Skip uploading to cache if set to 'true' (default: false)
  • NX_CACHE_ACTION_CACHE_KEY_PREFIX - Prefix for cache keys (default: 'nx-')
  • NX_CACHE_ACTION_CLEANUP_CACHE - Clean up local cache files after operation, set to 'false' to disable (default: 'true')
  • RUNNER_ID - GitHub Actions runner ID for cache directory naming (automatically set by GitHub Actions)

CLI Options

  • --help, -h - Show help message
  • --no-cleanup-cache - Disable automatic cache cleanup after operation

How It Works

  1. Proxy Server: Starts an Express server that implements the Nx remote cache OpenAPI specification
  2. GitHub Actions Cache Integration: Uses @actions/cache to store/retrieve artifacts from GitHub Actions
  3. Process Spawning: Spawns your Nx command with the cache server URL injected as NX_SELF_HOSTED_REMOTE_CACHE_SERVER
  4. Environment Cleanup: Strips GitHub Actions-specific environment variables (ACTIONS_*) before spawning the child process

Requirements

  • Node.js 18+ (idk the AI said about this, but I guess it is not matter)
  • GitHub Actions environment (uses @actions/cache under the hood)