A mock server that mimics Slack API's chat.postMessage. A development support tool that saves messages and allows preview in Block Kit Builder.
npm install slack-local-serverservices:
slack-local-server:
image: yasu1003/slack-local-server:latest
ports:
- "54330:54330"
volumes:
- ./data:/app/datanpx slack-local-serverThe server will start on http://localhost:54330
import { WebClient } from "@slack/web-api";
const web = new WebClient(token, {
slackApiUrl: "http://localhost:54330/api/",
});Open your browser and go to:
http://localhost:54330
You can:
- View all sent messages
- Preview messages in Block Kit Builder format
- Delete individual messages or clear all messages
- Node.js 14.0.0 or higher
- npm 6.0.0 or higher