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

agvault

v0.1.3

Published

Wallet for project-related files stored in a private GitHub repo (agentic workflow)

Readme

agvault

A wallet for project-related files and folders that you don’t want in the main repo but need for agentic workflow (e.g. user-curated docs, rules, notes). Files are stored in a private GitHub repo and can be brought into any workspace with a single command.

  • Run in any folder (project/workspace).
  • User-curated include/exclude patterns (defaults: .md, .mdc, .cursor/**, docs/**, etc.).
  • GitHub as backend: clone to a temp dir, copy only needed files to your project root, then delete the temp dir—vault data is never left on disk.

Setup

  1. Install agvault globally:
npm i -g agvault
  1. (Optional) Create a private GitHub repo in advance, or let agvault create it (see below).

  2. In any project where you want the vault:

cd /path/to/your/project
agvault init

Follow the prompts: enter the vault repo URL (HTTPS or SSH) and optionally add/remove include/exclude patterns.

Global default vault: After you set or create a vault once (with gh logged in), agvault stores it in ~/.agvault/default.json. In new projects, agvault init will use that vault automatically and only ask about include/exclude patterns—no repo URL prompt again.

Repo name already exists: If you choose to create a new repo and the name (e.g. agvault) already exists on your account, agvault uses that existing repo as the vault destination instead of failing.

No local vault: The vault is never stored on disk. Each pull/store/sync clones the repo into a temp directory, copies only the needed files into your project root (or pushes from temp), then deletes the temp dir.

Commands

| Command | Description | |--------|-------------| | agvault init | Initialize vault in the current folder. Asks for repo URL and optional extra include/exclude patterns (on top of defaults). | | agvault sync | Pull latest into project root (temp clone → copy → delete), then merge local files and push (temp clone → push → delete). | | agvault pull | Clone vault to temp, copy vault/workspace files into project root, delete temp. Use --file to pull specific files only. | | agvault store | Clone vault to temp, copy project files into vault/workspace, commit & push, delete temp. | | agvault list | List files stored in the vault for this project only. Use --local to list files that would be collected (include patterns). Use --json for JSON output. | | agvault add [path] | Add a file to the vault: ensure it’s included (and not excluded), then store. Without path, shows a list of addable files (included but not yet in vault) to choose from. | | agvault remove [path] | Remove a file from the vault and add it to exclude so it won’t be stored again. Without path, shows a list of files in the vault to choose from. |

Examples

# First time in a project
agvault init
# Enter: https://github.com/you/agvault-repo.git
# Optionally add more patterns or exclusions

# Pull vault contents into this project (clone to temp, copy to root, delete temp)
agvault pull

# Pull only specific files
agvault pull --file README.md docs/notes.md

# Store current project’s matched files into the vault
agvault store

# Two-way sync: pull, merge local files, push
agvault sync

# List files in the vault for this project only (or list what would be collected with --local)
agvault list
agvault list --local

# Add a file to the vault (include + store); without path, pick from a list of addable files
agvault add README.md
agvault add

# Remove a file from the vault and add to exclude; without path, pick from a list
agvault remove docs/notes.md
agvault remove

Default include / exclude

Included by default (glob patterns):

  • **/*.md, **/*.mdc, *.md
  • .cursor/**, .cursorrules
  • docs/**

Excluded by default:

  • node_modules/**, .git/**, dist/**, build/**, .agvault/**

You can add or remove patterns during agvault init or by editing .agvault/config.json. The commands agvault add <path> and agvault remove <path> (or their interactive list when path is omitted) update include/exclude and the vault for you.

Config location

  • Config file: .agvault/config.json
  • Vault is temp-only: no persistent clone; each command uses a temp dir that is deleted after use.

File types are not limited to .md/.mdc; include any globs you need (e.g. .vscode/settings.json, notes/**).

Creating the repo automatically

If the vault URL you give during agvault init points to a repo that doesn’t exist yet:

  1. Clone will fail → agvault creates the vault locally with git init, a vault/ folder, and the remote set to your URL.
  2. On first agvault store (or agvault sync), push will fail → agvault can create the repo on GitHub if you have the GitHub CLI installed and logged in:
    • Run gh auth login, then run agvault store again.
    • agvault will run gh repo create owner/repo --private --source <temp-dir> --push for you (temp dir is deleted after push).
  3. If you don’t use gh, create the repo manually at github.com/new (private), then run agvault store again.

So you can run agvault init with a URL like https://github.com/you/my-agvault.git even when the repo doesn’t exist yet; the first store/sync will create it (via gh) or prompt you to create it and retry.

Documentation

Requirements

  • Node.js 18+
  • Git
  • A private GitHub repo for the vault (create it yourself or let agvault create it via GitHub CLI)

Developing from source: Clone the repo, then npm install && npm run build && npm link to use your local build as the agvault command.