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

@korkje/claudes

v0.1.8

Published

Multi-account launcher for Claude Code — manage and switch between CLAUDE_CONFIG_DIR profiles

Downloads

1,197

Readme

@korkje/claudes

npm

Multi-account launcher for Claude Code. Keeps any number of independent Claude Code configurations (accounts, settings, history) in ~/.claude-<name> folders and launches claude with CLAUDE_CONFIG_DIR pointing at the one you pick.

demo

Install

npm install -g @korkje/claudes

Requires claude on your PATH.

Usage

claudes            # interactive UI
claudes -- -r      # interactive UI, passing -r through to claude on launch

Everything is managed from the interactive UI:

| Key | Action | | --- | --- | | / or j/k | move | | enter | launch the selected account; on + new account / + add path rows it opens an inline input (enter applies, esc cancels) | | d | delete account (asks for confirmation), or a base path mapping | | p | show/hide the account's base paths | | esc | back — quits from the account list |

Your regular ~/.claude appears as default (~/.claude) — listed first (when the folder exists) and impossible to delete. The list preselects the base path match for your working directory, or else the top entry.

On startup the UI checks npm for a newer claudes release in the background and shows a one-line notice when there is one; the check never blocks and failures (e.g. offline) are silent.

Base paths

Base paths map directories to accounts: starting claudes inside a mapped directory preselects that account (longest match wins) and auto-launches it after a short countdown — navigating or using a shortcut cancels (unbound keys are ignored).

They're managed inline: press p on an account to expand its paths as an indented list below it (press again to collapse). d on a path removes the mapping, and the indented + add path row turns into an input right in the list (prefilled with your cwd) that maps a new directory to that account.

base paths

Replacing claude

To route plain claude through claudes, press a in the UI — an interactive toggle that adds/removes the alias in the startup file of your shell (zsh, bash, or fish).

alias

It's equivalent to adding this to your .zshrc/.bashrc yourself:

alias claude="claudes --"

claude, claude -r, claude --model opus, etc. all open the UI, and any arguments are passed through to claude when an account launches — so claude -r inside a mapped directory shows the selector for a moment, then resumes with the right account (or immediately, with enter). Since aliases only exist in your interactive shell, IDE integrations and scripts that spawn claude still get the real CLI (as does claudes itself — no recursion). For claudes' own help/version, call the unaliased claudes -h.

Non-interactive use

When stdin is not a TTY (pipes, scripts), claudes skips the UI and auto-resolves the account (base path match → default), passing any arguments through.

Development

npm test builds the CLI and runs the vitest suite: unit tests for the config/account/shell logic, Ink component tests that drive the real UI through a fake terminal, and CLI tests against the built bundle with a stubbed claude.

The README demos are scripted with VHS: npm run demo regenerates all three GIFs inside throwaway HOMEs, so they never touch real accounts. The claude that "launches" at the end of the main demo is demo/fake-claude.tsx, a stand-in Ink screen.

Config

Base path mappings live in ~/.claudes.json:

{
  "basePaths": {
    "~/Documents/dev/personal": "personal"
  }
}