🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@useatlas/chat

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@useatlas/chat

Atlas Chat SDK bridge plugin — unified interaction layer for Slack, Teams, Discord, and more

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
2
-50%
Maintainers
1
Weekly downloads
 
Created
Source

@useatlas/chat

Unified chat interaction plugin bridging Chat SDK (vercel/chat) into the Atlas plugin system. Instead of maintaining separate per-platform plugins, this single plugin provides a bridge for Chat SDK adapters. Currently ships with Slack support; additional platforms (Teams, Discord, etc.) will be added in follow-up issues (#759–#766).

Install

bun add @useatlas/chat

Usage

import { defineConfig } from "@atlas/api/lib/config";
import { chatPlugin } from "@useatlas/chat";

export default defineConfig({
  plugins: [
    chatPlugin({
      adapters: {
        slack: {
          botToken: process.env.SLACK_BOT_TOKEN!,
          signingSecret: process.env.SLACK_SIGNING_SECRET!,
        },
      },
      executeQuery: myQueryFunction,
    }),
  ],
});

Config

FieldTypeDefaultDescription
adapters.slackobject?Slack adapter credentials (botToken, signingSecret)
executeQueryfunctionCallback to run the Atlas agent on a question
checkRateLimitfunction?Optional rate limiting callback
scrubErrorfunction?Optional error scrubbing callback

At least one adapter must be configured.

How It Works

The plugin bridges Chat SDK events to Atlas:

  • onNewMention — User @-mentions the bot → subscribes to thread → runs executeQuery → posts result as markdown
  • onSubscribedMessage — Follow-up messages in subscribed threads → runs executeQuery with conversation history → posts result

Webhook routes are mounted at /webhooks/slack (under the plugin route prefix). The Chat SDK handles platform-specific details: signature verification, event parsing, and message formatting.

Error Scrubbing

All error messages are scrubbed before sending to chat platforms. Built-in patterns redact:

  • Connection strings (postgres://, mysql://, etc.)
  • Stack traces and file paths
  • API keys and tokens (Slack, GitHub, Bearer)

Provide a custom scrubError callback for additional scrubbing.

Architecture

This is the foundation plugin for the Chat SDK adoption (#757). Downstream issues add:

  • State adapter integration with Atlas internal DB (#772)
  • Platform migrations: Slack (#759), Teams (#760)
  • New platforms: Discord (#761), Google Chat (#762), Telegram (#763), and more

Reference

Keywords

atlas

FAQs

Package last updated on 23 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts