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

@cowave-front/ai

v1.0.1

Published

`@cowave-front/ai` 负责安装和同步脚手架内置 AI 开发规范,使 Codex、Claude Code、Gemini、Cursor、Windsurf、GitHub Copilot 等工具都能读取同一套项目规则。

Downloads

39

Readme

@cowave-front/ai

@cowave-front/ai 负责安装和同步脚手架内置 AI 开发规范,使 Codex、Claude Code、Gemini、Cursor、Windsurf、GitHub Copilot 等工具都能读取同一套项目规则。

普通业务开发者一般不需要直接使用本包,推荐使用 cowave-front create --ai-skillscowave-front ai sync

当前能力

  • 把内置 .ai 规则模板安装到生成项目。
  • 根据选择的 UI 风格注入对应的 AI UI 规则。
  • .ai/rules/*.md 生成不同 AI 编程工具能识别的入口文件。
  • 保留 .ai/manifest.json 作为规则索引。

支持的 AI 工具

| 工具 | 输出文件 | | --- | --- | | Codex | AGENTS.md | | Claude Code | CLAUDE.md | | Gemini CLI | GEMINI.md | | Cursor | .cursor/rules/*.mdc | | Windsurf | .windsurf/rules/*.md | | GitHub Copilot | .github/copilot-instructions.md.github/instructions/*.instructions.md |

安装

npm install @cowave-front/ai

使用示例

import { installAiSkillPreset, syncAiRules } from '@cowave-front/ai'

await installAiSkillPreset({
  cwd: 'D:/project/demo-front',
  sourceDir: 'D:/project/cowave-front-cli/templates/ai-skills/default',
  projectName: 'demo-front',
  packageName: 'demo-front',
  stylePreset: 'deep-blue-tech',
  stylePresetLabel: '深蓝科技风',
  stylePresetDescription: '深蓝底色搭配蓝青色高亮',
  force: true
})

await syncAiRules({
  cwd: 'D:/project/demo-front',
  targets: ['codex', 'claude', 'cursor']
})

主要 API

installAiSkillPreset(options)

把脚手架内置 AI 规则安装到项目的 .ai 目录。

常用参数:

  • cwd:目标项目根目录。
  • sourceDir:AI 规则模板目录。
  • projectName:项目目录名。
  • packageName:项目 package name。
  • stylePreset:当前 UI 风格。
  • stylePresetLabel:UI 风格中文名称。
  • stylePresetDescription:UI 风格说明。
  • force:如果 .ai 已存在,是否覆盖。

syncAiRules(options)

.ai/rules/*.md 生成各 AI 工具入口文件。

常用参数:

  • cwd:目标项目根目录。
  • targets:要同步的 AI 工具列表。
  • logger:可选日志输出器。

aiToolDefinitions

AI 工具定义列表,供 CLI 交互选择使用。

开发命令

corepack pnpm --filter @cowave-front/ai build
corepack pnpm --filter @cowave-front/ai test
corepack pnpm --filter @cowave-front/ai typecheck