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

create-yss-harness-dev

v0.5.1

Published

Initialize a YSS development-landing Harness project-instance repository

Readme

create-yss-harness-dev

源码候选版本:0.5.0。模板固定到 e5ddeb084adece86333166389ad9c7132bc99437;最终快照身份与摘要见 template.snapshot.json。本次同步通用技术设计、DDD/MVC 分支、编译器绑定与新旧交接协议兼容。

已发布安装与候选版本

本轮更新 GitHub 源码,未发布 npm;实际发布版本请查询 registry:

npm view create-yss-harness-dev version
npm create yss-harness-dev@latest

@latest 获取已发布包,不保证包含 GitHub 最新手册。每次初始化使用包内固定模板,不会在运行时拉取模板仓。

首次初始化

npx create-yss-harness-dev@latest --project-name "设备借用" --business-domain "内部设备管理" --target-dir ./equipment-project

生成后进入实例,核对 yss-project.yaml 为 project-instance、家族 metadata 的 templateCommit,然后阅读 docs/user-guide/用户手册索引.md。先让 Agent 只读检查身份、根 CONTEXT.md、profile 和当前上游,再按本仓流程推进。CLI 不创建远程仓、CI、Tracker 或运行时代码工程。

家族与覆盖边界

五家族分别使用 .yss-template.json、.yss-harness-design.json、.yss-harness-dev.json、.yss-harness-backend.json、.yss-harness-frontend.json。已有 profile 同样参与判定。

异族、多重身份、损坏 metadata、未知/矛盾 profile 在写入前拒绝。--force 不能绕过,--dry-run 使用同一检查。不要删除 metadata 或用另一家族 CLI 覆盖。后端/前端专职只提供仓内 node scripts/instantiate-harness --target <新目录>,没有专用 npm 包、attach/sync 或原地迁移。

已有项目与同族升级

attach 用于尚未由本 CLI 管理的项目,必须选择预览或 apply;存在本族 metadata 时改用 sync。先保存 Git 基线,按场景选择命令,不连续盲目执行:

npx create-yss-harness-dev@latest attach --target-dir . --project-name "设备借用" --business-domain "内部设备管理" --dry-run
npx create-yss-harness-dev@latest attach --target-dir . --project-name "设备借用" --business-domain "内部设备管理" --apply
npx create-yss-harness-dev@latest sync --target-dir . --dry-run
npx create-yss-harness-dev@latest sync --target-dir .

普通 sync 更新未被用户修改的 baseline,保留用户冲突并报告删除项;force 仅在身份和路径安全检查通过后处理受管冲突。校验失败事务回滚并保留旧 metadata。成功后的撤销用升级前 Git 基线或备份,不用旧 CLI 强制反向同步。运行时代码、Git 与挂载点按现有保护语义处理。

更新 CLI 程序

npx create-yss-harness-dev update --dry-run
npx create-yss-harness-dev upgrade

update/upgrade 只处理 CLI 程序,不同步实例资产;源码目录和 npx 环境按工具给出的安全提示操作,全局/项目安装按安装位置升级。

使用尚未发布的候选手册

从本 CLI 仓库检出需要的固定提交。先读取 scripts/sync-template.js 的 DEFAULT_TEMPLATE_REF,将下列 <模板完整SHA> 替换为该值;在 CLI 仓库根运行。模板源地址须保持本家族。

YSS_HARNESS_TEMPLATE_REPO=https://github.com/iloveZzz/yss-harness-dev-agent.git YSS_HARNESS_TEMPLATE_REF=<模板完整SHA> pnpm run sync-template
npm pack --ignore-scripts

--ignore-scripts 仅在上一步已成功产生并核对固定快照后使用,以免 prepack 改写输入。检查 tgz 中 template.snapshot.json 的模板 SHA 和 package.json 版本,然后使用实际包路径初始化:

npx --yes --package /absolute/path/create-yss-harness-dev-0.5.0.tgz create-yss-harness-dev --project-name "设备借用" --business-domain "内部设备管理" --target-dir ./equipment-candidate

这是安装本地已构建包的示例,不是 npm 发布操作。候选验证需覆盖新建实例的本地文档链接、身份、Skill 检查与适用交接链路;不要把历史验证日志当当前发布证据。

详细手册与维护

模板使用指南介绍职责、提示词、确认和案例。问题涉及参数/同步/包分发时在本 CLI 跟踪;涉及模板内容或生命周期时在模板源跟踪。

开发验证优先 pnpm exec node --test tests/*.test.js;需要重建快照时显式运行上面的固定输入 sync-template。模板先验证并提交,再绑定其 SHA、测试实际 tgz,最后交付 CLI 和父仓 gitlink。npm 发布须另外获得授权。

本版同步通用技术设计、DDD/MVC 分支与当前合同校验;新项目初始化和已有实例 sync 均消费固定模板。既有业务文件、架构登记和批准记录保留,旧 DDD 合同仅显式只读兼容。