Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.