
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
dpm-googlebard
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-googlebard receives a total of 3 weekly downloads. As such, dpm-googlebard popularity was classified as not popular.
We found that dpm-googlebard 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.