Skip to content
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
jollyroger182Public archive

About

A fully-typed, opinionated Slack API library

Resources

Stars

16 stars

Watchers

0 watching

Forks

Repository files navigation

slack.ts

An opinionated Slack API library with full TypeScript support.

NOTE: This library is still in active development! Any version update (even patch, sorry) may introduce breaking changes! Use at your own risk!

Usage

You can install this package from npm with

npm i slack.ts
# or
bun add slack.ts

Sample usage:

import { App } from 'slack.ts'

const app = new App({
  token: process.env.SLACK_BOT_TOKEN,
  receiver: { type: 'socket', appToken: process.env.SLACK_APP_TOKEN! },
})

app.on('message', async (message) => {
  if (message.user === process.env.SLACK_USER_ID) return
  await message.reply("I'm always listening :eyes:")
})

await app.start()

For more examples, see the examples directory and the (in)complete guide.

AI declaration

Claude Code helped with inline documentation in a few files, as well as the HTTP and fetch receivers.

About

A fully-typed, opinionated Slack API library

Resources

Stars

16 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages