@chatally/core

0.0.11 • Public • Published

@chatally/core

ChatAlly Core contains the application components and types for creating a chatbot application. It resembles the structure of an Express web server, but for chat applications.

The whole framework is very modular and extendible. It provides some middleware and servers (which are used to communicate with chat clients like WhatsApp or Signal), that you can use to create your individual chat application.

See all ChatAlly packages.

Help the community and publish your own ChatAlly modules with the tag chatally.

Usage

Install the package and for testing a console chat server

npm install @chatally/core @chatally/console

Use the application

// index.js
import { Application } from '@chatally/core'
import { ConsoleServer } from '@chatally/console'

new Application({ log: false }) //
  .use(new ConsoleServer())
  .use(({ req, res }) => {
    if (res.isWritable) {
      res.write(`You said '${req.text}'`)
    }
  })
  .listen()

Documentation

Find the full documentation at https://chatally.org/guides.

Package Sidebar

Install

npm i @chatally/core

Weekly Downloads

5

Version

0.0.11

License

MIT

Unpacked Size

35.3 kB

Total Files

21

Last publish

Collaborators

  • shackhacker-christian