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

@retinue/tools-discord

v0.3.0

Published

Discord tools for a Retinue agent: read channels and history, send messages, react and open threads — gated and idempotent.

Downloads

23

Readme

@retinue/tools-discord

Discord tools for a Retinue agent: read channels and history, send messages, react and open threads.

npm i @retinue/tools-discord

Requires @retinue/agentkit as a peer.

Use it

import { createStaticCredentialResolver } from "@retinue/agentkit/tools";
import { createDiscordToolkit } from "@retinue/tools-discord";

const toolkit = createDiscordToolkit({
  credentialRef: "discord",
  // `Bot <token>` — the word `Bot` is part of the value, and omitting it fails with a bare 401.
  resolver: createStaticCredentialResolver({
    discord: { scheme: "custom-header", header: "Authorization", value: `Bot ${process.env.DISCORD_BOT_TOKEN}` },
  }),
});

Tools

Three reads — discord_list_channels, discord_read_messages, discord_get_message — three gated writes — discord_send_message, discord_reply_message, discord_create_thread — and discord_add_reaction, which is internal-write and ungated, the same as Slack's reaction.

Worth knowing

An uninvited bot fails like a bad token. Discord answers 50001 Missing Access for a bot that is not in the server and a bare 401 for a bad token — both 401/403 shaped. This package tells them apart and names different remedies, because conflating them sends you off to regenerate a token that was fine.

It cannot @everyone by accident. Discord's default honours every mention in a message's content, so an agent relaying a user's text is one character away from a mass ping. Sends go out with mentions disabled.

Messages are counted in code points, so 2000 emoji is a valid message.

Full documentation: https://docs.retinue.riseexperts.de/integrations/discord

MIT.