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

worktree-up

v0.1.1

Published

Copy local setup into a Git worktree and run repository bootstrap commands.

Readme

worktree-up

worktree-up copies local setup files from a repository's main checkout into the current Git worktree, then runs repository-defined setup commands.

Usage

1. Add config

Put this in your main repository checkout (not the worktree):

If using package.json, add this to the root package.json:

{
  /** ...rest of your package.json */
  "worktree-up": {
    "copy": ["**/.env.local", "**/.env", "**/settings.local.json"],
    "run": ["pnpm install", "pnpm db:generate"],
  },
}

Or create a repo root worktree-up.json (works for non-JS repos):

{
  "copy": ["**/.env.local", "**/.env", "**/settings.local.json"],
  "run": ["mise install", "just bootstrap"]
}

Committing the config is not necessary if it already exists in your main checkout on disk. worktree-up reads config from the source/main checkout first.

[!IMPORTANT] Both worktree-up.json and config in package.json cannot exist, only use single

2. Create a git worktree

From your main checkout:

git worktree add ../my-repo-feature -b feat/somefeature
cd ../my-repo-feature

3. Run worktree-up

npx -y worktree-up

worktree-up sees your source/main tree automaitcally and will copy files from it.

Expected output:

[worktree-up] Inspecting checkout from ~/my-repo-feature
[worktree-up] Current checkout: ~/my-repo-feature
[worktree-up] Source checkout: ~/my-repo
[worktree-up] Loaded configuration from ~/my-repo/package.json
[worktree-up] Copied .env.local
[worktree-up] Copied .claude/settings.local.json
[worktree-up] Copy summary: 2 copied, 0 skipped.
[worktree-up] Running setup command: pnpm install
[worktree-up] Run summary: 2 command(s) completed.
[worktree-up] Finished.

That's it!

Behavior

  • detects the current Git checkout root
  • finds the repository's source checkout from Git worktree metadata
  • loads config from the source/main checkout first, then falls back to the current worktree
  • supports worktree-up.json or package.json
  • copies matched files and symlinks without overwriting anything already present
  • runs configured setup commands sequentially in the current worktree

Copy rules

  • copy entries are glob patterns resolved from the source checkout root
  • regular files and symlinks are copied
  • directories are not copied as standalone entries
  • existing paths in the target worktree are skipped and never overwritten
  • patterns that match nothing are logged as warnings
  • patterns cannot use absolute paths or .. traversal outside the repo root