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

openclaw-tavern-chat

v2026.2.23

Published

Manage character cards, worldbooks, and regex rules through chat commands and API. 通过聊天命令和 API 管理角色卡、世界书与正则规则。

Downloads

21

Readme

openclaw-tavern-chat

An OpenClaw plugin for:

  • character cards
  • worldbooks
  • regex post-processing rules
  • Tavern-style MiniMax read-aloud TTS

Install

openclaw plugins install openclaw-tavern-chat

Update

openclaw plugins update openclaw-tavern-chat

After updating plugin code/config, restart the gateway.


Features

  • Character cards
    • Import .png / .json cards
    • /character list|show|set|clear
    • Prompt mode: full / minimal via /character mode ...
    • Placeholder replacement ({{char}}, {{user}}, etc.)
  • Worldbooks
    • /worldbook list|show|set|clear
    • Keyword matching + sticky entries
    • Supports embedded character_book inside character cards
  • Regex rules
    • /regex list|add|remove|enable|disable|clear
  • Attachment auto-import
    • PNG: auto-detect Tavern card payload
    • JSON: auto-detect worldbook/regex
    • Duplicate character-card imports are skipped by content hash
  • MiniMax TTS read-aloud
    • /tavern-tts on|off|status
    • /minimax-tts <text> for direct test synthesis

Commands

Character

| Command | Description | |---|---| | /character list | List cards | | /character show [filename\|name] | Show current/specific card | | /character set <filename\|name> | Set active card | | /character clear | Clear active card | | /character mode <full\|minimal> | Set injection mode |

Natural phrases are also supported (examples):

  • 角色卡列表
  • 切换角色卡 <名称>
  • 角色卡精简模式 / 只要人设 / 不要开场白

Worldbook

| Command | Description | |---|---| | /worldbook list | List worldbooks | | /worldbook show | Show active worldbook | | /worldbook set <filename> | Set active worldbook | | /worldbook clear | Clear active worldbook |

Regex

| Command | Description | |---|---| | /regex list | List rules | | /regex add <pattern> => <replacement> | Add rule | | /regex remove <index\|name> | Remove rule | | /regex enable <index\|name> | Enable rule | | /regex disable <index\|name> | Disable rule | | /regex clear | Clear all rules |

Tavern MiniMax TTS

| Command | Description | |---|---| | /tavern-tts on | Enable Tavern read-aloud for current session | | /tavern-tts off | Disable Tavern read-aloud for current session | | /tavern-tts status | Show current Tavern read-aloud status | | /minimax-tts <text> | Synthesize and send test audio |


Character Prompt Modes

/character mode <full|minimal>

  • full (default): includes all major card fields (including scenario, first_message, example_dialogue)
  • minimal: excludes opening/scenario-style fields and keeps core persona fields

MiniMax TTS Configuration

Add under plugins.entries.openclaw-tavern-chat.config in openclaw.json:

{
  "plugins": {
    "entries": {
      "openclaw-tavern-chat": {
        "enabled": true,
        "config": {
          "minimaxTts": {
            "enabled": true,
            "apiToken": "your-minimax-api-token",
            "voiceId": "female-shaonv-jingpin",
            "speed": 1,
            "volume": 1,
            "pitch": 0,
            "sendAsVoice": false
          }
        }
      }
    }
  }
}

You can also set:

  • MINIMAX_API_TOKEN (preferred)
  • MINIMAX_API_KEY

Options

| Option | Default | |---|---| | enabled | true | | apiToken | none | | baseUrl | https://api.minimaxi.com/v1/t2a_v2 | | model | speech-2.8-hd | | voiceId | female-shaonv-jingpin | | speed | 1 | | volume | 1 | | pitch | 0 | | sampleRate | 32000 | | format | mp3 | | sendAsVoice | true |

Tip: if Discord voice-bubble mode is unstable in your environment, set sendAsVoice: false to send normal audio files.


Storage

Managed files are stored under your OpenClaw state dir:

~/.openclaw/
├── characters/          # character cards (.png/.json)
├── worldbooks/          # worldbooks (.json)
└── regex-rules.json     # regex rules

中文说明(简版)

  • 用于管理角色卡、世界书、正则规则,并支持 MiniMax 语音朗读。
  • 角色卡支持 full/minimal 注入模式:
    • full:完整注入
    • minimal:不注入开场白/场景/示例对话类字段
  • 常用命令:
    • /character ...
    • /worldbook ...
    • /regex ...
    • /tavern-tts on|off|status
    • /minimax-tts 文本
  • 改完配置后请重启 gateway 生效。

License

MIT