@stacksjs/chat
TypeScript icon, indicating that this package has built-in type declarations

0.61.20 • Public • Published

Stacks Chat

Stacks Chat is driver system for sending messages through chat apps.

☘️ Features

  • 📦 Send Chats

🤖 Usage

bun install -d @stacksjs/chat

You may now use it in your project:

import * as chat from '@stacksjs/chat'

/* Then choose a driver. E.g for Slack */
const notification = chat.slack

notification.send(ChatOptions)

interface ChatOptions {
  webhookUrl: string
  content: string
}

Drivers

Drivers are configured with the following environment variables:

Discord

  • None

Slack

SLACK_APPLICATION_ID=SAID123
SLACK_CLIENT_ID=SCID123
SLACK_SECRET_KEY=SSK123

🧪 Testing

bun test

📈 Changelog

Please see our releases page for more information on what has changed recently.

🚜 Contributing

Please review the Contributing Guide for details.

🏝 Community

For help, discussion about best practices, or any other conversation that would benefit from being searchable:

Discussions on GitHub

For casual chit-chat with others using this package:

Join the Stacks Discord Server

🙏🏼 Credits

Many thanks to the following core technologies & people who have contributed to this package:

📄 License

The MIT License (MIT). Please see LICENSE for more information.

Made with 💙

Package Sidebar

Install

npm i @stacksjs/chat

Weekly Downloads

290

Version

0.61.20

License

MIT

Unpacked Size

5.44 kB

Total Files

7

Last publish

Collaborators

  • chrisbreuer