1.0.12 • Published 11 months ago

@chatbot-ui/core v1.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
11 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 database 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 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.9

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.11

11 months ago

1.0.10

11 months ago

1.0.12

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 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