0.0.11 • Published 10 months ago

@chatally/core v0.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@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.

0.0.10

11 months ago

0.0.11

10 months ago

0.0.9

12 months ago

0.0.8

12 months ago

0.0.5

1 year ago

0.0.7

12 months ago

0.0.6

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago