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

@luozhifeng/playable-web-gui-sdk

v1.0.4

Published

A SDK for Cocos game development providing parameter adjustment capabilities

Readme

Playable Web Platform SDK

这是一个为 Cocos 游戏开发提供参数调整能力的 SDK。基于 lil-gui 实现,允许在游戏中显示控制面板,实时调整游戏参数。

功能特点

  • 基于 lil-gui 的参数控制面板
  • 支持实时参数调整
  • 支持参数分组管理
  • 简单易用的 API

安装

npm install playable-web-platform-sdk

使用示例

import { ParameterPanel } from 'playable-web-platform-sdk';

// 创建参数面板实例
const panel = new ParameterPanel();

// 注册要调整的参数
panel.registerParameter({
  target: gameObject,
  property: 'position',
  name: 'Position',
  group: 'Transform'
});

// 显示面板
panel.show();

API 文档

ParameterPanel

主要的参数面板类,用于管理和显示参数控制界面。

方法

  • registerParameter(options: ParameterOptions): void 注册一个参数到控制面板
  • show(): void 显示参数控制面板
  • hide(): void 隐藏参数控制面板

ParameterOptions

参数注册选项接口:

interface ParameterOptions {
  target: any;           // 目标对象
  property: string;      // 属性名
  name?: string;         // 显示名称
  group?: string;        // 分组名称
  min?: number;          // 最小值(仅用于数字类型)
  max?: number;          // 最大值(仅用于数字类型)
  step?: number;         // 步进值(仅用于数字类型)
}

许可证

MIT