
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
@node-ts/bus-postgres
Advanced tools
A Postgres persistence adapter for workflow storage in @node-ts/bus-workflow.
A Postgres based persistence for workflow storage in @node-ts/bus
š„ View our docs at https://bus.node-ts.com š„
š¤ Have a question? Join the Discussion š¤
Install all packages and their dependencies
npm install @node-ts/bus-postgres
Configure a new Postgres persistence and register it with Bus
:
import { Bus } from '@node-ts/bus-core'
import { PostgresPersistence, PostgresConfiguration } from '@node-ts/bus-postgres'
const configuration: PostgresConfiguration = {
connection: {
connectionString: 'postgres://postgres:password@localhost:5432/postgres'
},
schemaName: 'workflows'
}
const postgresPersistence = new PostgresPersistence(configuration)
// Configure bus to use postgres as a persistence
const run = async () => {
const bus = Bus
.configure()
.withPersistence(postgresPersistence)
.build()
await bus.initialize()
await bus.start()
}
run.then(() => void)
The Postgres persistence has the following configuration:
Local development can be done with the aid of docker to run the required infrastructure. To do so, run:
docker run --name bus-postgres -e POSTGRES_PASSWORD=password -p 6432:5432 -d postgres
FAQs
A Postgres persistence adapter for workflow storage in @node-ts/bus-workflow.
We found that @node-ts/bus-postgres 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.