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

@telepath-computer/stash

v0.2.4

Published

Conflict-free synced folders

Readme

Stash

Conflict-free synced folders. Multiple people, agents, and machines can edit the same directory, then converge with a single stash sync.

Quick Start

npm install -g @telepath-computer/stash

Set up GitHub access and connect the current directory:

stash background install
stash init
stash setup github
stash connect github --repo user/repo --background

You can initialize a directory explicitly with stash init, or let stash connect create .stash/ for you automatically.

You'll need a GitHub personal access token. We recommend a fine-grained token scoped to only the repos you use with stash.

Creating a GitHub Token

  1. Go to github.com/settings/personal-access-tokens/new
  2. Give it a name (e.g. stash)
  3. Under Repository access, select Only select repositories and pick the repo(s) you'll sync
  4. Under Repository permissions, set Contents to Read and write
  5. Click Generate token and copy it

Use this token when running stash setup github.

A classic token with the repo scope also works, but grants broader access than necessary.

How It Works

  • stash sync pushes local changes, pulls remote changes, and merges concurrent edits in one operation.
  • Text files are merged automatically. Different-region edits combine cleanly; overlapping edits preserve both sides instead of silently dropping content.
  • Binary files use last-modified-wins.
  • All files in the stash directory are tracked automatically except dotfiles, dot-directories, symlinks, and local-only .stash/ metadata.

Commands

stash background install
stash background add
stash init
stash setup github
stash connect github --repo user/repo --background
stash sync
stash watch
stash background status
stash status
stash disconnect github
stash background remove
stash background uninstall

stash watch keeps the directory in sync continuously. Press . to trigger an immediate sync and q to quit.

stash background install plus stash connect --background gives you boot-time background syncing managed by launchd on macOS or systemd on Linux.

Config

  • Global config lives at ~/.stash/config.json or $XDG_CONFIG_HOME/stash/config.json.
  • Per-stash connection config lives at .stash/config.local.json inside the synced directory.

Example global config:

{
  "providers": {
    "github": { "token": "ghp_..." }
  },
  "background": {
    "stashes": ["/Users/me/notes"]
  }
}

Docs

  • docs/api.md - developer-facing Stash and provider contracts
  • docs/architecture.md - core components and repo boundaries
  • docs/sync.md - sync lifecycle, locking, drift, and snapshot semantics
  • docs/reconciliation.md - merge and file-resolution rules
  • docs/cli.md - user-facing CLI behavior
  • docs/providers/github.md - GitHub remote contract
  • docs/development.md - local development and testing

FAQ

Will stash delete or overwrite my existing files?

Not blindly. On first sync, local and remote content are reconciled rather than replaced wholesale. The result becomes the baseline for future syncs.

Can I use the same repo with both stash and git?

Yes, but not on the same machine and directory. Stash syncs the working tree directly to main through the GitHub API and does not understand local git state.

Does stash use branches or PRs?

No. Stash reads and writes the main branch directly.

Development

Requires Node.js v22.6+.

npm install
npm link
npm test