This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@chatbot-ui/core
TypeScript icon, indicating that this package has built-in type declarations

1.0.12 • Public • Published

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

/@chatbot-ui/core/

    Package Sidebar

    Install

    npm i @chatbot-ui/core

    Weekly Downloads

    6

    Version

    1.0.12

    License

    MIT

    Unpacked Size

    17.3 kB

    Total Files

    40

    Last publish

    Collaborators

    • jmen900