@emulators/slack
v0.4.1
Published
Fully stateful Slack Web API emulation with channels, messages, threads, reactions, OAuth v2, and incoming webhooks.
Readme
@emulators/slack
Fully stateful Slack Web API emulation with channels, messages, threads, reactions, OAuth v2, and incoming webhooks.
Part of emulate — local drop-in replacement services for CI and no-network sandboxes.
Install
npm install @emulators/slackEndpoints
Auth & Chat
POST /api/auth.test— test authenticationPOST /api/chat.postMessage— post message (supports threads viathread_ts)POST /api/chat.update— update messagePOST /api/chat.delete— delete messagePOST /api/chat.meMessage— /me message
Conversations
POST /api/conversations.list— list channels (cursor pagination)POST /api/conversations.info— get channel infoPOST /api/conversations.create— create channelPOST /api/conversations.history— channel historyPOST /api/conversations.replies— thread repliesPOST /api/conversations.join/conversations.leave— join/leavePOST /api/conversations.members— list members
Users & Reactions
POST /api/users.list— list users (cursor pagination)POST /api/users.info— get user infoPOST /api/users.lookupByEmail— lookup by emailPOST /api/reactions.add/reactions.remove/reactions.get— manage reactions
Team, Bots & Webhooks
POST /api/team.info— workspace infoPOST /api/bots.info— bot infoPOST /services/:teamId/:botId/:webhookId— incoming webhook
OAuth
GET /oauth/v2/authorize— authorization (shows user picker)POST /api/oauth.v2.access— token exchange
Auth
All Web API endpoints require Authorization: Bearer <token>. OAuth v2 flow with user picker UI.
Seed Configuration
slack:
team:
name: My Workspace
domain: my-workspace
users:
- name: developer
real_name: Developer
email: [email protected]
channels:
- name: general
topic: General discussion
- name: random
topic: Random stuff
bots:
- name: my-bot
oauth_apps:
- client_id: "12345.67890"
client_secret: example_client_secret
name: My Slack App
redirect_uris:
- http://localhost:3000/api/auth/callback/slack