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

@stackone/agent-config

v1.4.0

Published

Configuration utilities and shared agent instructions for StackOne projects

Downloads

1,795

Readme

@stackone/agent-config

Configuration utilities for StackOne projects. This package provides access to reusable agent instructions (CLAUDE.md) that can be shared across multiple repositories.

What is this?

This package provides a simple way to import and use the shared StackOne agent configuration (CLAUDE.md) in any TypeScript or JavaScript project. It's published as a public npm package to https://registry.npmjs.org.

What it does:

  • Provides access to the shared agent configuration file
  • Allows copying the config to your project as CLAUDE.md
  • Includes a CLI tool for easy setup

Installation

Install via npm:

npm install @stackone/agent-config

Or add to your package.json:

Usage

CLI

Copy CLAUDE.md to your project:

npx stackone-agent-pull

Or use the installed binary:

stackone-agent-pull

Programmatic

import { getConfig, addConfig } from "@stackone/agent-config";

// Read config as string
const config = getConfig();
console.log(config);

// Copy to CLAUDE.md in current working directory
addConfig();

Direct File Access

const fs = require("fs");
const path = require("path");

const agentMdPath = require.resolve("@stackone/agent-config/agent.md");
const config = fs.readFileSync(agentMdPath, "utf8");

Example: Auto-Update CLAUDE.md with GitHub Actions

Create .github/workflows/update-claude-md.yaml:

name: Update CLAUDE.md

on:
  schedule:
    - cron: '0 2 * * *'  # Daily at 2 AM UTC
  workflow_dispatch:      # Manual trigger

jobs:
  update:
    runs-on: ubuntu-latest
    permissions:
      contents: write

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Setup Node.js
        uses: actions/setup-node@v4
        with:
          node-version: '20'

      - name: Install dependencies
        run: npm ci

      - name: Install package
        run: npm install "@stackone/agent-config@latest" --save

      - name: Pull latest CLAUDE.md
        run: npx stackone-agent-pull

      - name: Check for changes
        id: check
        run: |
          if git diff --quiet CLAUDE.md; then
            echo "changed=false" >> $GITHUB_OUTPUT
          else
            echo "changed=true" >> $GITHUB_OUTPUT
          fi

      - name: Commit and push changes
        if: steps.check.outputs.changed == 'true'
        run: |
          git config --local user.email "[email protected]"
          git config --local user.name "GitHub Action"
          git add CLAUDE.md
          git commit -m "chore: update CLAUDE.md from @stackone/agent-config"
          git push

API

  • getConfig() - Returns CLAUDE.md content as string
  • addConfig() - Copies CLAUDE.md to current working directory

Publishing (Maintainers Only)

This package is automatically published to npm when changes are pushed to main branch:

  1. Update code in packages/config/
  2. Push to main branch
  3. GitHub Actions will:
    • Auto-increment patch version
    • Build the package
    • Publish to npm as private package
    • Create git tag

Manual publishing:

cd packages/config
npm run build
npm publish --access restricted

Development

npm run build      # Build TypeScript to dist/
npm run test       # Run tests
npm run lint       # Check code quality
npm run lint:fix   # Auto-fix issues

Security

This is a public package, so no authentication is required for installation.

License

ISC

Fixed CI publishing