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

vergate

v0.1.1

Published

Vercel multi-account manager. CLI + library for switching between Vercel identities.

Downloads

302

Readme


Vercel CLI only supports one account at a time. vergate manages multiple Vercel identities with automatic token refresh, and wraps vercel deploy with seamless account selection.

Installation

bun add -g vergate
npm install -g vergate

CLI

Accounts

# Add a new account via browser login
vergate accounts add

# Switch between saved accounts
vergate accounts switch

# List all saved accounts
vergate accounts list

# Remove an account
vergate accounts remove [label]

# Validate a token and show account info
vergate accounts whoami [label]

Deploy

# Preview deploy with account selection
vergate deploy

# Production deploy
vergate deploy --prod

# Use a specific account without prompting
vergate deploy --prod --account personal

Wraps vercel deploy transparently. You see Vercel's native output directly.

Library

Use vergate programmatically in your own tools.

import {
  selectAccount,
  findAccountByLabel,
  ensureValidToken,
  deploy
} from "vergate";

Account management

import { selectAccount, loadAccounts, findAccountByLabel } from "vergate";

// Interactive account picker
const account = await selectAccount();

// Look up by label
const account = findAccountByLabel("personal");

// Validate and refresh token automatically
const valid = await ensureValidToken(account);

Deploy

import { deploy, DeployError } from "vergate";

try {
  const result = await deploy({
    token: account.token,
    cwd: process.cwd(),
    isProduction: true,
  });

  console.log(result.url);     // https://my-app-xxx.vercel.app
  console.log(result.duration); // 45000 (ms)
} catch (error) {
  if (error instanceof DeployError) {
    console.error(`Exit code: ${error.exitCode}`);
  }
}

Types

interface Account {
  label: string;
  username: string;
  token: string;
  refreshToken?: string;
  expiresAt?: number;
}

interface DeployOptions {
  token: string;
  cwd: string;
  isProduction?: boolean;
  extraArgs?: string[];
}

interface DeployResult {
  url?: string;
  duration: number;
}

How it works

Multi-account: Accounts are stored locally with encrypted tokens. When a token expires, vergate silently refreshes it via Vercel's OAuth endpoint. If the refresh token is also expired, it opens a browser login.

Storage locations:

  • macOS: ~/Library/Application Support/vergate/accounts.json
  • Linux: ~/.config/vergate/accounts.json

API

| Function | Description | |---|---| | selectAccount() | Interactive account picker with token validation | | addNewAccount() | Browser login flow, saves new account | | ensureValidToken(account) | Validate and auto-refresh token | | validateToken(token) | Check if a token is valid | | loadAccounts() | Read all saved accounts | | findAccountByLabel(label) | Look up account by label | | addAccount(account) | Save a new account | | removeAccount(label) | Delete an account | | updateAccountTokens(label, tokens) | Update token fields | | deploy(options) | Deploy to Vercel |

License

MIT