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

ghvis

v1.0.1

Published

Interactive CLI tool to bulk-change GitHub repository visibility (public ↔ private)

Readme

ghvis

Bulk-change GitHub repository visibility (public ↔ private) through an interactive terminal interface.

Features

  • Interactive multiselect to pick repositories
  • Supports both directions: public → private and private → public
  • Auto-detects GitHub CLI (gh) authentication or prompts for a Personal Access Token
  • Handles personal and organization repositories (requires admin access)
  • Paginated repository fetching
  • Confirmation prompt before applying changes
  • Success/failure summary after execution

Installation

# Install globally
npm install -g ghvis

# Or run directly with npx
npx ghvis

Usage

Simply run the command and follow the interactive prompts:

ghvis

The tool will guide you through:

  1. Authentication — automatically uses gh CLI auth if available, otherwise prompts for a PAT
  2. Select target visibility — choose whether to make repos public or private
  3. Select repositories — multiselect from eligible repos (only shows repos that can be changed)
  4. Confirm — review your selection before applying
  5. Apply — changes visibility and displays a summary

Authentication

GitHub CLI (recommended)

If you have the GitHub CLI installed and authenticated, ghvis will automatically use your existing session:

gh auth login
ghvis

Personal Access Token (PAT)

If gh CLI is not available, you will be prompted to enter a PAT directly in the terminal.

How to get a PAT:

  1. Go to GitHub Token Settings
  2. Click "Generate new token""Generate new token (classic)"
  3. Fill in:
    • Note: ghvis (or any label you prefer)
    • Expiration: choose based on your needs (30 days, 90 days, or no expiration)
    • Scopes: check repo (full control of private repositories)
  4. Click "Generate token"
  5. Copy the token (starts with ghp_) — it is only shown once

Then run ghvis and paste the token when prompted:

$ ghvis
? Enter your GitHub Personal Access Token (PAT): ghp_xxxxxxxxxxxx

The token is only held in memory during the session and is never written to disk.

Requirements

  • Node.js >= 18.0.0
  • GitHub account with admin access to target repositories
  • Either gh CLI authenticated or a PAT with repo scope

Development

# Clone the repository
git clone [email protected]:moritakaaz/ghvis.git
cd ghvis

# Install dependencies
npm install

# Build
npm run build

# Lint (type-check only)
npm run lint

Conventional Commits

This project uses conventional commits enforced by commitlint + husky:

feat: add new feature        → minor version bump
fix: fix a bug               → patch version bump
feat!: breaking change       → major version bump
chore: maintenance           → no version bump
docs: documentation          → no version bump
refactor: code refactor      → no version bump

Releasing

# Bump version, update CHANGELOG.md, and create a git tag
npx standard-version

# Push with tags to trigger CI + npm publish
git push --follow-tags

GitHub Actions will automatically:

  • Run CI checks (lint + build on Node 18, 20, 22)
  • Publish to npm (triggered by v* tag)
  • Create a GitHub Release with changelog

License

MIT