Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
dpm-googlebard1
Advanced tools
A simple Node.js module for creating GoogleBard chatbot using Bard's official API.
To install the package, run the following command:
npm install googlebard
import { Bard } from "googlebard";
let bot = new Bard(`YOUR_COOKIES`);
let response = await bot.ask("Hello?");
console.log(response);
__Secure-{account_number}PSID
(e.g. __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/3
. If your account number is /u/3
, search for the cookie beginning with __Secure-3PSID
.import { Bard } from "googlebard";
let cookies = `__Secure-1PSID=<YOUR_COOKIE>`;
let bot = new Bard(cookies, {
inMemory: false, // optional: if true, it will not save conversations to disk
savePath: "./conversations.json", // optional: path to save conversations
proxy: {
// optional: proxy configuration
host: process.env.PROXY_HOST,
port: process.env.PROXY_PORT,
auth: {
username: process.env.PROXY_USERNAME,
password: process.env.PROXY_PASSWORD,
},
protocol: "http",
},
});
let conversationId = "conversation name"; // optional: to make it remember the conversation
let response = await bot.ask("Hello?", conversationId); // conversationId is optional
console.log(response);
// Simulating response streaming
await bot.askStream(
(res) => {
console.log(res);
},
"Hello?",
conversationId,
);
FAQs
A reverse engineered API for Google Bard chatbot
The npm package dpm-googlebard1 receives a total of 4 weekly downloads. As such, dpm-googlebard1 popularity was classified as not popular.
We found that dpm-googlebard1 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.