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

@mimicai/adapter-slack

v0.13.0

Published

Slack Web API mock adapter for Mimic. 27 curated methods covering channels, messages, threads, users, reactions, pins, files, and search — all backed by an in-memory state store.

Readme

@mimicai/adapter-slack

Slack Web API mock adapter for Mimic. 27 curated methods covering channels, messages, threads, users, reactions, pins, files, and search — all backed by an in-memory state store.

Targeted at AI agents that need to read internal communication context (e.g. the Briefing Agent's #deals mentions, channel sentiment, thread state) during testing without touching a real workspace.

Install

npm install @mimicai/adapter-slack

What it covers

| Surface | Methods | |---------|---------| | Auth & team | auth.test, team.info | | Users | users.list, users.info, users.lookupByEmail, users.profile.get | | Conversations | conversations.list, conversations.history, conversations.replies, conversations.info, conversations.members, conversations.create, conversations.open | | Chat | chat.postMessage, chat.postEphemeral, chat.update, chat.delete | | Reactions | reactions.add, reactions.remove, reactions.get, reactions.list | | Pins | pins.list, pins.add, pins.remove | | Files | files.list, files.info | | Search | search.messages |

The Slack admin/enterprise surface (admin., apps., workflows., calls., sockets, OAuth flow, view modals) is intentionally out of scope. Methods Slack documents but doesn't include in its OpenAPI spec — bookmarks and search.files — are noted in the codegen as known gaps.

Slack idioms the adapter implements

  • { ok: true|false } envelope — every response is wrapped via a Fastify preSerialization hook. Handlers return the inner payload; the wrapper adds ok and an error code on failure.
  • Cursor paginationnext_cursor in response_metadata, opaque c_<id> token, empty string sentinel for last page.
  • Form-encoded bodies@fastify/formbody is registered conditionally (test helpers already register it).
  • Thread semantics — top-level message ts equals its thread_ts when it has replies; conversations.replies returns parent + chronological replies; conversations.history returns only top-level messages.
  • Bot identity bootstrapseedDefaultFixtures creates a default workspace + bot user so auth.test succeeds without persona data.

Auth

Real Slack uses OAuth bot tokens (xoxb-…) and user tokens (xoxp-…). For mock usage, Bearer xoxb-<personaId>-… (or xoxp-) resolves to that persona id.

MCP tools (10)

get_slack_team_info, lookup_slack_user_by_email, list_slack_users, list_slack_channels, get_slack_conversation_history, get_slack_thread_replies, search_slack_messages, post_slack_message, add_slack_reaction, list_slack_pins.

lookup_slack_user_by_email is the high-value tool for the Briefing Agent — given a meeting attendee's email, find the matching workspace user.

Running

Standalone MCP server (stdio):

npx -y @mimicai/adapter-slack mcp

Or via mimic host:

{
  "apis": {
    "slack": { "enabled": true, "mcp": true }
  }
}

Regenerating from spec

curl -fsSL https://raw.githubusercontent.com/slackapi/slack-api-specs/master/web-api/slack_web_openapi_v2.json \
  -o packages/adapters/adapter-slack/slack-spec.json
pnpm --filter @mimicai/adapter-slack generate

The codegen (scripts/slack-codegen.ts) walks Slack's Swagger 2.0 spec, filters by an INCLUDE_PATHS whitelist, and emits routes/resource-specs/schemas with hand-tuned factory bodies preserved across regeneration.

License

Apache 2.0