Skip to main content
Home

latest
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with 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 integration
  • SlackIntegration: Type for the integration object

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@weweb/backend-slack

Import symbol

import * as backend_slack from "@weweb/backend-slack";
or

Import directly with a jsr specifier

import * as backend_slack from "jsr:@weweb/backend-slack";

Add Package

pnpm i jsr:@weweb/backend-slack
or (using pnpm 10.8 or older)
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
or (using Yarn 4.8 or older)
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";