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

@neotap.app/neo-engine

v0.1.2

Published

Client runtime SDK for Neo Engine, a cross-platform game engine built on Phaser 3 (2D) and Three.js (3D).

Readme

@neotap.app/neo-engine

Client runtime SDK for Neo Engine, a lightweight cross-platform game engine built on Phaser 3 (2D) and Three.js (3D).

Neo Engine 的客户端运行时 SDK,基于 Phaser 3(2D)与 Three.js(3D),平台无关,可用于 H5、微信小游戏与抖音小游戏。

Features / 特性

  • Unified runtime / 统一运行时:createRuntime 负责 canvas、2D / 3D 引擎实例、能力绑定与生命周期清理。
  • Platform capabilities (RAL) / 平台能力:存储、音频、输入、前后台生命周期、资源加载、系统信息、屏幕信息。
  • Cross-platform / 跨端:H5、微信小游戏、抖音小游戏;小游戏产物由 @neotap.app/neo-engine-tools 构建。
  • Platform-agnostic game code / 平台无关游戏代码:游戏脚本只依赖 ctx 暴露的能力,不直接访问 window / wx / tt。

Installation / 安装

pnpm add @neotap.app/neo-engine
# or: npm install @neotap.app/neo-engine

环境要求:Node.js ^20.19.0 || >=22.12.0。

Usage / 使用

游戏入口(通常是 Neo 工程的 src/index.ts):

import Phaser from 'phaser';
import type { NeoGameInstance2D } from '@neotap.app/neo-engine';

class MainScene extends Phaser.Scene {
  constructor() {
    super('main');
  }

  create() {
    this.add.text(20, 20, 'Hello Neo Engine', { fontSize: '32px', color: '#fff' });
  }
}

const game: NeoGameInstance2D = {
  mode: '2d',
  config: {
    type: Phaser.AUTO,
    width: 800,
    height: 600,
    backgroundColor: '#1a1a2e',
    scene: [MainScene],
  },
  async create(ctx) {
    ctx.storage.set('visited', '1');
    ctx.input.onPointerDown((event) => {
      console.log(event.x, event.y);
    });
    await ctx.audio.unlock();
  },
};

export default game;

宿主或生成的引导代码挂载运行时:

import { createRuntime, createH5Capabilities } from '@neotap.app/neo-engine';

const runtime = createRuntime();
await runtime.mount({
  capabilities: createH5Capabilities(),
  mount: { element: document.getElementById('app')! },
  loadInstance: () => import('./src/index').then((module) => module.default),
});

// runtime.unmount();

Documentation / 文档

License / 许可证

Apache License 2.0