@weweb/backend-slack@0.1.34
latest
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




JSR Score
82%
Published
2 months ago (0.1.34)
WeWeb Slack Integration for Deno
A Deno-compatible wrapper around the @weweb/backend-slack package, published to the JSR registry.
Installation
import Slack from 'jsr:@weweb/backend-slack';
or
import { createSlackIntegration } from 'jsr:@weweb/backend-slack';
Usage
import { serve } from '@weweb/backend-core'; import Slack from '@weweb/backend-slack'; // Define your backend configuration const config = { workflows: [/* ... */], integrations: [Slack], production: false }; // Start the server serve(config);
Customization
You can create a custom Slack integration with specific configuration:
import { createSlackIntegration } from '@weweb/backend-slack'; const customSlack = createSlackIntegration({ botToken: 'xoxb-your-bot-token', userToken: 'xoxp-your-user-token', logLevel: 'info' });
Features
This package provides all the Slack integration features:
- Sending messages to channels and users
- Creating and managing channels
- Inviting users to channels
- Managing reactions
- Uploading files
- Searching messages
- Reading channel message history
- Reading thread replies
- Getting user and workspace information
API
Slack
: Default pre-configured Slack integration (uses environment variables)createSlackIntegration(options)
: Function to create a custom Slack integrationSlackIntegration
: Type for the integration object
Add Package
deno add jsr:@weweb/backend-slack
Import symbol
import * as backend_slack from "@weweb/backend-slack";
Import directly with a jsr specifier
import * as backend_slack from "jsr:@weweb/backend-slack";
Add Package
pnpm i jsr:@weweb/backend-slack
pnpm dlx jsr add @weweb/backend-slack
Import symbol
import * as backend_slack from "@weweb/backend-slack";
Add Package
yarn add jsr:@weweb/backend-slack
yarn dlx jsr add @weweb/backend-slack
Import symbol
import * as backend_slack from "@weweb/backend-slack";
Add Package
vlt install jsr:@weweb/backend-slack
Import symbol
import * as backend_slack from "@weweb/backend-slack";
Add Package
npx jsr add @weweb/backend-slack
Import symbol
import * as backend_slack from "@weweb/backend-slack";
Add Package
bunx jsr add @weweb/backend-slack
Import symbol
import * as backend_slack from "@weweb/backend-slack";