Skip to content

About

💬 A Local Mock Server for Slack Messaging API

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

27 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack Local Server

A mock server that mimics Slack API's chat.postMessage. A development support tool that saves messages and allows preview in Block Kit Builder.

スクリーンショット 2025-06-15 23 20 59

📦 Installation

npm install slack-local-server

Using with docker-compose

services:
  slack-local-server:
    image: yasu1003/slack-local-server:latest
    ports:
      - "54330:54330"
    volumes:
      - ./data:/app/data

🚀 Usage

Starting the server

npx slack-local-server

The server will start on http://localhost:54330

Using with @slack/web-api

import { WebClient } from "@slack/web-api";

const web = new WebClient(token, {
  slackApiUrl: "http://localhost:54330/api/",
});

Viewing messages

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

📋 Requirements

  • Node.js 14.0.0 or higher
  • npm 6.0.0 or higher

About

💬 A Local Mock Server for Slack Messaging API

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages