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

@cocos/engine-platforms

v1.0.5

Published

Cocos engine runtime platform adapters, distributed as a standalone package (prebuilt bin/adapter).

Readme

@cocos/engine-platforms

Cocos 引擎的运行时平台适配层(platform adapters) 独立分发包。为各平台提供引擎与宿主环境之间的适配(全局对象、Canvas、音频、文件、网络、输入等),发布内容为预打包产物 bin/adapter/**

本包是 Cocos 引擎的内部依赖,在引擎安装期被铺放到引擎目录供构建消费,通常无需单独安装

支持平台

  • Native:iOS / Android / Windows / macOS / HarmonyOS 等原生平台
  • 小游戏(Minigame):微信、支付宝、抖音、淘宝、小米
  • 快游戏(Runtime):荣耀、华为、咪咕、OPPO、vivo
  • Node.js

开发与测试

完整的实现说明、本地开发、测试、CI 与发布流程参见 开发、测试与发布指南

npm ci
npm run test:unit     # 快速运行单元测试
npm test              # 单元测试、构建及产物完整性检查
npm run test:coverage # 带覆盖率报告的单元测试

每次 push 和 pull request 都会通过 GitHub Actions 在统一的 Node.js 18.17.0 环境中运行单元测试,随后构建并检查 npm 包内容。

发布

发布前需更新 package.json 版本,并在 GitHub Releases 中选择与版本一致的标签(例如版本 1.1.0 可使用 1.1.0v1.1.0)。点击 Publish release 后,Release 工作流才会运行测试、混淆构建和产物检查,并发布到 npm。仅推送标签或保存 Draft Release 都不会发布。仓库需配置与 cocos-palcocos-ccbuild 相同的 NPM_PUBLISH Secret。

许可

UNLICENSED — Cocos 内部使用。