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

claude-here

v1.0.1

Published

Add an "Open Claude Here" entry to the Windows right-click menu for Claude Code CLI.

Downloads

316

Readme

Claude Here(中文)

在 Windows 右键菜单里加一个 "Open Claude Here",在选中的目录里启动 Claude Code。

English

Windows 10/11 Node 18+ No admin Zero deps


它做什么

安装 install 后,Windows 资源管理器的右键菜单会多出一项:

| 在哪里右键 | 菜单显示 | |---|---| | 文件夹内部空白处 | 用 Claude Code 打开 | | 一个文件夹本身 | 用 Claude Code 打开 |

具体显示的标签跟随系统区域,见下面的 语言 小节。

右键菜单中出现「用 Claude Code 打开」,在所选目录启动 Claude Code

点一下就会在那个目录打开终端,运行 claude

Win11 说明:在 Win11 modern 菜单里,这个项可能会藏在 "显示更多选项" 下面。这是 Win11 菜单的默认行为,不是 bug,功能本身能正常使用。


安装

npx -y claude-here install

完事。install 只会写当前用户(HKCU)的注册表项,不需要管理员权限npx claude-here uninstall 会把刚才写的项都清掉,不留残余。

语言

右键菜单里显示的标签跟随系统区域:英文系统显示 Open Claude Here,中文系统显示 用 Claude Code 打开。要覆盖:

npx -y claude-here install --lang=zh
npx -y claude-here install --lang=en

或者设环境变量 CLAUDE_HERE_LANG=zh(或 en),对当前 shell 生效。

从源码安装(不走 npm)

如果想先看一遍代码再跑,或者不想用 npm:

git clone https://github.com/klarkxy/claude-here
cd claude-here
npm run register         # = node bin/claude-here.cjs install
npm run unregister       # = node bin/claude-here.cjs uninstall

install / uninstall 子命令的用法跟 npx 方式一样,只是没版本固定 — 跑的是你 clone 下来的那份。--lang 同样能用。

卸载

npx claude-here uninstall

系统要求

  • Windows 10 或 11
  • Node.js 18+
  • 已装 Claude Code CLIwhere claude 能输出一行路径)
  • 三选一:Windows Terminal、PowerShell 7、或 cmd.exe(最后这个永远有)

工作原理

install 写 4 个注册表值(当前用户,无需管理员):

HKCU\Software\Classes\Directory\Background\shell\OpenClaudeHere   (文件夹内部空白处)
HKCU\Software\Classes\Directory\shell\OpenClaudeHere              (文件夹本身)

每项下面有个 command 子键,值是一段自包含的命令行,资源管理器右键时直接执行。uninstall 把这两组键删掉。

终端在 install 时一次性选定(wt → pwsh → cmd 顺序回退),claude绝对路径也用 where claude 解析后直接写进注册表,完全不依赖资源管理器进程的 PATH 或你 shell 的 PATH。

菜单图标取的是 @anthropic-ai/claude-code 包里 claude.exe 自带的嵌入图标,install 时解析成绝对路径写进去;找不到时回落到 cmd.exe