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

@phoenix-wing/code-core

v0.5.1

Published

Phoenix Code 跨宿主纯 TypeScript 算法与契约

Readme

@phoenix-wing/code-core

Phoenix Code 可跨宿主复用的纯 TypeScript 算法与数据契约。包内不依赖 Vue、Element Plus、Node 运行时 API、VS Code、Tauri、数据库驱动或平台二进制。

当前公共能力包括:

  • C++ 实现文件与头文件成员排序、锁定区保护;
  • UUID/GUID/CAA GUID 识别、花括号/大小写/布局保持、替换计划与纯文本 apply;
  • Code Rename 计划与纯文本 apply;
  • Phoenix Ignore 子集的规则解析、大小写策略、路径/名称/目录匹配;
  • 搜索替换规则校验、去重/冲突检测、最长匹配、文本行号与名称建议;
  • 工作集 Schema,以及 workspace 相对路径规范化、去重、文件/目录匹配、包含和 roots 相对化;
  • CAA 工程环境和对话框 handoff 数据契约;
  • 跨宿主文件、成员排序、UUID 与搜索替换结果 ViewModel;成员排序、UUID 与搜索替换另提供 Host-neutral Web Components。

kt-auto-code 与 Desk Tools 应直接消费本包。旧 phoenix-wing/code-core subpath 仅保留兼容 re-export,不再持有算法真源。

@phoenix-wing/code-core/fixtures/pure-capabilities-v1.json 是 UUID 与 workspace path 的跨宿主 golden。其 SHA-256 为 1d894c5ccffb8d8840c2fcf8a032ed34c79e7c5d2e44ad95fe1bf84665b32e8c;消费者应比较字节与行为,不复制正则、格式器或路径包含算法。