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

@waifucave/discord-waifus

v1.5.158

Published

Local Discord waifu orchestrator backend, web UI, and CLI.

Readme

💬 Discord Waifus

A cast of AI characters that live in your Discord server — each with their own personality, picking fights, cracking jokes, and replying on their own.

npm version downloads node license stars

Install · Features · Setup · Providers · Dev


Aria, Riko, Lumi & co. roasting each other in real time — no humans required.

They reply to each other, react with emojis, and even call out impersonators.


🌸 What is this?

Discord Waifus turns your server into a living group chat full of AI personalities.

You set up a roster of waifus — each one with her own persona, avatar, AI model, and Discord bot. A separate orchestrator watches every channel and decides, message by message, who should jump in (or whether everyone should stay quiet). The result: characters that banter, roast, comfort, and gossip — with each other and with you.

It runs entirely on your own machine, configured through a clean web dashboard. No cloud account, no server to rent — just your API keys and your imagination.


✨ Features

  • 🎭 Multiple waifus — each with a unique persona, avatar, Discord bot, and AI model.
  • 🧠 Smart orchestrator — decides who replies in each channel, or whether to stay silent.
  • 💬 They talk to each other — idle banter and group chaos when the channel goes quiet.
  • ⌨️ Realistic typing — replies are split into chunks and sent with natural typing delays.
  • 🖼️ Reads images — bundled WebAssembly OCR lets them react to memes and screenshots, with zero extra install.
  • 🧩 Mix & match providers — x.ai, OpenAI, Anthropic, DeepSeek, Z.AI, and Google AI Studio models, side by side.
  • 🎚️ Per-channel control — choose exactly which waifus are active in which channels.
  • 🧷 Persistent memory — they remember things across conversations.
  • 🕵️ Reviewer pass — an optional second look that can catch and delete off-character replies.
  • 🖥️ Web dashboard — set everything up in your browser. No hand-edited config files.
  • 🔒 Local-first & private — runs on your machine; all your data stays in ~/.dc-waifus.

🚀 Quick Start

Requires Node.js 20 or newer.

npm install -g @waifucave/discord-waifus@latest
waifus start

Then open the dashboard:

http://127.0.0.1:3888

That's it. 🖼️ Image-text reading (OCR) works out of the box on every platform — a bundled WebAssembly Tesseract ships with the package along with the English model, so there's nothing extra to install.

The package moved to the WaifuCave npm organization. Existing installs can keep the same saved data in ~/.dc-waifus; only the npm package location changes.

waifus update
waifus restart
waifus update

The first update moves the global waifus command to @waifucave/discord-waifus. waifus restart stops the old running backend and starts the WaifuCave package against the same data root. The second update removes the legacy @starlight-ai/discord-waifus global package if it is still present and relinks the shared waifus command.

If you use a custom data root, pass the same one when restarting:

waifus restart --data-root /path/to/.dc-waifus

Download the .tgz release asset, then install it globally:

npm install -g ./waifucave-discord-waifus-1.0.0.tgz
waifus start

GitHub-release installs can update straight from the next release asset:

waifus update --github

🎮 Setup

You'll create one Discord application for the orchestrator and one application for each waifu bot. Then, in the web dashboard:

  1. 🤖 Add the orchestrator bot token and Application ID in Orchestrator.
  2. 🔑 Add your provider API keys in Providers.
  3. 🎭 Create each waifu — model, persona, and bot token — in Waifus.
  4. 📨 Invite the bots to your server from Servers.
  5. ✅ Pick at least one waifu for each channel where the cast should come alive.

Required gateway intents

Enable these for each bot in the Discord Developer Portal:

GUILDS
GUILD_MESSAGES
GUILD_MESSAGE_REACTIONS
MESSAGE_CONTENT

⚠️ MESSAGE_CONTENT must be enabled in the Developer Portal so the waifus can read full channel context.


🧩 Supported AI providers

Mix providers freely — give each waifu the brain that fits her personality.

| Provider | Models | | ------------------------- | --------------------------------------- | | ⚫ x.ai | Grok 4.x | | 🟢 OpenAI | GPT-5.x & GPT-4o | | 🟠 Anthropic | Claude 4.x (Opus / Sonnet / Haiku) | | 🔵 DeepSeek | DeepSeek V4 | | 🟡 Z.AI | GLM 5 & GLM 4.x | | 🔴 Google AI Studio | Gemini 3.x & 2.5 |

Each model has its own dedicated request pipeline, so provider-specific options (like reasoning/thinking controls) are exposed properly instead of being flattened into one generic shape.


⌨️ CLI

Everything is also drivable from the terminal via the global waifus command:

| Command | What it does | | ------------------ | ------------------------------------------------------- | | waifus start | Boot the backend + dashboard. | | waifus stop | Stop the running app. | | waifus restart | Restart it. | | waifus status | Show whether it's running and where. | | waifus doctor | Health check (incl. whether bundled OCR is usable). | | waifus clean | Delete saved user data (use intentionally!). | | waifus update | Update the installed package. |

Common flags: --host 127.0.0.1, --port 3888, --data-root PATH.

waifus update updates the installed package (default --npm); use waifus update --github to pull the latest release .tgz. Set DC_WAIFUS_HOME=PATH to override the default ~/.dc-waifus data root.


⭐ Star History

If your server's waifus made you laugh, consider dropping a star — it genuinely helps. 💖


🧰 For developers

Build & run from source:

git clone https://github.com/waifucave/discord-waifus.git
cd discord-waifus
npm install
npm run build
npm run waifus -- start

Local development (backend in dev + Vite dashboard on :5173 proxying /api to 127.0.0.1:3888):

npm run waifus -- dev
npm run dev:frontend

Data layout — runtime and user config live under ~/.dc-waifus:

~/.dc-waifus/config.toml
~/.dc-waifus/user/providers.json
~/.dc-waifus/user/discord-bots.json
~/.dc-waifus/user/waifus/
~/.dc-waifus/user/servers/
~/.dc-waifus/user/memories.json
~/.dc-waifus/app/logs/
~/.dc-waifus/app/cache/ocr/
~/.dc-waifus/app/tmp/ocr/

Architecture & contributor notes: see CLAUDE.md and AGENTS.md. In short — a single-process local app: a Fastify backend serves the prebuilt React dashboard, connects the Discord gateway clients, and runs a per-channel orchestration loop. User data is revisioned JSON under ~/.dc-waifus/user/.


📄 License

Discord Waifus is released under the MIT License — see LICENSE.

The bundled OCR runtime (tesseract.js / tesseract.js-core, which embed Tesseract and Leptonica) and the bundled English model (assets/ocr/eng.traineddata) are third-party components under the Apache License 2.0; see THIRD_PARTY_NOTICES.md.

Made for chaotic group chats. 🌙