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

@chiyou/minigame-framework

v1.0.34

Published

基于 Cocos Creator 3.x 的小游戏开发框架,支持多平台发布

Readme

MiniGameFramework

基于 Cocos Creator 3.x 的小游戏开发框架,支持多平台发布。

特性

  • 🚀 模块化架构 - 将游戏功能分解为独立的 Manager
  • 🔌 多平台支持 - 微信、抖音、快手、支付宝、B站、TapTap 等 12+ 平台
  • 📦 资源管理 - 按批次预加载资源,支持异步加载和缓存管理
  • 🎯 生命周期管理 - 统一管理游戏的冷启动、热启动、前台/后台切换
  • 🔐 隐私合规 - 内置隐私协议、用户登录、数据加密等合规功能
  • 📢 广告系统 - 支持插屏、激励视频、Banner、原生、Portal 等广告
  • 💬 事件系统 - 基于观察者模式的事件中心,实现模块间解耦通信

安装

npm install @chiyou/minigame-framework

使用

在 Cocos Creator 项目中使用

  1. 在 Cocos Creator 的 package.json 中添加依赖:
{
  "dependencies": {
    "@chiyou/minigame-framework": "^1.0.0"
  }
}
  1. 构建项目时 Cocos Creator 会自动安装依赖

  2. 在代码中导入需要使用的模块:

import { ResMgr, UIMgr, EventMgr } from '@chiyou/minigame-framework';

预置的平台适配器

| 平台 | PlatformID | |------|------------| | 微信小游戏 | ID_MiniGame_WeiXin | | 抖音小游戏 | ID_MiniGame_DouYin | | 快手小游戏 | ID_MiniGame_KuaiShou | | 支付宝小游戏 | ID_MiniGame_ZhiFuBao | | B站小游戏 | ID_MiniGame_Bilibili | | TapTap | ID_MiniGame_TapTap | | 小米快游戏 | ID_QuickGame_XiaoMi | | OPPO 快游戏 | ID_QuickGame_Oppo | | 荣耀快游戏 | ID_QuickGame_Honor | | vivo 快游戏 | ID_QuickGame_Vivo | | 华为快游戏 | ID_QuickGame_HuaWei |

License

MIT