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-ai-game-research

v0.1.0

Published

Create an AI-assisted game research project with Codex, Playwright, and printable HTML reports.

Readme

create-ai-game-research

create-ai-game-research は、日本の小学生が自由研究で「生成AIを使ったゲーム開発」を体験するためのスターターキットを作るCLIです。

Codexと一緒に、ゲームの企画、設計書づくり、HTMLゲーム実装、Playwrightでの確認、最後の自由研究レポート作成まで進めるための初期ファイルを生成します。

使い方

npm create ai-game-research my-game

公開後、またはローカルでリンクした状態では次の形でも使えます。

npx create-ai-game-research my-game

生成後は、作ったフォルダに移動して必要なセットアップを行います。

cd my-game
npm install
npm run setup:playwright
npm run test:e2e

このCLIは npm install、Playwrightブラウザ導入、git init を自動実行しません。子どもの作業環境や大人の確認タイミングに合わせて、手動で進める方針です。

生成されるプロジェクト

生成先には、主に次のファイルとフォルダが入ります。

  • AGENTS.md: Codexに守ってほしい進め方
  • README.md: 生成されたプロジェクト用の説明
  • adult-guide.md / child-guide.md: 大人向け・子ども向けガイド
  • game.html: ゲーム本体の初期プレースホルダー
  • design.html: 実装前に確認する設計書
  • report.html: 自由研究レポートの初期HTML
  • assets/: 画像や素材の管理場所
  • screenshots/: Playwrightなどで撮った画面保存場所
  • tests/: PlaywrightのE2Eテスト
  • tools/: スクリーンショット保存やライブラリ準備の補助ツール
  • .agents/ / .codex/: Codex用のSkillやHook

ゲーム本体は、原則として game.html 単体で動くように作ります。画像が必要になった場合は assets/ も一緒にコピーすればChromebookで動かせる形を目指します。

画像生成について

画像生成はCLIやCodexから自動実行しません。必要な場合は、Codexが assets/image-prompts.md にChatGPT Images 2.0向けのプロンプトを作り、大人が手動で画像を生成して assets/images/ に保存します。

公開前のローカル確認

npm publish前に、ローカルでパッケージ内容を確認できます。

node bin/create-ai-game-research.js sample-game-local
npm pack --dry-run

実際の .tgz を作って試す場合は、次のように確認できます。

npm pack
npx ./create-ai-game-research-0.1.0.tgz sample-game

このリポジトリでは、まだ npm publish は行いません。

ライセンス

MIT Licenseです。詳しくは LICENSE を見てください。