This is an external open-source GitHub repository imported into the WOCSOL Marketplace for discovery. The original repository owner is the primary creator.
GoogleBard - A reverse engineered API for Google Bard chatbot for NodeJS
GoogleBard - A reverse engineered API for Google Bard chatbot for NodeJS
GoogleBard An NPM module for creating GoogleBard chatbot using Bard's reverse-engineered API. With reverse-engineered API functionalities, it empowers developers to harness the full potential of Bard. ## Table Of Contents - [Features](#features) - [Prerequisites](#prerequisite---how-to-get-cookies) - [Installation](#installation) - [Documentation](#documentation) - [Examples](#examples) ## Features - **Simulating Response Streaming**: The package simulates response streaming, allowing you to get the response as soon as it is available. - **Multiple Conversations**: The package supports multiple conversations, allowing you to have multiple parallel conversations with the chatbot. - **Proxy Support**: The package supports proxies, allowing you to use the chatbot from any location. - **Lightweight**: The package is very lightweight, making it easy to use and integrate into your projects. ## Prerequisite - How to get cookies?* 1. Install [Cookie-Editor](https://cookie-editor.cgagnier.ca/) extension. 2. Go to https://bard.google.com and login. 3. Click on the extension icon and copy a cookie starting with `__Secure-{account_number}PSID`. - For example, `__Secure-1PSID` - Ensure you are copying the correct cookie corresponding to the account number, which can be found in the URL as `bard.google.com/u/{account_number}`. - If your account number is `/u/2`, search for the cookie named `__Secure-2PSID`. - If your account number is `/u/3`, search for the cookie named `__Secure-3PSID`. 4. Paste the cookie in your code. ## Installation To install the package, run the following command: ```bash npm install googlebard ``` ## Documentation ### 1. How To Initialise The Bot? ```js import { Bard } from "googlebard"; let cookies =
Ask questions or discuss this product. New comments are reviewed before publishing.
Loading comments...