1.0.21 • Published 12 months ago

chatbot-ui-core v1.0.21

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

Chatbot UI Core

This package provides type definitions and the interface for Chatbot UI extensions to interact with the Chatbot UI application.

Installation

For Chatbot UI users there is no need to install anything, as it already pre-installed in the main application Chatbot UI.

Developers building their own extension can install this package by using:

npm i chatbot-ui-core@latest

Usage

If you want to build your own database extension you just have to implement the following interface in your package: ./src/database/client-side.ts

If you need a to use serverless functions to access your database (e.g. postgres), then you must also implement the Server-side database interface: ./src/database/server-side.ts

The server-side database implementation mainly uses the paths property to map any API calls made to /api/storage/[endpoint] directly to your package.

Examples

See the implementation of the package chatbot-ui-local-storage to view an example of a client-side-only database extension: https://github.com/jorge-menjivar/chatbot-ui-local-storage

See the implementation of the package chatbot-ui-rdbms to view an example of database extension that needs access to serverless functions: https://github.com/jorge-menjivar/chatbot-ui-rdbms

1.0.21

12 months ago

1.0.20

12 months ago

1.0.19

12 months ago

1.0.18

12 months ago

1.0.17

12 months ago

1.0.16

12 months ago

1.0.15

12 months ago

1.0.14

12 months ago

1.0.13

12 months ago

1.0.12

12 months ago

1.0.11

12 months ago

1.0.10

12 months ago

1.0.9

12 months ago

1.0.8

12 months ago

1.0.7

12 months ago

1.0.6

12 months ago

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago