npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

nodebb-plugin-slack-bidirectional

v1.0.0

Published

Bidirectional Slack-NodeBB integration via AWS Lambda with multi-tenant support

Readme

NodeBB Slack Bidirectional Sync Plugin

npm version

Bidirectional synchronization between NodeBB and Slack via AWS Lambda with multi-tenant support.

Features

  • Bidirectional Sync: Topics and replies sync in both directions
  • Thread Preservation: Slack threads map to NodeBB topic replies and vice versa
  • Author Attribution: Messages show the original author's name and avatar
  • Loop Prevention: Automatic detection prevents infinite ping-pong
  • Multi-Tenant Support: Each NodeBB instance only sees its own channel mappings
  • Centralized Mapping: DynamoDB stores all message mappings for consistency

Architecture

NodeBB Topic/Reply
       ↓
  [This Plugin]
       ↓
  AWS API Gateway (/nodebb/events)
       ↓
  AWS EventBridge
       ↓
  Lambda Processor
       ↓
  Slack API (post message)
       ↓
  DynamoDB (store mapping)
Slack Message
       ↓
  AWS API Gateway (/slack/events)
       ↓
  AWS EventBridge
       ↓
  Lambda Processor
       ↓
  NodeBB API (create topic/reply)
       ↓
  DynamoDB (store mapping)

Installation

Via npm (Recommended)

cd /path/to/nodebb
npm install nodebb-plugin-slack-bidirectional
./nodebb build && ./nodebb restart

Via Git

cd /path/to/nodebb/node_modules
git clone https://github.com/OneGuidePortal/nodebb-plugin-slack-bidirectional.git
cd ..
./nodebb build && ./nodebb restart

Activate the Plugin

  1. Go to NodeBB Admin → Extend → Plugins
  2. Find "Slack Bidirectional Sync" and activate it
  3. Restart NodeBB

Configuration

  1. Go to Admin → Plugins → Slack Bidirectional Sync

  2. Configure:

    • AWS Webhook URL: Your API Gateway endpoint (e.g., https://xxx.execute-api.region.amazonaws.com/dev/nodebb/events)
    • AWS API Key: Optional API key if your endpoint requires it
  3. Click "Test Connection" to verify AWS connectivity

  4. Add channel mappings to link Slack channels to NodeBB categories

Multi-Tenant Support

This plugin supports multiple NodeBB instances sharing the same AWS infrastructure. Each NodeBB instance:

  • Automatically derives its site URL from the configured url setting
  • Only sees channel mappings created for its specific site
  • Stores new mappings with its site URL for proper isolation

The site URL is derived from NodeBB's configuration (e.g., https://nodebb.example.com/sitename/api).

Loop Prevention

The plugin adds a hidden marker [slack-sync] to content created from Slack. When NodeBB fires a hook for this content, the plugin detects the marker and skips sending it back to Slack.

Required Slack Scopes

The Slack app (configured in AWS) needs these scopes:

  • chat:write - Post messages
  • channels:read - Read channel info
  • channels:join - Join channels
  • users:read - Read user info
  • users:read.email - Read user emails (for user matching)

AWS Infrastructure

This plugin works with the OneGuide Notifications AWS stack which includes:

  • API Gateway endpoints
  • EventBridge for event routing
  • Lambda functions for processing
  • DynamoDB for mapping storage
  • SQS Dead Letter Queue

See the packages/notifications directory in the main repo for infrastructure details.

Updating

To update to the latest version:

cd /path/to/nodebb
npm update nodebb-plugin-slack-bidirectional
./nodebb build && ./nodebb restart

Changelog

v1.0.0

  • Initial release
  • Bidirectional sync between Slack and NodeBB
  • Thread preservation
  • Author attribution
  • Multi-tenant support for channel mappings
  • Each NodeBB instance only sees its own mappings

License

MIT