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-pirate

v2.2.2

Published

AI RPG Engine pirate starter: Black Flag Requiem

Downloads

765

Readme

@ai-rpg-engine/starter-pirate

黑旗挽歌——一个专为AI RPG引擎设计的海盗主题入门世界。

安装

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

您将学到什么

这个入门示例通过一个海盗冒险,展示了完整的引擎功能:

| 特性 | “海盗”示例展示的内容: | |---|---| | Rulesets | pirateMinimalRuleset——属性(力量/狡猾/航海技能),资源(生命值/士气),动词,公式。 | | Zones & traversal | 3个房间,共5个区域,包含相邻关系、光照等级、可交互对象、危险因素。 | | Districts | 殖民海军势力(Port Haven) vs. 诅咒之海(危险海域)。 | | Dialogue | 带有任务触发和全局标志效果的分支式地图绘制者对话。 | | Combat | 海军水手(具有攻击性)和溺水守护者(被诅咒的海中生物)。 | | Cognition & perception | 记忆衰减、感知过滤器、诅咒守护者呈现规则。 | | Progression | 3个节点的航海技能树,击败敌人可获得经验值奖励。 | | Environment | 风暴浪潮会消耗士气,水压会造成伤害。 | | Factions | 殖民海军势力,包括总督和水手。 | | Belief provenance | 谣言传播,带有延迟,并跟踪人们的信仰。 | | Inventory | 带有预设物品使用效果,可恢复士气的朗姆酒桶。 | | Simulation inspector | 完整的检查机制,用于回放分析。 |

内容

  • 5个区域:船甲板、生锈的锚(酒馆)、总督堡垒、开阔水域、沉没的神殿。
  • 3个NPC:船员布莱(Quartermaster Bly)、地图绘制者玛拉(Mara the Cartographer,中立)、总督韦恩(Governor Vane,殖民当局)。
  • 2个敌人:海军水手(具有攻击性)、溺水守护者(被诅咒的海中生物)。
  • 1个物品:朗姆酒桶(恢复8点士气)。
  • 1个技能树:航海技能(Sea-Hardened → Ruthless → Dread Captain)。
  • 1个呈现规则:被诅咒的生物将所有访客视为入侵者。
  • 15个模块:移动、状态、战斗、物品、对话、认知、感知、进度、环境、派系、谣言、区域、信仰、观察者呈现、检查器。

使用方法

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

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

// Or import pieces individually:
import { manifest, pirateMinimalRuleset, seamanshipTree } from '@ai-rpg-engine/starter-pirate';

文档


MCP Tool Shop 创建。