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

getdotfiles

v0.1.1

Published

Fetch dotfiles from a GitHub user's dotfiles repo and install them to your home directory

Readme

getdotfiles

Fetch dotfiles from a GitHub user's dotfiles repo and install them to your home directory.

Works on macOS, Linux, and Windows.

Requirement: Node.js 18+ only. Bun is not required for end users — npx getdotfiles runs on Node.

Built with TypeScript + Zod; published as Node-compatible bundles with declaration files (dist/*.d.ts) for npx and programmatic imports.

npx getdotfiles <username>

Usage

# Fetch from github.com/username/dotfiles
npx getdotfiles ashleyjackson

# Use a custom repo
npx getdotfiles ashleyjackson --repo my-configs

# Preview without installing
npx getdotfiles ashleyjackson --dry-run

# Overwrite existing files without backup
npx getdotfiles ashleyjackson --force

# Skip confirmation prompt
npx getdotfiles ashleyjackson -y

On Windows (PowerShell or cmd) — install Node.js LTS first (includes npx):

# Verify Node is available (should print v18+)
node -v
npx getdotfiles ashleyjackson
npx getdotfiles ashleyjackson --dry-run
$env:GITHUB_TOKEN="ghp_xxx"; npx getdotfiles ashleyjackson -y

You do not need Bun, Git, or the GitHub CLI to start. If gh is missing, an interactive run can offer to install it for higher API rate limits.

How it works

  1. Lists root contents of github.com/<username>/dotfiles via the GitHub API
  2. Recursively collects all files at any depth (not only names starting with .), skipping noise dirs like .git / node_modules
  3. Downloads each file from raw.githubusercontent.com (bytes preserved as-is)
  4. Writes each file under your home directory (~/ / %USERPROFILE%), creating missing parent folders and preserving repo path segments

Platform notes

| Topic | Behavior | |-------|----------| | Install root | Always the user home directory (os.homedir() → ~/ or %USERPROFILE%) | | Paths | Repo paths use /; they are joined with the OS path separator on write | | Invalid Windows paths | Best-effort: illegal names (e.g. CON, foo:bar) are skipped with a warning; other files still install | | Line endings | Preserved exactly from the repo (no LF↔CRLF conversion) | | Auth | GITHUB_TOKEN, or the GitHub CLI (gh auth token) when available | | Missing Git / gh | On a TTY, installs Git first if needed, then offers GitHub CLI (brew / winget / apt / …; Windows also PowerShell irm latest MSI with UAC — version always dynamic), then optional gh auth login | | Non-interactive | Without a TTY, no install/write prompts — set GITHUB_TOKEN, or install gh yourself; use -y / --dry-run |

Rate limits

Unauthenticated GitHub API allows 60 requests per hour. Set GITHUB_TOKEN env var for 5,000 req/hr:

# macOS / Linux
GITHUB_TOKEN=ghp_xxx npx getdotfiles ashleyjackson

# Windows PowerShell
$env:GITHUB_TOKEN="ghp_xxx"; npx getdotfiles ashleyjackson

If the GitHub CLI is installed and logged in (gh auth login), its token is used automatically when GITHUB_TOKEN is unset.

If gh is missing and no token is set, an interactive session will detect that and offer to install it (Homebrew, winget/Scoop/Chocolatey, apt/dnf/pacman/zypper when available), then optionally run gh auth login.

Existing files

If a target file already exists in your home directory, it's backed up with a .backup.{timestamp} suffix before being overwritten. Only the two newest backups are kept per file (live + 2 backups). Use --force to skip backup.

License

MIT