DocsGPT/extensions/react-widget
2024-02-28 19:31:36 +05:30
..
src inline responsive module styles 2024-02-28 19:31:36 +05:30
.eslintrc.cjs inititated shadcn 2024-02-19 04:14:09 +05:30
.gitignore purge out dist, update gitignore 2024-02-27 15:51:05 +05:30
.npmignore inline responsive module styles 2024-02-28 19:31:36 +05:30
components.json inititated shadcn 2024-02-19 04:14:09 +05:30
index.html inititated shadcn 2024-02-19 04:14:09 +05:30
index.ts react-widget 2023-09-12 14:01:12 +01:00
package-lock.json inline responsive module styles 2024-02-28 19:31:36 +05:30
package.json inline responsive module styles 2024-02-28 19:31:36 +05:30
postcss.config.js inititated shadcn 2024-02-19 04:14:09 +05:30
README.md docs: fix grammar issues 2023-11-01 01:04:40 +05:30
tailwind.config.js UI enhancement, scroll fix 2024-02-26 20:10:00 +05:30
tsconfig.json preparing for npm publish 2024-02-27 21:31:08 +05:30
tsconfig.node.json inititated shadcn 2024-02-19 04:14:09 +05:30
vite.config.ts preparing for npm publish 2024-02-27 21:31:08 +05:30

DocsGPT react widget

This widget will allow you to embed a DocsGPT assistant in your React app.

Installation

npm install  docsgpt

Usage

    import { DocsGPTWidget } from "docsgpt";
    import "docsgpt/dist/style.css";

    const App = () => {
      return <DocsGPTWidget />;
    };

To link the widget to your api and your documents you can pass parameters to the component.

    import { DocsGPTWidget } from "docsgpt";
    import "docsgpt/dist/style.css";

    const App = () => {
      return <DocsGPTWidget apiHost="http://localhost:7001" selectDocs='default' apiKey=''/>;
    };

Our github

DocsGPT

You can find the source code in the extensions/react-widget folder.