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

@xcanwin/open-claude-code

v0.5.0

Published

Source-built Claude Code repackaged as open-claude-code.

Readme

Open Claude Code

English | 中文

English

Introduction

  • Unlike other projects that only unpack the package
  • Open Claude Code is the first clean, installable, runnable, and debuggable Agent built from the Claude Code source code
  • @xcanwin/open-claude-code is an installable and runnable CLI tool. After installation, you can use the open-claude-code command directly, and its effect is equivalent to the claude command
  • This project was completed inside the AI Agent security sandbox manyoyo

Quick Start

Requires Node.js >= 20.19.0.

npm install -g @xcanwin/open-claude-code
open-claude-code -v
open-claude-code -h
open-claude-code -p "which model are you?"
open-claude-code

For Agent Developers

Development and Debugging

npm install
npm run sync:runtime
node ./bin/open-claude-code.js -v
node ./bin/open-claude-code.js -h
node ./bin/open-claude-code.js -p "which model are you?"
node ./bin/open-claude-code.js

bin/open-claude-code.js already forwards --enable-source-maps automatically. You can verify debuggability with:

node ./bin/open-claude-code.js --max-budget-usd -1

Pre-release Testing

npm install
npm run sync:runtime
npm install -g .
open-claude-code -v
open-claude-code -h
open-claude-code -p "which model are you?"
open-claude-code

Additional Notes

Research Process

  1. Unpack @anthropic-ai/claude-code
  2. Restore src/ from the source map
  3. Keep the upstream cli.js/cli.js.map
  4. Recover src/ beside it for debugging

Source Recovery

Official original 2.1.88 backup

If you want to try source map recovery separately, run this small tool:

node ./bin/open-claude-code-recover.js -d ./artifacts -v 2.1.88

AI Agent Security Sandbox

  • Preferred: manyoyo
  • Or run the usage commands above inside docker run --rm -it node:22-slim bash

中文

介绍

  • 与其他单纯解包的项目不同
  • Open Claude Code 是全球首个基于 Claude Code 源代码的可安装、可运行、可调试、很干净的 Agent
  • @xcanwin/open-claude-code 是可安装、可运行的命令行工具,安装后可直接使用 open-claude-code 命令,效果等于 claude 命令
  • 本项目是在 AI Agent 安全沙箱 manyoyo 中完成

快速使用方法

要求 Node.js >= 20.19.0

npm install -g @xcanwin/open-claude-code
open-claude-code -v
open-claude-code -h
open-claude-code -p "which model are you?"
open-claude-code

Agent开发者

开发调试方法

npm install
npm run sync:runtime
node ./bin/open-claude-code.js -v
node ./bin/open-claude-code.js -h
node ./bin/open-claude-code.js -p "which model are you?"
node ./bin/open-claude-code.js

已实现 bin/open-claude-code.js 自动透传 --enable-source-maps,可通过以下方法验证可调试性:

node ./bin/open-claude-code.js --max-budget-usd -1

发布前的测试方法

npm install
npm run sync:runtime
npm install -g .
open-claude-code -v
open-claude-code -h
open-claude-code -p "which model are you?"
open-claude-code

其他说明

研究历程

  1. 解包 @anthropic-ai/claude-code
  2. 用 source map 恢复 src/
  3. 保留上游 cli.js/cli.js.map
  4. 再把恢复出的 src/ 放到旁边用于调试

源码恢复

官方原版 2.1.88 备份

若要单独尝试 source map 恢复,可运行这个小工具:

node ./bin/open-claude-code-recover.js -d ./artifacts -v 2.1.88

AI Agent 安全沙箱

  • 首选 manyoyo
  • 或者在 docker run --rm -it node:22-slim bash 内执行上述 使用方法