
Security News
OpenCode User Hit with Hostile Backlash After Reporting Free AI Loophole
An OpenCode user faced harassment after reporting a free AI usage loophole, drawing a bitter backlash in a GitHub thread that has since been deleted.
pg-storage
Advanced tools
This is a simple storage adapter for PostgreSQL.
npm install pg-storage --save
import { PostgreSQLStorage } from 'pg-storage';
const storage = new PostgreSQLStorage({
host: <DATABASE_HOST>,
user: <DATABASE_USERNAME>,
password: <DATABASE_PASSWORD>,
server: <DATABASE_SERVER>,
database: <DATABASE_NAME>,
table: <DATABASE_TABLE>,
port: <DATABASE_PORT>
});
const conversationState = new ConversationState(storage);
const userState = new UserState(storage);
If you intend to use a PostgreSQL database other than localhost, ensure that the ssl key is set to true.
import { PostgreSQLStorage, PostgreSQLOptions } from 'pg-storage';
const options: PostgreSQLOptions = {
host: <DATABASE_HOST>,
user: <DATABASE_USERNAME>,
password: <DATABASE_PASSWORD>,
server: <DATABASE_SERVER>,
database: <DATABASE_NAME>,
table: <DATABASE_TABLE>,
port: <DATABASE_PORT>,
ssl: true
};
const storage = new PostgreSQLStorage(options);
This module uses the node-pg package for SQL connectivity. The
PostgreSQLOptionsthat is passed to thePostgreSQLStorageobject extends theconfigobject of that package. All options from thatconfigoption can be passed in.
This module assumes two columns in your database table:
idwith datatypeVARCHAR(255)anddatawithJSONBrespectively.
FAQs
PostgreSQL storage option for the Microsoft Bot Framework
The npm package pg-storage receives a total of 1 weekly downloads. As such, pg-storage popularity was classified as not popular.
We found that pg-storage 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.

Security News
An OpenCode user faced harassment after reporting a free AI usage loophole, drawing a bitter backlash in a GitHub thread that has since been deleted.

Threat Research
/Security News
319 browser extensions installed by 13.4 million users hijack searches, capture queries, and collect referral payments from Yahoo and Bing.

Threat Research
Malicious Firefox extensions mimic Phantom, Jupiter, and Bitget wallets to steal recovery phrases and private keys, with one fetching its payload remotely.