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

kidgame-sdk

v0.1.1

Published

Kid Go game AI SDK: pattern-based move generation

Readme

kidgame-sdk

少儿围棋 AI SDK:基于棋型匹配的落子生成(AI + boardMatcher)。

由 kidgame-react 重构而来,棋盘依赖 goboard-sdk,演示页面放在 examples/,不随 npm 包导出。

安装

pnpm add kidgame-sdk goboard-sdk

最小用法

import { Go, Color } from 'goboard-sdk'
import { AI, parseAIConfig } from 'kidgame-sdk'

const go = new Go(13)
const ai = new AI({
  go,
  boardSize: 13,
  rules: parseAIConfig({}),
  aiColor: Color.WHITE,
})

const [col, row] = ai.autoPlay()

运行 Examples

pnpm install
pnpm dev     # http://localhost:5174

examples 通过 Vite + React 演示,默认 alias 到 src/ 源码。

导出

  • AI — 核心引擎(autoPlay / analyze)
  • parseAIConfig — 技能权重配置
  • matchPattern / getSymmetries 等 — 棋型匹配

页面、棋盘 Player、GnuGo 仅用于 examples,不进入 npm 包。

发版

推送 v* tag 触发 GitHub Actions 发布到 npm,不要本地 pnpm publish(首次发布除外,见 RELEASE.md)。先改 package.json 的 version,再(以 0.1.1 为例):

git checkout main
git pull
git add -A
git commit -m "chore: release v0.1.1"
git push origin main

git tag v0.1.1
git push origin v0.1.1

tag 必须是 v + package.json 里的版本号。完整流程见 RELEASE.md。

目录

src/           # 库源码(ai + boardmatcher)
examples/      # Vite 演示(不进入 npm 包)
dist/          # 构建产物(npm 发布内容)