AI Skill Hub 强烈推荐:叙事引擎 是一款优质的AI工具。AI 综合评分 8.0 分,在同类工具中表现稳健。如果你正在寻找可靠的AI工具解决方案,这是一个值得深入了解的选择。
叙事引擎 是一款基于 TypeScript 开发的开源工具,专注于 AI、TTRPG、自托管 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
叙事引擎 是一款基于 TypeScript 开发的开源工具,专注于 AI、TTRPG、自托管 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:npm 全局安装 npm install -g narrativeengine-p # 方式二:npx 直接运行(无需安装) npx narrativeengine-p --help # 方式三:项目依赖安装 npm install narrativeengine-p # 方式四:从源码运行 git clone https://github.com/Sagesheep/NarrativeEngine-P cd NarrativeEngine-P npm install npm start
# 命令行使用
narrativeengine-p --help
# 基本用法
narrativeengine-p [options] <input>
# Node.js 代码中使用
const narrativeengine_p = require('narrativeengine-p');
const result = await narrativeengine_p.run(options);
console.log(result);
# narrativeengine-p 配置说明 # 查看配置选项 narrativeengine-p --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export NARRATIVEENGINE_P_CONFIG="/path/to/config.yml"
Your AI Dungeon Master. A self-hosted TTRPG engine that runs extended, multi-session campaigns with persistent memory, living NPCs, and automated world management — powered by any OpenAI-compatible LLM or local Ollama model.
No cloud. No subscription. Your campaigns stay on your machine.
📱 Android client available: NarrativeEngine-M
---
1. Clone the repo
git clone https://github.com/Sagesheep/NarrativeEngine-P.git
cd NarrativeEngine-P
Windows — double-click Start_Narrative_Engine.bat
Linux / macOS — run start.sh
Or manually:
npm install
npm run dev
http://localhost:5173That's it. Create a campaign, write your world lore, and start playing.
---
## / ### headers. Each section becomes a lore chunk the GM can recall. Use [CHUNK: TYPE -- NAME] prefixes to classify entries (world_overview, faction, location, character, power_system, economy, event, rules, culture, misc)---
A structured pre-game world editor:
Spirit_Card_World_Lore.md)AI_GM_OS_v3_4_App_Optimized.md) into the System Prompt fieldThe Example_Setup/ folder contains ready-to-play campaigns across multiple genres — including a gritty survival fantasy (Spirit Card World), a Naruto-inspired setting, and more. Each comes with a world bible, a GM ruleset, and an opening prompt.
| Action | Command |
|---|---|
| Install & run (Windows) | Double-click Start_Narrative_Engine.bat |
| Install & run (Linux) | Run start.sh |
| Install manually | npm install |
| Start the app | npm run dev |
| Run tests | npm run test |
| Lint | npm run lint |
---
高质量AI工具,支持自托管和智能记忆
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,叙事引擎 是一款质量优秀的AI工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | NarrativeEngine-P |
| 原始描述 | 开源AI工具:Self-hosted AI Dungeon Master - run extended TTRPG campaigns with smart memory, 。⭐17 · TypeScript |
| Topics | AITTRPG自托管 |
| GitHub | https://github.com/Sagesheep/NarrativeEngine-P |
| License | MIT |
| 语言 | TypeScript |
收录时间:2026-05-25 · 更新时间:2026-05-30 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。