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-agent-ready

v0.1.6

Published

Scaffold an agent-ready Node.js + TypeScript project with team conventions baked in

Readme

create-agent-ready

npm create agent-ready@latest <项目名> —— 生成一个「agent-ready」的通用 Node.js + TypeScript 项目,把团队约定(目录规范、AGENTS.md、createXXX 工厂、分支工作流等)固化成模板,开新项目不用重搭。

用法

npm create agent-ready@latest my-app          # 代码生成到 ./my-app,AGENTS.md 写到当前目录
npm create agent-ready@latest my-app ./apps/a # 指定代码目标目录

定位:你在「容器目录」执行命令——代码进 ./my-app/ 子目录,AGENTS.md 团队约定写到容器目录本身(已有 AGENTS.md 会报错不覆盖),容器目录用来放与项目相关的其它资料。要求 Node >= 23.6。

本地开发

pnpm install
pnpm test
pnpm typecheck

# 本地试跑脚手架
node src/cli.ts my-app /tmp/my-app

# 或 link 成全局命令
pnpm link --global
create-agent-ready my-app

发布

npm publish   # prepublishOnly 自动跑 pnpm build

发布前必须 pnpm builddist/cli.js(bin 指向它):Node 的 type-stripping 不作用于 node_modules 下的文件,包被安装后 .ts 入口跑不了,所以发布产物是 esbuild bundle 出的单文件 js;开发期仍保持零构建直跑 src/*.ts。esbuild 的 postinstall 走 pnpm-workspace.yamlallowBuilds 白名单(pnpm 11 已弃用 onlyBuiltDependencies)。

结构

src/
├─ cli.ts       # 入口:参数解析、项目名校验、非空目录保护
├─ scaffold.ts  # createScaffold():遍历模板、替换占位符、写盘
└─ render.ts    # createRenderer():{{project_name}} 占位符替换
templates/base/ # 模板,纯数据文件,生成时原样拷贝并替换占位符