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

@carr-james/collector-cache-extension

v1.2.1

Published

Content-addressable caching extension for Antora Collector

Readme

Collector Cache Extension for Antora

Content-addressable caching extension for the Antora Collector Extension.

Overview

This extension provides content-addressable caching for collector commands using source file hashes. It automatically deduplicates outputs across different versions when source files match, significantly speeding up builds.

Installation

npm install @carr-james/collector-cache-extension

Usage

Register the extension in your Antora playbook:

antora:
  extensions:
    - require: '@carr-james/collector-cache-extension'

Then configure caching in your component descriptor (antora.yml):

ext:
  collector-cache:
    - run:
        key: firmware
        sources:
          - src/main.c
          - include/**/*.h
        cache-dir: build/output
        command: make build
      scan:
        - dir: build/output/docs
          files: '**/*.html'
          into: modules/ROOT/pages/generated

Configuration

Each entry in collector-cache supports:

Run Configuration

| Property | Description | |----------|-------------| | run.key | Unique identifier for this cache entry | | run.sources | Array of source file paths or glob patterns (e.g., src/*.c, include/**/*.h) | | run.source-commands | Optional shell commands that output additional source paths | | run.cache-dir | Directory where build outputs are stored | | run.command | The build command to execute | | run.depends-on | Optional array of other entry keys this depends on | | run.restore-to-worktree | Optional glob patterns for files to restore from cache to worktree |

Scan Configuration

The scan property defines how outputs are scanned into Antora. It can be a single entry or an array:

| Property | Description | |----------|-------------| | scan.dir | Source directory containing generated files | | scan.files | Glob pattern for files to include | | scan.into | Destination path within the Antora component |

Environment Variables

| Variable | Description | |----------|-------------| | DRY_RUN=true | Exit after cache check without running builds | | FORCE_COLLECTOR=true | Force cache miss and rebuild |

Development

Prerequisites

  • Node.js >= 18.0.0
  • npm

Setup

npm install

Running Tests

npm test

Running Linter

npm run lint

Code Coverage

npm run coverage