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

pi-sync-config

v1.0.0

Published

Sync your pi config (settings, extensions, themes, skills, prompts) to a remote git repository

Readme

pi-sync-config

A pi extension that keeps your pi configuration in sync across machines via a remote git repository.

What gets synced

| Item | Path | | ---------------- | --------------------------------------------------------- | | Settings | ~/.pi/agent/settings.json (machine-local keys stripped) | | Keybindings | ~/.pi/agent/keybindings.json | | Extensions | ~/.pi/agent/extensions/ | | Themes | ~/.pi/agent/themes/ | | Skills | ~/.pi/agent/skills/ | | Prompt templates | ~/.pi/agent/prompts/ |

Never synced (secrets & sensitive files):

| Item | Reason | | ------------------------- | ------------------------------------------------------------------------------------- | | auth.json | API keys and OAuth tokens | | AGENTS.md / CLAUDE.md | User context files — may contain sensitive business logic or proprietary instructions | | sessions/ | Local session history | | git/, npm/, bin/ | Installed packages — reinstalled automatically via packages in settings.json |

settings.json handling

settings.json is safe to sync — pi stores secrets in auth.json and environment variables, never in settings. Before committing, pi-sync strips machine-local runtime keys (e.g. lastChangelogVersion). On pull, incoming portable config is merged into the local file so machine-specific values (e.g. shellPath) set on this machine are preserved.

Installation

pi install npm:pi-sync-config

Setup

Run once after installation:

/sync-setup <ssh-repo-url>

Optionally set a custom pull interval (default 1 day):

/sync-setup [email protected]:you/pi-config.git 60

SSH only — HTTPS URLs are rejected. Make sure your SSH key is added to your Git host (e.g. ~/.ssh/id_ed25519.pub → GitHub → Settings → SSH keys).

pi-sync will:

  1. Clone (or push to) the remote repo.
  2. Watch settings.json for changes — every pi install automatically triggers a push.
  3. Pull from the remote every N minutes in the background (default: once a day).

Commands

| Command | Description | | ------------------------------ | --------------------------------------- | | /sync-setup <url> [interval] | First-time setup with a remote git URL | | /sync | Manually push current config to remote | | /sync-pull | Manually pull latest config from remote | | /sync-status | Show current config and last sync time |

How it works

session_start
  └─ pull latest from remote (fast-forward only)
  └─ start periodic pull timer (default every 1440 min / 1 day)
  └─ watch ~/.pi/agent/settings.json for changes

settings.json changes (e.g. after `pi install`)
  └─ debounced 2 s → push to remote

periodic pull timer
  └─ git fetch → check for new commits → pull + apply

session_shutdown
  └─ cancel timer + file watcher

Config is stored in ~/.pi/agent/pi-sync.json (never committed to the repo). The local git clone lives at ~/.pi/agent/sync-repo/.

Conflict handling

Pulls use --ff-only. If histories diverge (e.g. two machines pushed independently), the pull is skipped with an error notification. Fix manually in ~/.pi/agent/sync-repo/ and run /sync-pull again.