
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
express-bff
Advanced tools
npm i express-bff --save
const path = require('path');
const express = require('express');
const bff = require('express-bff');
const app = express();
bff(app, {
security: {
cors: false,
secure,
},
session: {
persist: true,
// OR
persist({ secret, ttl }) {
return new CustomStore();
}
},
sse: {
path: '/events',
// option serializer callback for objects
serializer(key, val) {
return val;
}
},
api: {
dir: path.join(__dirname, 'routes'),
},
proxy: {
target: 'https://192.x.x.x:3030',
},
static: {
dir: path.join(__dirname, 'static'),
single: true,
dev,
},
ssr: {
template: 'index', // provide template name for express render engine
handler(req) {
return { /* any locals to render in template */ };
}
}
});
app.listen(process.env.PORT);
// ./routes/posts/index.js => /posts
module.exports = {
get,
post,
patch,
put,
delete: del
};
async function get(req, res) {
// ...
}
async function post(req, res) {
// ...
}
async function put(req, res) {
// ...
}
async function patch(req, res) {
// ...
}
async function del(req, res) {
// ...
}
Route with dynamic parameters:
// ./routes/posts/:id.js => /posts/:id
module.exports = {
get,
...
};
async function get(req, res) {
console.log('ID is ', req.params.id);
}
1.1.0
serializer
option is added to sse
middleware.FAQs
## Features
The npm package express-bff receives a total of 2 weekly downloads. As such, express-bff popularity was classified as not popular.
We found that express-bff 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
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.