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

@agentfile/cli

v0.3.0

Published

CLI for agentfile — init, migrate, sync, validate, watch, diff, clean, and rollback

Readme

@agentfile/cli

One contract. Every AI agent. Zero clutter.

CLI for agentfile — scaffold, migrate, generate, validate, diff, clean, and rollback AI agent instruction files from a single contract.yaml.

Usage

npx @agentfile/cli init

Walks you through setup and scaffolds everything — ai/contract.yaml, agent templates, .ai-agents.example, and a CI workflow.

npx @agentfile/cli watch

Watches ai/ for changes and automatically re-runs sync. Runs an initial sync on start. No more running sync manually after every contract change.

npx @agentfile/cli sync

Reads your personal .ai-agents file and generates the correct instruction file for each agent in its native format.

npx @agentfile/cli validate

Validates ai/contract.yaml against the schema. Exits 0 or 1. Designed for CI.

npx @agentfile/cli migrate --from .github/copilot-instructions.md --from CLAUDE.md

Imports existing instruction files into a draft ai/contract.yaml.

npx @agentfile/cli migrate --from CLAUDE.md --replace-policy archive
npx @agentfile/cli migrate --from CLAUDE.md --targets claude,copilot
npx @agentfile/cli diff

Checks generated files against .agentfile-manifest.json; exits non-zero when drift is found.

npx @agentfile/cli clean --dry-run
npx @agentfile/cli clean

Removes generated files and updates manifest ownership records.

npx @agentfile/cli rollback --list
npx @agentfile/cli rollback --tag migrate-1700000000000

Restores files from .agentfile-backup/.

What it generates

| Agent | File | |---|---| | claude | CLAUDE.md | | copilot | .github/copilot-instructions.md | | cursor | .cursor/rules/main.mdc + one .mdc per skill | | agents-md | AGENTS.md — read natively by Codex and Windsurf |

Generated files are gitignored. Each developer picks which agents they use without touching the repo.

Your contract

version: 1

project:
  name: My Project
  stack: [typescript, react]

rules:
  coding:
    - Prefer small composable functions
  architecture:
    - Follow feature-based folder structure

skills:
  - name: create-component
    description: Creates a new React component with tests
    steps:
      - Create /src/components/{feature}/{Name}.tsx
      - Create matching test file
      - Export from index.ts

Links

License

MIT