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/starter-fantasy

v2.1.2

Published

AI RPG Engine fantasy starter: The Chapel Threshold

Readme

@ai-rpg-engine/starter-fantasy

圣殿门槛 — 一个用于 AI 角色扮演引擎的黑暗奇幻入门世界。

安装

npm install @ai-rpg-engine/starter-fantasy

您将学到什么

这个入门示例在一个紧凑的世界中展示了完整的引擎架构:

| 特性 | “圣殿”展示的内容 | |---|---| | Rulesets | fantasyMinimalRuleset — 属性(活力/本能/意志),资源(生命值/体力),动词,公式 | | Zones & traversal | 2个房间,共5个区域,包含相邻关系、光照等级、可交互对象、危险 | | Districts | 圣殿广场(神圣) vs 墓穴深处(被诅咒,由派系控制) | | Dialogue | 具有3个分支和全局标志效果的朝圣者对话 | | Combat | 灰烬亡灵,具有攻击性AI配置、恐惧标签、警戒目标 | | Cognition & perception | 记忆衰减、感知过滤器、不死生物呈现规则 | | Progression | 3个节点的战斗精通树,击败实体时获得经验奖励 | | Environment | 不稳定的地板,进入区域时会消耗体力 | | Factions | 圣殿不死生物派系,具有凝聚力设置 | | Belief provenance | 谣言传播,带有延迟,跟踪信仰 | | Inventory | 治疗药剂,具有脚本化的使用效果,恢复8点生命值 | | Simulation inspector | 完整的检查功能,用于回放分析 |

内容

  • 5个区域 — 废弃的教堂入口、中殿、阴影角落、储物室通道、墓穴前厅
  • 1个NPC — 疑心朝圣者(分支对话,3个对话路径)
  • 1个敌人 — 灰烬亡灵(具有攻击性AI,害怕火焰和神圣事物)
  • 1个物品 — 治疗药剂(脚本化的使用效果,恢复8点生命值)
  • 1个成长树 — 战斗精通(坚韧 → 敏锐 → 战斗狂暴)
  • 1个呈现规则 — 不死生物将所有生物视为威胁
  • 15个模块 — 移动、状态、战斗、物品、对话、认知、感知、成长、环境、派系、谣言、区域、信仰、观察者呈现、检查器

用法

import { createGame } from '@ai-rpg-engine/starter-fantasy';

// One line — all 15 modules, content, and ruleset pre-wired
const engine = createGame(42);

// Or import pieces individually:
import { manifest, zones, pilgrimDialogue, fantasyMinimalRuleset } from '@ai-rpg-engine/starter-fantasy';

文档


MCP Tool Shop 构建。