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

@maoyugames/create-phaser-game

v1.2.0

Published

@maoyugames/phaser-framework 的项目脚手架:一条命令生成只含业务层 + 配置、依赖框架包的新项目骨架(npm create @maoyugames/phaser-game my-game)

Readme

@maoyugames/create-phaser-game

@maoyugames/phaser-framework 的项目脚手架:一条命令生成一个只含业务层 + 配置、依赖框架包的新游戏项目骨架。

用法

npm create @maoyugames/phaser-game my-game

缺省目录名时会交互询问。生成后:

cd my-game
npm install
# 在 platform.config.ts 填入各平台占位(微信 appid / Facebook appId / Capacitor bundleId 等)
# 把微信官方 weapp-adapter.js 放到 wechat/vendor/(发微信小游戏时需要)
npm run dev            # 启动 Web 调试(pf dev)
npm run build:tiktok   # 打 TikTok 包(pf build tiktok)

生成的项目结构

my-game/
├── game.config.ts        # 运行时配置(apiBaseURL / 设计分辨率 等)
├── platform.config.ts    # 各平台占位单一来源(升级框架包不会还原)
├── src/game/             # 你的业务代码(场景 / 功能模块 / 面板 / 配置表 …)
├── wechat/vendor/        # 放 weapp-adapter.js(微信小游戏用,版权文件自备)
└── .claude/skills/       # 项目级 skill,Claude Code 进入项目自动激活

业务只 import { App, BaseScene, ... } from '@maoyugames/phaser-framework';构建用 pf CLI(已包装进 npm scripts)。详见框架包文档与项目内 .claude/skills/phaser-game-dev

许可

MIT