
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
Message-processing tools for secure-scuttlebutt
var mlib = require('ssb-msgs')
indexLinks(msg: Object, [opts: Options], each: Function(link: Object, rel: String))
where Options = { rel: String, msg: Bool/String, feed: Bool/String, ext: Bool/String }
Traverses a message and runs the each function on all found links. All opts fields are optional. Opts may also be a string, in which case it is the rel attribute
// assume %msgid and @feedid a well-formed
var msg = {
foo: { link: '%msgid' },
bar: [{ link: '@feedid' }]
}
function print (obj, rel) {
console.log(rel, obj.link)
}
mlib.indexLinks(msg, print)
// => foo %msgid
// => bar @feedid
mlib.indexLinks(msg, 'foo', print)
// => foo %msgid
mlib.indexLinks(msg, { rel: 'foo' }, print)
// => foo %msgid
mlib.indexLinks(msg, { feed: true }, print)
// => bar @feedid
mlib.indexLinks(msg, { feed: '@feedid' }, print)
// => bar @feedid
links(obj: Any, [requiredAttr: String])
Helper to get links from a message in a regular array form.
var msg = {
foo: { link: '%msgid' },
bar: [{ link: '@feedid' }]
}
mlib.links(msg.foo) // => [{ link: '%msgid' }]
mlib.links(msg.bar) // => [{ link: '@feedid' }]
mlib.links(msg.bar, 'feed') // => [{ link: '@feedid' }]
mlib.links(msg.bar, 'msg') // => []
mlib.links(msg.baz) // => []
link(obj: Any, [requiredAttr: String])
Helper to get a link from a message in a regular object form. If an array is found, will use the first element.
var msg = {
foo: { link: '%msgid' },
bar: [{ link: '@feedid' }]
}
mlib.link(msg.foo) // => { link: '%msgid' }
mlib.link(msg.bar) // => { link: '@feedid' }
mlib.link(msg.bar, 'feed') // => { link: '@feedid' }
mlib.link(msg.bar, 'msg') // => null
mlib.link(msg.baz) // => null
isLink(obj: Any, [requiredAttr: String])
Predicate to test whether an object is a well-formed link. Returns false if given an array.
var msg = {
foo: { link: '%msgid' },
bar: [{ link: '@feedid' }]
}
mlib.isLink(msg.foo) // => true
mlib.isLink(msg.bar) // => true
mlib.isLink(msg.bar, 'feed') // => true
mlib.isLink(msg.bar, 'msg') // => false
mlib.isLink(msg.baz) // => false
linksTo(a: Message, b: Message)
Get link objects pointing from a to b.
mlib.linksTo(msgA, msgB) // => [{ link: '%msgB-id' }]
relationsTo(a: Message, b: Message)
Get relations of links pointing from a to b.
mlib.relationsTo(msgA, msgB) // => ['fooRelation']
FAQs
message-processing tools for secure-scuttlebutt
We found that ssb-msgs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.