
Security News
OpenClaw Skill Marketplace Emerges as Active Malware Vector
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.
trench-session
Advanced tools
Session middleware for [Trench](https://github.com/montyanderson/trench), using Redis.
Session middleware for Trench, using Redis.
const Trench = require("trench");
const session = require("trench-session");
const app = new Trench();
app.use(session({
app: "app"
}));
app.get("/", (req, res) => {
if(!req.session.i) req.session.i = 0;
req.session.i++;
res.end(req.session.i.toString());
});
app.listen(8080);
Returns a middleware function to generate functions, then save them when res.end() is called.
Type: string
A name for the application, used so you can store multiple app's sessions in the same redis database, without possibility of interference.
Type: number
Amount of seconds until the session expires, since last saved.
Type: string, object
Connection configuration, to be passed to redis.createClient().
Type: object
A redis client, i.e. created by redis.createClient().
FAQs
Session middleware for [Trench](https://github.com/montyanderson/trench), using Redis.
The npm package trench-session receives a total of 2 weekly downloads. As such, trench-session popularity was classified as not popular.
We found that trench-session 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
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.