{"id":13901305,"url":"https://github.com/PawanOsman/GoogleBard","last_synced_at":"2025-07-17T21:32:51.550Z","repository":{"id":145724306,"uuid":"617413261","full_name":"PawanOsman/GoogleBard","owner":"PawanOsman","description":"GoogleBard - A reverse engineered API for Google Bard chatbot for NodeJS","archived":false,"fork":false,"pushed_at":"2024-01-11T06:38:45.000Z","size":80,"stargazers_count":419,"open_issues_count":14,"forks_count":58,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-07-09T06:08:43.150Z","etag":null,"topics":["ai","api","assistant","assistant-chat-bots","chatgpt","google","google-bard","prompt","reverse-engineering","scraping"],"latest_commit_sha":null,"homepage":"https://bard.google.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PawanOsman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-03-22T10:44:56.000Z","updated_at":"2025-07-06T18:05:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"ffc1518d-849e-40a6-a41e-8a5c7a33fdd4","html_url":"https://github.com/PawanOsman/GoogleBard","commit_stats":{"total_commits":25,"total_committers":6,"mean_commits":4.166666666666667,"dds":0.28,"last_synced_commit":"e6db20ac05b693e65370b14b24bce2d0c13a0e7d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PawanOsman/GoogleBard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PawanOsman%2FGoogleBard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PawanOsman%2FGoogleBard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PawanOsman%2FGoogleBard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PawanOsman%2FGoogleBard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PawanOsman","download_url":"https://codeload.github.com/PawanOsman/GoogleBard/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PawanOsman%2FGoogleBard/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265663011,"owners_count":23807465,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","api","assistant","assistant-chat-bots","chatgpt","google","google-bard","prompt","reverse-engineering","scraping"],"created_at":"2024-08-06T21:01:10.163Z","updated_at":"2025-07-17T21:32:51.187Z","avatar_url":"https://github.com/PawanOsman.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003ch1 align='center'\u003eGoogleBard \u003cimg width=\"50\" src=\"https://www.gstatic.com/lamda/images/sparkle_resting_v2_darkmode_2bdb7df2724e450073ede.gif\" /\u003e\u003c/h1\u003e \n\u003cp align='center'\u003eAn 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.\u003c/p\u003e\n\n\u003cbr\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/googlebard\" style=\"text-decoration: none\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/googlebard.svg?label=NPM\u0026logo=npm\u0026color=CB3837\" alt=\"npm version\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/googlebard\" alt=\"NPM downloads\" style=\"text-decoration: none\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dm/googlebard?label=Downloads\u0026color=CB3837\u0026logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAsQAAALEBxi1JjQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAKoSURBVEiJ7ZZLTBNRFIb%2FedDS6UNKVQgZAkJTlJdACoZgGhKj0QSNwUVxIbrRhSaasCJh58atcaExkYXogoRISF2UxJVReYkWK6gTB9KK1bZjBQlMNcz0ujAlJe3QamSl%2F%2B7m3PP995w592aAbRaVy6bqanujycZeSa4TKlGXo2qvKIpStlw2FwOdjnG5zvFnS%2BuMAIDJoci3icHoLQB%2FxwAATDYWBSX5AADOwiZyzaNz3fin%2Bm%2FwDxhojSlTW19xgaXz9ACgqIpr05WkQOWb6dMNDVUHAUBJrP%2BY9S%2FcBpA2vpo3udHpeNx0sqiNrzExFEVQWm8Gq%2FtVsLysIPxeBgB8nFtVfZ7o2MspwZWJo9kiKSwf9Xujs9YSHfY4d2zAAYArYFHRbEEhr4ffK71VgsvHtDiMVmBlZUXRMeaRRd9qZ%2B0RmzXVAAASCsHA5XcLkWC8XQiFlrQ4W37kQCAQlhbXOwd7hVBCIZvg%2FlFpms6nnYFAILwVQ7OCpGKxWMRssIhRUT60r73QCACeawuSbyTWN%2FXkzYts%2BRtTVNfc9ojhOCtREsxaJHhRFMXxZMzvEz163V7H0%2Fuf%2BmhC6KBv7cbMjDCUCrLb7a3GorKbFEurqiwvvX7%2B7PAmp5YO93yPQEhXv5c4yivdmU7jbK0acLY57maKOcor3V39XtIjENLS4Z5PqyApmmHA6jkuE2R6XOjW6ARYPcfRTHrH0wxsNU5wFfarDcXFl7RgmZRnMO0urG3ewiChqgCQZ7HCdX2YB8D%2FjkGqiKqoaQbxr1%2BmPowO8Tv3HzCAYcDtKoEcDQGEgCviEZc%2Bg6hKVrj0aiL%2BfSk2mVynPhV0dVPLeZ3B2ApCkcoTZ4bnHw6cAoCy490Pgp57naBI1p%2BE9TV5bG5m8g4yvEvbop%2BZL%2FJtWVlNhAAAAABJRU5ErkJggg%3D%3D\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/PawanOsman/GoogleBard/issues\" style=\"text-decoration: none\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/issues/PawanOsman/GoogleBard?label=Issues\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAsQAAALEBxi1JjQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAQ7SURBVEiJtZVZaFxVGMf/d19mbnMzk5lskzShmSS0Seto0xgliEFwaWmTPlhFiFIKpSLik1CLKGgVfPKhIj4oVSiVUI1GQytYrKYWbYpQa0vTdJLQmjQzk7mzpJnc9VwfpgmTmEmi0P/LvZxv+Z3vfGcB7rOogv8NNMe9yHN8BAC9MEiI6xBiT9im+Q2AK/8XUMkL4oWqusYayeNlljuZhu4mY5Mzc7OZG5ah9wBI/CcAL0j99c2te/4eu56wDCMBCqTAhwUotTRQKav+gDJ+/c9x09DbAKTWXYYgSjfCLdtdnuc/KDYRhuH2ezeo8fDWHTYniEPrzZ1fa4qiCXFACClWuus41mfG/Nxb2WQsq5aVtzAMswcAFEXpDoVCd4LB4G0A4ZUBBeIFYZAXpVGGYXYtt1mW9XFqJj5eVl6tMix3FABkWe46fOTNiu6evT5VVfsA1K8GEDleioRbHmrgOL53OYATxQO2bValZqYzguTxAahYsFEUjfaHOx7w+/0HVgMsblvXXbKFwXHcIUUp+VCSPUImmZhT/UEfgEcLfSRJAsUwwmqAYqqgaPZ9uISpra0RLVP38qIksCzbsFYguzBzx7EXB3lBggu3A6BfBogNAI5tXkxr6QHFI7+hlqhBhmVBMVz5egAK7Zrl5O4EKnzMwfRczpfLTKNpW3v1bFr7yHXzR2L69njc0HO74/H4MEAN+QAGS2+ClQF1VeInn77dJHe1qwBQldMJDr4bdc5d1gyXlq17fq7rEhsAmZ+f/10QpSiA5rWSL1QQ6WpXKQT2AXwl5NhxfPEOzTz5yk1Zpyvh8/lBCMEvqQRtGvoTAEzHdpRMMgHiWBt1XV8TkJcVz3+JCYoCvnyvDk3dwy7nKTcF0UPUQAXnLQ2cKoidrwjVP5XV4rn1AdI/LTH4Slhc+LyVev5wVNCyWQAAt0IChrL5NQHXojkc64shpxP07vSja4cKAAjXSrh0ouVfQad/TeHkaQ2yRCGmeVZtNGvbLv/0q1FI/jBohsHPR8dxqGcOr79UvWLAkWO3cPJHE2LpRjiOjfTUCLZ35S/WQDAIjmFeqK4OdQOAZZl3KFX13Krf0lHTs/sZKF4v+r7+DlMjQxjpb4XALz2H2bsOWvddRe3mx/Bszy4kkhoGBs9AT0+js7Nzrv+rU1lRlBZ7YlnmNGuYFFWiqni88xEAwKU/LmNiRMo27LyYYFnKLAQYFhFpOVjW2FCvRLbll+7sufMYuzqZ+X7g2yvJZHIvlj1GrOOQVErTQoM/nIWieDEaHYeWzMwa80YzABtLJYlyauzayE3l/G/DSCQ1zM5mYZjm6Gw201mkDVy7JHunNm150A23trnektI4x4n7izWNE4TXNqhlicatbe6mzREiSvIkgNZi/gs7IMSyfC9N04pp6icA/FUs4J4ivCA8RxxHs237OIDYGv73T/8AEAmYFH31lroAAAAASUVORK5CYII=\" alt=\"GitHub issues\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/PawanOsman/GoogleBard/network\" style=\"text-decoration: none\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/forks/PawanOsman/GoogleBard?label=Forks\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAsQAAALEBxi1JjQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAQ7SURBVEiJtZVZaFxVGMf/d19mbnMzk5lskzShmSS0Seto0xgliEFwaWmTPlhFiFIKpSLik1CLKGgVfPKhIj4oVSiVUI1GQytYrKYWbYpQa0vTdJLQmjQzk7mzpJnc9VwfpgmTmEmi0P/LvZxv+Z3vfGcB7rOogv8NNMe9yHN8BAC9MEiI6xBiT9im+Q2AK/8XUMkL4oWqusYayeNlljuZhu4mY5Mzc7OZG5ah9wBI/CcAL0j99c2te/4eu56wDCMBCqTAhwUotTRQKav+gDJ+/c9x09DbAKTWXYYgSjfCLdtdnuc/KDYRhuH2ezeo8fDWHTYniEPrzZ1fa4qiCXFACClWuus41mfG/Nxb2WQsq5aVtzAMswcAFEXpDoVCd4LB4G0A4ZUBBeIFYZAXpVGGYXYtt1mW9XFqJj5eVl6tMix3FABkWe46fOTNiu6evT5VVfsA1K8GEDleioRbHmrgOL53OYATxQO2bValZqYzguTxAahYsFEUjfaHOx7w+/0HVgMsblvXXbKFwXHcIUUp+VCSPUImmZhT/UEfgEcLfSRJAsUwwmqAYqqgaPZ9uISpra0RLVP38qIksCzbsFYguzBzx7EXB3lBggu3A6BfBogNAI5tXkxr6QHFI7+hlqhBhmVBMVz5egAK7Zrl5O4EKnzMwfRczpfLTKNpW3v1bFr7yHXzR2L69njc0HO74/H4MEAN+QAGS2+ClQF1VeInn77dJHe1qwBQldMJDr4bdc5d1gyXlq17fq7rEhsAmZ+f/10QpSiA5rWSL1QQ6WpXKQT2AXwl5NhxfPEOzTz5yk1Zpyvh8/lBCMEvqQRtGvoTAEzHdpRMMgHiWBt1XV8TkJcVz3+JCYoCvnyvDk3dwy7nKTcF0UPUQAXnLQ2cKoidrwjVP5XV4rn1AdI/LTH4Slhc+LyVev5wVNCyWQAAt0IChrL5NQHXojkc64shpxP07vSja4cKAAjXSrh0ouVfQad/TeHkaQ2yRCGmeVZtNGvbLv/0q1FI/jBohsHPR8dxqGcOr79UvWLAkWO3cPJHE2LpRjiOjfTUCLZ35S/WQDAIjmFeqK4OdQOAZZl3KFX13Krf0lHTs/sZKF4v+r7+DlMjQxjpb4XALz2H2bsOWvddRe3mx/Bszy4kkhoGBs9AT0+js7Nzrv+rU1lRlBZ7YlnmNGuYFFWiqni88xEAwKU/LmNiRMo27LyYYFnKLAQYFhFpOVjW2FCvRLbll+7sufMYuzqZ+X7g2yvJZHIvlj1GrOOQVErTQoM/nIWieDEaHYeWzMwa80YzABtLJYlyauzayE3l/G/DSCQ1zM5mYZjm6Gw201mkDVy7JHunNm150A23trnektI4x4n7izWNE4TXNqhlicatbe6mzREiSvIkgNZi/gs7IMSyfC9N04pp6icA/FUs4J4ivCA8RxxHs237OIDYGv73T/8AEAmYFH31lroAAAAASUVORK5CYII=\" alt=\"GitHub forks\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/PawanOsman/GoogleBard/stargazers\" alt=\"GitHub stars\" style=\"text-decoration: none\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/stars/PawanOsman/GoogleBard?label=Stars\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAApgAAAKYB3X3/OAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAPYSURBVEiJrZZdaFtlGMf/7/lKs6StadIm/UhOk9jFFvuxrdt0tEJjM0Sdil6oFwqKeCG72Xbj5lgR2cVAmSCCMEGcMtCbga7Fbc0KOkGkDETXbf1YsmZt0jZJm+yctuck57xedKZp2qQB91yd9/n68Rz+z3sOoZSiHHM6Dxh5Q8VbWY1k6qyp70dHRzPl1HFldQfQUCcMH/DK+ySV0FtR0yEAr5ZTx5STJHoDPW5rZu/Z12LcuTejfJVBe6HR4/c9MkCTNfPVEX+C/+98xJ8UWuzZrx8JwOXt666spA37u7WcL9Aqo4Kj+5ubA63/G2Ctxqcn3pMtcBmBhoqc/5g/wYv1yrZTlAT4fP2v2Kpp1zN71DWH3QDYBABAoE2GWdD37e7se6NUD0IphdP5XA1ls50g1NfcyPQSoGMpnbV1+TT+y+Mpa5U5T8o6Be5IwKoOSWFwarBO+228QnnnWWnkg5ceXDj5bc30d8PmpK7TVCQSnCEub9/7Dit3tnevSXhc3MF5RSPcjVmIlhvgi4l4WVuDbGGRJI/4Kqd/dLFWCS3wn5P2jn7p2oVWk82S101LAis3Sk0OjEuArBUNyyqDp840rzA8h9nbU6sF4TK22yqUDAdv74BBoGPM3BJ98djpkPTnX/J6lJQuBgBY+KKhy2MmfDJkS84tsC8z96eGx6NRvevwQCh9fVQqH8AQgN8swl9umnDy57r4wiJ9MhIJzjAAMD0dnLof1zqOng4vjvyRXgOQMq4pgWw4Dv1jxqlLtfPxRdIeDv8aBfL2YPZu8F50Vmv/8My95GRYAVhrGYD1CcIJHh8P1can0xXtodBILDdofn4kEpyZmdPevngloYNvAARPaUB2XQyDN800IZHDscnL8/kpW2wysxxbUCh41/YAVc89pldYoqrs5m6FDl5Au89jZsE7AS1RNqDNocDtyAS2BYj1TH+L2wiY/QDvAUgROT7IbliXVocCnqU92wK0LHa1iAaAqwH0FGBoy8UUlUBaeaicuLqhzlObQUpmmgr7bdJiWqa2xvpKQJl4mFGLyVknBr5IL43d5VIsSxWLmToGDqpVPd71zzLHUFQbNd7t7nssFBpZ2hLQ0vK8wVxJGAIFWPoBs/MZfHZuRv99VI3H4vy74alrgwAgiv49J36yn7dXZncePxjndrvWrhqzkVKVEDuAHIAU/lV07uofO+Sv3qlpFFevS7K0rB+9c6v3G0oHdBRYU3P/0x575ryrJiM2WLK48rcpnpLgCYVGVosCRLHXojHC6yCQjazhx4mJIaWwcaG5vH3dlLJPcFS7lP96AOBfSCCA1HW3a3EAAAAASUVORK5CYII=\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/PawanOsman/GoogleBard\" alt=\"GitHub license\" style=\"text-decoration: none\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/PawanOsman/GoogleBard?label=License\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAsQAAALEBxi1JjQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAQrSURBVEiJpZVvbFNVGMZ/t/e2ZW2XDUZvhwLt1rUyYOA2FJNFiRsYjREGBlCmJgiOPzKDET4gBqaSoEGREOOiY5kRI2QxETUyAigxCskQmQaSwcKEjsJYN7uO/W3Xe48fll3ZGCvom5zkzXnu+/zuveec90gMD8scn78uApPtDrvGGCFJkmQdl2QzyYoZIbSBaPTImd/qnh2rxpLv9V0q8k8T39UeFd0DIuHojAkR7B0cS54riQL3jTRVhszzMrPOr3/4EW8w0mGIf9TXU1VZiaaN/jGqy0XZm9uRZRnVlW4CUoDrIwGWfG9WQ9ncgsxC/wNU150yxE8rKigsXsX4NOeogK8qP6Cp8QL+7Bl3/C1Knt//g97Xn3k62MzpYDNnWq7xfPZ0AJxOJ8e+/ZLX33qfg59/Qke4fVhx08VzpKSOv6M5gNKnmD01P9YaE86JThzJyQC8vWMHV5ubmTI5iXWrS+jr7xtW7EjejDklbWyAySSLjIzMUUVJkpjqdgOQPmnSbbomoCs+mPunz9CBjpHPmMbE30NkT88RgDRyfmgX0REOU11VmdCoaMETzH4wF4DAlctU7/uYQNNFVDlgnffQ/Zd6+uPHtLh+ob6hbSugGQBHcjKPF81PCHC7PUa+ecOLbFnlxbPIizs9B60rbDvf2L7o0InAwp7egVBjILLbAJjNZnLz8hMChqJi7y5m+2zMmuZi0ztHuNYSQdN0li9ws+mlHOnwyeC21FTbCQMQam3ljY1lCY1Xl65Fdbn4/ZcaDux5iqVrDrKy0EW+z4MuBNv2nUVNs/H9nvkpT756tNYAqC4X+w/U3NXbd0YiIFno6okhBgbI9w2eBZMksXmZm61fNFCQOwmrRQ4ZgPa2NvZ+9GFC82eKF+PxZCDLErJJIq7pw3RNEyiyCUWR0AUWAzAhLY2Vr5QmBKiqixst1+nu7sVqUUidkMzxsyHm56nEBnTK9//F2pI5hDujaJpmNwAmk4nxCY49gNVqxZvlo3jFRsreraZi50LKd//EwT3n0HWddUtnkZs9kcLS2vb6hrZ50oyZsxrr6v/0hVpb2VG+LSFg+YoSCh59bDBfVEjpYhWX087cmSp94RAn61uo/fWa+OZEYO3lYOdnBiCh8yhxozXE8oVF5KT3cjMG4Ug/CiJ2+sLf793sjpUDQklkMlY4VRWPewpblgi6++KkOsxUHb4SPX6m5WdAwC2tItLRQXVVJUIIw8But7Nm/Ya7gplMEop8e2szADa7nbz8Oej6v9vO7nAkNJYVCztrLnEjmqY3njsVmOqyOYH4kP6/1kATcL6xievBqwgtHl329IIMoAA4NARRYrGoFo/HUZT/thzuTC/uTC+vvfyCxGC7/vpWXenq6d4+Nzdn17ikJOu9GEuSJFmsNrusyIoQQotFo7WMuPAB/gHPaKaziaM8GAAAAABJRU5ErkJggg==\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://discord.pawan.krd\" alt=\"Discord server\" style=\"text-decoration: none\"\u003e\n    \u003cimg src=\"https://img.shields.io/discord/1055397662976905229?color=5865F2\u0026label=Discord\u0026logo=discord\u0026logoColor=white\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\n## Table Of Contents\n- [Features](#features)\n- [Prerequisites](#prerequisite---how-to-get-cookies)\n- [Installation](#installation)\n- [Documentation](#documentation)\n- [Examples](#examples)\n\n\u003cbr\u003e\n\n## Features\n- **Simulating Response Streaming**: The package simulates response streaming, allowing you to get the response as soon as it is available.\n- **Multiple Conversations**: The package supports multiple conversations, allowing you to have multiple parallel conversations with the chatbot.\n- **Proxy Support**: The package supports proxies, allowing you to use the chatbot from any location.\n- **Lightweight**: The package is very lightweight, making it easy to use and integrate into your projects.\n\n\u003cbr\u003e\n\n## Prerequisite - How to get cookies?*\n1. Install [Cookie-Editor](https://cookie-editor.cgagnier.ca/) extension.\n2. Go to https://bard.google.com and login.\n3. Click on the extension icon and copy a cookie starting with `__Secure-{account_number}PSID`. \n\t- For example, `__Secure-1PSID`\n\t- 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}`. \n\t- If your account number is `/u/2`, search for the cookie named `__Secure-2PSID`.\n\t- If your account number is `/u/3`, search for the cookie named `__Secure-3PSID`.\n4. Paste the cookie in your code.\n\n\u003cbr\u003e\n\n## Installation\nTo install the package, run the following command:\n\n```bash\nnpm install googlebard\n```\n\n\u003cbr\u003e\n\n## Documentation\n### 1. How To Initialise The Bot?\n```js\nimport { Bard } from \"googlebard\";\n\nlet cookies = `__Secure-1PSID=\u003cYOUR_COOKIE\u003e`;\nlet bot = new Bard(cookies);\n\n// other code - scroll below to view different functionalities available\n```\n\n\u003cbr\u003e\n\n\n### 2. How To Configure Bot With Optional Settings?\n1. `inMemory`: optional - if true will not save conversations to disk\n2. `savePath`: optional - path to save conversations (e.g './conversations.json')\n3. `proxy`: optional - handles proxy configurations\n\n```js\nimport { Bard } from \"googlebard\";\n\nlet cookies = `__Secure-1PSID=\u003cYOUR_COOKIE\u003e`;\nlet bot = new Bard(cookies, {\n    inMemory: false,\n\tsavePath: \"./conversations.json\",\n\tproxy: {\n\t\thost: process.env.PROXY_HOST,\n\t\tport: process.env.PROXY_PORT,\n\t\tauth: {\n\t\t\tusername: process.env.PROXY_USERNAME,\n\t\t\tpassword: process.env.PROXY_PASSWORD,\n\t\t},\n\t\tprotocol: \"http\",\n\t},\n});\n\n// other code\n```\n\n\u003cbr\u003e\n\n\n### 3. How To Ask Bot?\nTo ask bot questions, you may use the `bot.ask(\u003cprompt\u003e, \u003cconversation_id\u003e:optional)` functionality. A usage of it is given below:\n\n```js\nimport { Bard } from \"googlebard\";\n\nlet cookies = `__Secure-1PSID=\u003cYOUR_COOKIE\u003e`;\nlet bot = new Bard(cookies);\nlet conversationId = \"some_random_id\"; // optional: to make it remember the conversation\n\nlet response = await bot.ask(\"What is my name?\", conversationId); // conversationId is optional\nconsole.log(response);\n```\n\n```\n\u003e\u003e I don't know your name. I am a large language model, also known as a conversational AI or cha...\n```\n\n\u003cbr\u003e \n\n##### Using the same `conversation_id` again will allow the bot to remember what you said earlier in the conversation\n\n```js\nimport { Bard } from \"googlebard\";\n\nlet cookies = `__Secure-1PSID=\u003cYOUR_COOKIE\u003e`;\nlet bot = new Bard(cookies, {\n    inMemory: false,\n    savePath: \"./conversations.json\", // this is being done to save crucial information about the conversation so the bot remembers it\n});\n\nlet conversationId = \"test_id\";\n\nlet response = await bot.ask(\"My name is Mehul\", conversationId);\nconsole.log(response);\n```\n\n```\n\u003e\u003e Hi Mehul, it's nice to meet you! I'm Bard...\n```\n\n```js\nimport { Bard } from \"googlebard\";\n\nlet cookies = `__Secure-1PSID=\u003cYOUR_COOKIE\u003e`;\nlet bot = new Bard(cookies, {\n    inMemory: false,\n    savePath: \"./conversations.json\",\n});\n\nlet conversationId = \"test_id\";\n\nlet response = await bot.ask(\"What is my name?\", conversationId)\nconsole.log(response);\n```\n\n```\n\u003e\u003e I know your name is Mehul. You told me earlier.\n```\n\n\u003cbr\u003e\n\n### 4. How To Ask Bot And Simulate Response Streaming?\nTo ask bot questions and simulate response streaming, you can either implement it through custom logic or use the built-in `bot.askStream(\u003ccallback\u003e, \u003ccontent\u003e, \u003cconversation_id\u003e:optional)`. A usage of it is given below:\n\n```js\nimport { Bard } from \"googlebard\";\n\nlet cookies = `__Secure-1PSID=\u003cYOUR_COOKIE\u003e`;\nlet bot = new Bard(cookies, {\n    inMemory: false,\n    savePath: \"./conversations.json\",\n});\nlet conversationId = \"test_id\";\n\nawait bot.askStream(\n\t(res) =\u003e {\n\t\tconsole.log(res);\n\t}, // returns the response\n\t\"Hello?\",\n\tconversationId,\n);\n```\n\n```\n\u003e\u003e Your \nname \nis \nMehul. \nI \nwill \nremember \nthat \nfor \nthe\nnext \ntime \nwe \nspeak.\n```\n##### Response streaming functionality is used to show as if the bot itself is typing\n\n\u003cbr\u003e\n\n### 5. How To Reset A Conversation?\nTo reset a conversation, you may use the `bot.resetConversation(\u003cconversation_id\u003e)` functionality. This functionality allows the user to make the bot forget about previous conversations provided they are all under the same `conversation_id`. A usage of it is given below:\n```js\nimport { Bard } from \"googlebard\";\n\nlet cookies = `__Secure-1PSID=\u003cYOUR_COOKIE\u003e`;\nlet bot = new Bard(cookies, {\n  inMemory: false,\n  savePath: \"./conversations.json\",\n});\n\nlet conversationId = \"test_id\"; // notice id is the same as that used in the above example\n\nlet response = await bot.ask(\"what is my name?\", conversationId);\nconsole.log(response);\n```\n\n```\n\u003e\u003e You told me your name is Mehul.\n```\n\n```js\nimport { Bard } from \"googlebard\";\n\nlet cookies = `__Secure-1PSID=\u003cYOUR_COOKIE\u003e`;\nlet bot = new Bard(cookies, {\n  inMemory: false,\n  savePath: \"./conversations.json\",\n});\n\nlet conversationId = \"test_id\";\nbot.resetConversation(conversationId) // resetting conversation\n\nlet response = await bot.ask(\"what is my name?\", conversationId);\nconsole.log(response);\n```\n\n```\n\u003e\u003e I understand that you are trying to get me to say your name, but...\n```\n\n\u003cbr\u003e\n\n### 6. How To Get All Your Previous Conversations?\nIn order to retrieve all your conversations, you may either implement the functionality through a custom logic or simply use the built-in `bot.getAllConversations()`. .A usage of it is given below:\n```js\nimport { Bard } from \"googlebard\";\n\nlet cookies = `__Secure-1PSID=\u003cYOUR_COOKIE\u003e`;\nlet bot = new Bard(cookies, {\n\tsavePath: \"./conversations.json\",\n});\n\nlet response = bot.getAllConversations()\nconsole.log(response) // returns an array of different conversations\n```\n\n\u003cbr\u003e\n\n### 7. How To Get A Single Conversation By ID?\n```js\nimport { Bard } from \"googlebard\";\n\nlet cookies = `__Secure-1PSID=\u003cYOUR_COOKIE\u003e`;\nlet bot = new Bard(cookies, {\n  inMemory: false,\n  savePath: \"./conversations.json\",\n});\nlet conversationId = \"test_id\";\n\nawait bot.waitForLoad();\nlet response = bot.getConversationById(conversationId);\nconsole.log(response); // returns an object\n\n```\n\n\u003cbr\u003e\n\n## Examples\nA simple example has been added to the `examples` directory which shows how GoogleBard can be used to create a CLI chatbot. More such examples are yet to be added, so stay tuned!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPawanOsman%2FGoogleBard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPawanOsman%2FGoogleBard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPawanOsman%2FGoogleBard/lists"}