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

@ai-rpg-engine/core

v2.1.1

Published

AI RPG Engine core: state, entities, actions, events, rules, RNG, persistence

Readme

@ai-rpg-engine/core

AI RPG 引擎的基础:世界状态、实体、动作、事件、规则、可预测的随机数生成器以及持久化功能。

安装

npm install @ai-rpg-engine/core

包含内容

  • 引擎 (Engine):基于时间步进的模拟循环,具有可重现性。
  • 世界状态 (WorldState):房间、实体、全局标志、时间步计数器。
  • 实体状态 (EntityState):资源、物品栏、状态效果、信仰、记忆。
  • 动作流水线 (Action Pipeline):验证 → 预处理 → 解析 → 后处理 → 提交。
  • 事件总线 (Event Bus):结构化事件,包含类型、源、目标和数据。
  • 可预测的随机数生成器 (Seeded RNG):从单个种子生成可重复的随机数。
  • 模块系统 (Module System):注册/组合模拟模块。
  • 测试框架 (Test Harness):用于确定性模块测试的辅助工具。

快速开始

import { Engine } from '@ai-rpg-engine/core';

const engine = new Engine({
  manifest: {
    id: 'my-game', title: 'My Game',
    version: '1.0.0', engineVersion: '1.0.0',
    ruleset: 'fantasy', modules: [],
    contentPacks: [],
  },
  seed: 42,
  modules: [],
});

const state = engine.getState();

文档


MCP Tool Shop 构建。