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

@tailored-ai/channel-slack

v0.1.9

Published

Slack channel for Tailored AI agents. Importing the package registers Slack as a channel factory; the runtime starts it when channels.slack.enabled is true.

Readme

@tailored-ai/channel-slack

Slack channel for Tailored AI. Ships as a register(ctx) plugin (#47) — the host invokes the package's default export with a PluginContext during runtime construction; the plugin registers a channel factory the runtime starts automatically when channels.slack.enabled: true is set in config.yaml.

Designed as a reference implementation of the channel registry (#81) — small enough to read in one sitting (~250 lines) but functional enough to be useful day-to-day. The deeper Discord channel in @tailored-ai/core is the feature-complete version; treat this as the canonical example for anyone authoring a third-party channel.

Install

tai plugin install @tailored-ai/channel-slack

Then in config.yaml:

plugins:
  - "@tailored-ai/channel-slack"

channels:
  slack:
    enabled: true
    token: ${SLACK_BOT_TOKEN}      # xoxb-... bot user OAuth token
    appToken: ${SLACK_APP_TOKEN}   # xapp-... app-level token with connections:write
    respondToDMs: true
    respondToMentions: true
    # Optional — restrict to specific workspaces
    # allowedTeams:
    #   - T01234567
    # Optional — bind specific channels / DMs to projects
    # projectMappings:
    #   - channel: C01234567
    #     project: my-project
    #   - dm: true
    #     project: personal-notes

Slack app setup

This MVP uses Socket Mode, which means no public webhook is required.

  1. Create a Slack app at https://api.slack.com/apps.
  2. Under Socket Mode, enable it and generate an app-level token with connections:write — this is your SLACK_APP_TOKEN.
  3. Under OAuth & Permissions, install the app to a workspace. Add these bot scopes:
    • app_mentions:read
    • channels:history, groups:history, im:history, mpim:history
    • chat:write
    • im:write
    • users:read
  4. Copy the Bot User OAuth Token — this is your SLACK_BOT_TOKEN.
  5. Under Event Subscriptions, enable events and subscribe to bot events: message.channels, message.groups, message.im, message.mpim, app_mention.

Behavior

  • Direct messages route to the agent loop directly. The bot's reply is posted in-channel (the DM).
  • Channel messages trigger a response only when the bot is @-mentioned. The reply is threaded under the original message.
  • The bot mention is stripped from the prompt before the agent sees it.
  • Concurrent messages from the same user (per project) are queued — the bot replies "I'm still working on your previous message" until the first finishes.
  • Long responses (> 3000 chars) are split on newline / space / hard boundaries.

What this MVP skips

Deliberately out of scope so the file stays readable:

  • Slash commands (/new, /agent, /context, /tasks, config-driven commands) — see Discord's syncCommands for the reference shape.
  • The built-in /context + /tasks handlers — those would copy ~200 lines from Discord without learning value.
  • Multi-user per-agent state — the agent selection is global / config-driven.

Contributions for any of these are welcome.

License

MIT